add event target
This commit is contained in:
@@ -22,7 +22,7 @@ namespace sandbox
|
||||
|
||||
if (ImGui::Button("RUN", ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { test_event::TEST_EVEN , std::string("test event message") };
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test event message") };
|
||||
execute(e);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace sandbox
|
||||
if (!ImGui::Begin("#test_panel_2", &m_p_open, m_window_flags)) ImGui::End();
|
||||
if (ImGui::Button("RUN", ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { test_event::TEST_EVEN , std::string("test event message") };
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test event message") };
|
||||
execute(e);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace sandbox
|
||||
|
||||
if (ImGui::Button(VE::style::icon::ICON_STOP, ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { test_event::TEST_EVEN , std::string("test icon button") };
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test icon button") };
|
||||
execute(e);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,15 +23,15 @@ namespace VE
|
||||
{
|
||||
inline application& create()
|
||||
{
|
||||
static sandbox::test_app e{ "vertex_engine_sandbox" };
|
||||
static sandbox::test_app app{ "vertex_engine_sandbox" };
|
||||
|
||||
e.push_layer(
|
||||
app.push_layer(
|
||||
new sandbox::test_panel{},
|
||||
new sandbox::test_panel_2{},
|
||||
new sandbox::opengl_panel{}
|
||||
);
|
||||
|
||||
return e;
|
||||
return app;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user