From 2b8e976c6abe59aa8137c809821b8ceb0135cb7a Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 10 Jan 2020 14:07:53 +0400 Subject: [PATCH 1/2] Adjust settings menu --- files/mygui/openmw_settings_window.layout | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/files/mygui/openmw_settings_window.layout b/files/mygui/openmw_settings_window.layout index ce1fb15ed5..f61af5a100 100644 --- a/files/mygui/openmw_settings_window.layout +++ b/files/mygui/openmw_settings_window.layout @@ -213,7 +213,7 @@ - + @@ -231,10 +231,10 @@ - + - + @@ -244,15 +244,15 @@ - + - + - + @@ -306,9 +306,9 @@ - + - + @@ -320,18 +320,18 @@ - + - + - + - + @@ -341,11 +341,11 @@ - + - + @@ -373,10 +373,10 @@ - + - + @@ -388,7 +388,7 @@ - + @@ -400,11 +400,11 @@ - + - + From 4d4663e0ad878fc8ec32ef60b411cdae14ba50d0 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 10 Jan 2020 14:29:04 +0400 Subject: [PATCH 2/2] Make 'Toggle HUD' hotkey configurable --- apps/openmw/mwinput/inputmanagerimp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwinput/inputmanagerimp.cpp b/apps/openmw/mwinput/inputmanagerimp.cpp index c395333d6f..540efdf89d 100644 --- a/apps/openmw/mwinput/inputmanagerimp.cpp +++ b/apps/openmw/mwinput/inputmanagerimp.cpp @@ -1601,6 +1601,8 @@ namespace MWInput return "Zoom In"; else if (action == A_ZoomOut) return "Zoom Out"; + else if (action == A_ToggleHUD) + return "Toggle HUD"; descriptions[A_Use] = "sUse"; descriptions[A_Activate] = "sActivate"; @@ -1779,6 +1781,7 @@ namespace MWInput ret.push_back(A_Console); ret.push_back(A_QuickSave); ret.push_back(A_QuickLoad); + ret.push_back(A_ToggleHUD); ret.push_back(A_Screenshot); ret.push_back(A_QuickKeysMenu); ret.push_back(A_QuickKey1); @@ -1812,6 +1815,7 @@ namespace MWInput ret.push_back(A_Rest); ret.push_back(A_QuickSave); ret.push_back(A_QuickLoad); + ret.push_back(A_ToggleHUD); ret.push_back(A_Screenshot); ret.push_back(A_QuickKeysMenu); ret.push_back(A_QuickKey1); @@ -1852,7 +1856,7 @@ namespace MWInput } // Disallow binding reserved keys - if (key == SDL_SCANCODE_F3 || key == SDL_SCANCODE_F4 || key == SDL_SCANCODE_F10 || key == SDL_SCANCODE_F11) + if (key == SDL_SCANCODE_F3 || key == SDL_SCANCODE_F4 || key == SDL_SCANCODE_F10) return; #ifndef __APPLE__