mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 07:39:19 +02:00
switch debugtoggle and pausetoggle to release, and logic fixes
This commit is contained in:
@@ -465,7 +465,11 @@ void ui_layer::render_menu_contents()
|
||||
{
|
||||
if (ImGui::BeginMenu(STR_C("General")))
|
||||
{
|
||||
ImGui::MenuItem(STR_C("Debug mode"), nullptr, &DebugModeFlag);
|
||||
bool flag = DebugModeFlag;
|
||||
if (ImGui::MenuItem(STR_C("Debug mode"), nullptr, &flag)) {
|
||||
command_relay relay;
|
||||
relay.post(user_command::debugtoggle, 0.0, 0.0, GLFW_RELEASE, 0);
|
||||
}
|
||||
ImGui::MenuItem(STR_C("Quit"), "F10", &m_quit_active);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user