This commit is contained in:
chatlanin 2023-03-21 14:31:26 +03:00
parent d807c9d41c
commit 2b6ad6e33a
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,9 @@ namespace tr::layers
ImFont* font = try_engine::style::fonts::get_font(font_type::ICON, 18);
ImGui::PushFont(font);
if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) {}
if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) {
em->execute(std::string("asdf"), "asdf");
}
// ImGui::Text(try_engine::style::icon::ICON_PAINT_BRUSH " Paint" );
ImGui::Text("\xef\x87\xbc");
@ -47,6 +49,8 @@ namespace tr::layers
void test_panel::on_event(std::any e, std::any value)
{
auto b = std::any_cast<std::string>(e);
hack::log()(b);
}
void test_panel::on_update(time t)

View File

@ -21,7 +21,7 @@ namespace try_engine::app_event
for (const auto layer : l_stack)
{
std::thread th {
[&]() {
[=]() {
layer->on_event(type, value);
}
};