fix event and add test example
This commit is contained in:
parent
a663120ea6
commit
cc4b4edf69
@ -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" );
|
||||
|
@ -38,10 +38,8 @@ 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();
|
||||
|
||||
|
Reference in New Issue
Block a user