fix event func

This commit is contained in:
2025-03-15 12:33:59 +03:00
parent c555c47eb3
commit 3b64a8a337
7 changed files with 44 additions and 43 deletions

View File

@@ -5,7 +5,7 @@ namespace sandbox
{
void test_panel::on_attach()
{
VE_CONNECT(test_panel);
VE::CONNECT(this);
hack::log()("on_attach", VE::application::get()->get_glfw()->width());
}
@@ -18,8 +18,7 @@ namespace sandbox
if (ImGui::Button("RUN test_panel_1", ImVec2(128, 130)))
{
VE::event e { test_event::TEST_EVEN , std::string("test event message tp 1") };
VE_EMIT(e);
VE::EMIT(test_event::TEST_EVEN, std::string("test event message tp 1"));
}
ImGui::End();