16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 10:19:19 +02:00

Merge branch 'milek-dev' into gfx-work

This commit is contained in:
milek7
2018-10-10 19:33:08 +02:00
49 changed files with 1697 additions and 1026 deletions

View File

@@ -170,6 +170,11 @@ bool ui_layer::on_key(int const Key, int const Action)
return true;
}
if (Key == GLFW_KEY_F10) {
m_quit_active = !m_quit_active;
return true;
}
if (m_quit_active)
{
if (Key == GLFW_KEY_Y) {
@@ -319,7 +324,7 @@ void ui_layer::render_menu_contents()
if (ImGui::BeginMenu(LOC_STR(ui_general)))
{
ImGui::MenuItem(LOC_STR(ui_debug_mode), nullptr, &DebugModeFlag);
ImGui::MenuItem(LOC_STR(ui_quit), nullptr, &m_quit_active);
ImGui::MenuItem(LOC_STR(ui_quit), "F10", &m_quit_active);
ImGui::EndMenu();
}
if (ImGui::BeginMenu(LOC_STR(ui_tools)))