add new event

This commit is contained in:
2025-04-18 13:15:38 +03:00
parent a53056b6eb
commit 85500912a5
3 changed files with 24 additions and 17 deletions

View File

@@ -27,8 +27,22 @@ namespace example
VE_PUSH_FONT(REGULAR, 20);
if (ImGui::Button("Test signal", ImVec2(128, 130)))
VE::EMIT(test_event::TEST_EVEN, std::string("test event message"));
// try
// {
// if (ImGui::Button("Test signal log error", ImVec2(128, 130)))
// VE::EMIT(test_event::TEST_EVEN, std::string("test event message"));
// }
// catch(hack::exception& e)
// {
// e.log();
// auto data = std::any_cast<VE::event>(e.get_data());
// hack::log()(data.m_id);
// }
VE_POP_FONT();
ImGui::End();
}