fix event

This commit is contained in:
2025-02-26 15:09:30 +03:00
parent 121d4af325
commit 7e419c9b79
12 changed files with 29 additions and 85 deletions

View File

@@ -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" );