fix event
This commit is contained in:
@@ -5,21 +5,17 @@ namespace sandbox
|
||||
{
|
||||
void local_panel::on_attach()
|
||||
{
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
void local_panel::on_detach()
|
||||
{
|
||||
VE_CONNECT(local_panel, on_event);
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
void local_panel::render()
|
||||
{
|
||||
|
||||
if (ImGui::Button("RUN", ImVec2(28, 30)))
|
||||
if (ImGui::Button("RUN 2", ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test event message") };
|
||||
execute(e);
|
||||
EMIT(e);
|
||||
}
|
||||
|
||||
VE_PUSH_FONT(ICON, 18);
|
||||
@@ -27,7 +23,7 @@ namespace sandbox
|
||||
if (ImGui::Button(VE::style::icon::ICON_STOP, ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test icon button") };
|
||||
execute(e);
|
||||
EMIT(e);
|
||||
}
|
||||
|
||||
ImGui::Text(VE::style::icon::ICON_PAINT_BRUSH, " Paint" );
|
||||
|
||||
Reference in New Issue
Block a user