++
This commit is contained in:
parent
d807c9d41c
commit
2b6ad6e33a
@ -24,7 +24,9 @@ namespace tr::layers
|
|||||||
ImFont* font = try_engine::style::fonts::get_font(font_type::ICON, 18);
|
ImFont* font = try_engine::style::fonts::get_font(font_type::ICON, 18);
|
||||||
ImGui::PushFont(font);
|
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(try_engine::style::icon::ICON_PAINT_BRUSH " Paint" );
|
||||||
ImGui::Text("\xef\x87\xbc");
|
ImGui::Text("\xef\x87\xbc");
|
||||||
@ -47,6 +49,8 @@ namespace tr::layers
|
|||||||
|
|
||||||
void test_panel::on_event(std::any e, std::any value)
|
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)
|
void test_panel::on_update(time t)
|
||||||
|
@ -21,7 +21,7 @@ namespace try_engine::app_event
|
|||||||
for (const auto layer : l_stack)
|
for (const auto layer : l_stack)
|
||||||
{
|
{
|
||||||
std::thread th {
|
std::thread th {
|
||||||
[&]() {
|
[=]() {
|
||||||
layer->on_event(type, value);
|
layer->on_event(type, value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user