fix event

This commit is contained in:
2025-02-26 15:09:30 +03:00
parent 121d4af325
commit 7e419c9b79
12 changed files with 29 additions and 85 deletions

View File

@@ -5,14 +5,10 @@ namespace sandbox
{
void test_panel::on_attach()
{
VE_CONNECT(test_panel, on_event);
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);
@@ -23,7 +19,7 @@ namespace sandbox
if (ImGui::Button("RUN", ImVec2(28, 30)))
{
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test event message") };
execute(e);
EMIT(e);
}
ImGui::End();