37 lines
677 B
C++
Executable File
37 lines
677 B
C++
Executable File
#include "test_panel.hpp"
|
|
#include "utils.hpp"
|
|
|
|
namespace sandbox
|
|
{
|
|
void test_panel::on_attach()
|
|
{
|
|
hack::log()("on_attach", VE::application::get()->get_glfw()->width());
|
|
}
|
|
|
|
void test_panel::on_detach()
|
|
{
|
|
hack::log()("on_attach");
|
|
}
|
|
|
|
void test_panel::render()
|
|
{
|
|
ImGui::SetNextWindowPos(m_pos);
|
|
ImGui::SetNextWindowSize(m_size);
|
|
|
|
if (!ImGui::Begin("#test_panel_1", &m_p_open, m_window_flags)) ImGui::End();
|
|
|
|
if (ImGui::Button("RUN", ImVec2(28, 30)))
|
|
{
|
|
VE::event e { test_event::TEST_EVEN , std::string("test event message") };
|
|
execute(e);
|
|
}
|
|
|
|
ImGui::End();
|
|
}
|
|
|
|
void test_panel::on_event(VE::event e)
|
|
{
|
|
}
|
|
}
|
|
|