From cc4b4edf69bc22ddb8a6e02ef64ccd282e48dde7 Mon Sep 17 00:00:00 2001 From: Andrey Zimin Date: Mon, 25 Mar 2024 10:24:57 +0300 Subject: [PATCH] fix event and add test example --- src/sandbox/layers/test_panel/test_panel.cpp | 2 +- src/try_engine/event/app_event/event.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sandbox/layers/test_panel/test_panel.cpp b/src/sandbox/layers/test_panel/test_panel.cpp index 9b418a5..216bc5a 100755 --- a/src/sandbox/layers/test_panel/test_panel.cpp +++ b/src/sandbox/layers/test_panel/test_panel.cpp @@ -26,7 +26,7 @@ namespace tr::layers TR_PUSH_FONT(ICON, 18); if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) { - m_event_manager->execute(std::string("test signal key"), "value paramsl stop"); + m_event_manager->execute(std::string("test signal key"), "value params stop"); } ImGui::Text(try_engine::style::icon::ICON_PAINT_BRUSH, " Paint" ); diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index 3b8799f..928e747 100755 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -38,9 +38,7 @@ namespace try_engine::app_event void execute_queue(std::any type, std::any value) { for (const auto layer : l_stack) - { layer->on_event(type, value); - } } void print_size();