fix event and add test example

This commit is contained in:
Andrey Zimin 2024-03-25 10:24:57 +03:00
parent a663120ea6
commit cc4b4edf69
2 changed files with 1 additions and 3 deletions

View File

@ -26,7 +26,7 @@ namespace tr::layers
TR_PUSH_FONT(ICON, 18); TR_PUSH_FONT(ICON, 18);
if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) { 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" ); ImGui::Text(try_engine::style::icon::ICON_PAINT_BRUSH, " Paint" );

View File

@ -38,10 +38,8 @@ namespace try_engine::app_event
void execute_queue(std::any type, std::any value) void execute_queue(std::any type, std::any value)
{ {
for (const auto layer : l_stack) for (const auto layer : l_stack)
{
layer->on_event(type, value); layer->on_event(type, value);
} }
}
void print_size(); void print_size();