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