This commit is contained in:
2025-04-17 17:47:15 +03:00
parent 863349eee5
commit 579d71a8d3
2 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ namespace example
VE::EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double")); VE::EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double"));
if (ImGui::Button("Test on_detach", ImVec2(128, 130))) on_detach(); if (ImGui::Button("Test on_detach", ImVec2(128, 130))) on_detach();
if (ImGui::Button("Test on_attach", ImVec2(128, 130))) on_attach();
VE_POP_FONT(); VE_POP_FONT();
ImGui::End(); ImGui::End();

View File

@@ -28,6 +28,7 @@ namespace VE
void emit(event e) void emit(event e)
{ {
hack::log()("emit");
try try
{ {
for(auto [key, f] : m_funcs) m_funcs[key](e); for(auto [key, f] : m_funcs) m_funcs[key](e);
@@ -41,6 +42,8 @@ namespace VE
{ {
hack::error()("ooops..."); hack::error()("ooops...");
} }
hack::log()("emit end");
} }
}; };
} }