add new event
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user