Skip to content

Commit

Permalink
Merge pull request CorsixTH#2724 from MandrakeHorse/hotkeyTooltips
Browse files Browse the repository at this point in the history
added tooltips to Hotkey Assignment screen
  • Loading branch information
TheCycoONE authored Nov 20, 2024
2 parents b853352 + 98eb7b3 commit 541e4f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 6 additions & 6 deletions CorsixTH/Lua/dialogs/resizables/hotkey_assign.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
self.key_options = {{
id = "global",
title = _S.hotkey_window.panel_globalKeys,
tooltip = _S.hotkey_window.panel_globalKeys,
tooltip = _S.tooltip.hotkey_window.panel_globalKeys,
sections = {{
title = _S.hotkey_window.panel_globalKeys,
keys = {
Expand All @@ -324,7 +324,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
{
id = "ingame",
title = _S.hotkey_window.panel_generalInGameKeys,
tooltip = _S.hotkey_window.panel_generalInGameKeys,
tooltip = _S.tooltip.hotkey_window.panel_generalInGameKeys,
sections = {{
title = _S.hotkey_window.panel_generalInGameKeys,
keys = {
Expand Down Expand Up @@ -357,7 +357,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
{
id = "scroll",
title = _S.hotkey_window.panel_scrollKeys,
tooltip = _S.hotkey_window.panel_scrollKeys,
tooltip = _S.tooltip.hotkey_window.panel_scrollKeys,
sections = {{
title = _S.hotkey_window.panel_scrollKeys,
keys = {
Expand All @@ -370,7 +370,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
{
id = "zoom",
title = _S.hotkey_window.panel_zoomKeys,
tooltip = _S.hotkey_window.panel_zoomKeys,
tooltip = _S.tooltip.hotkey_window.panel_zoomKeys,
sections = {{
title = _S.hotkey_window.panel_zoomKeys,
keys = {
Expand All @@ -382,7 +382,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
{
id = "toggle",
title = _S.hotkey_window.panel_toggleKeys,
tooltip = _S.hotkey_window.panel_toggleKeys,
tooltip = _S.tooltip.hotkey_window.panel_toggleKeys,
sections = {{
title = _S.hotkey_window.panel_toggleKeys,
keys = {
Expand Down Expand Up @@ -450,7 +450,7 @@ function UIHotkeyAssign:UIHotkeyAssign(ui, mode)
table.insert(self.key_options, {
id = "debug",
title = _S.hotkey_window.panel_debugKeys,
tooltip = _S.hotkey_window.panel_debugKeys,
tooltip = _S.tooltip.hotkey_window.panel_debugKeys,
sections = {{
title = _S.hotkey_window.panel_debugKeys,
keys = {
Expand Down
12 changes: 9 additions & 3 deletions CorsixTH/Lua/languages/english.lua
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,15 @@ tooltip.hotkey_window = {
button_accept = "Accept and save hotkey assignments",
button_defaults = "Reset all hotkeys to the program's defaults",
button_cancel = "Cancel the assignment and go back to the options menu",
caption_panels = "Open window to assign panel keys",
button_gameSpeedKeys = "Open window to set keys to control game speed",
button_recallPosKeys = "Open window to set keys to store and recall camera positions",
panel_globalKeys = "Assign global hotkeys",
panel_generalInGameKeys = "Assign general in-game hotkeys",
button_gameSpeedKeys = "Assign hotkeys to control the game speed",
panel_scrollKeys = "Assign hotkeys to scroll the screen",
panel_zoomKeys = "Assign hotkeys to zoom in and out",
panel_toggleKeys = "Assign hotkeys to toggle options",
caption_panels = "Assign hotkeys to open panels",
button_recallPosKeys = "Assign hotkeys to save and recall camera positions",
panel_debugKeys = "Assign hotkeys for debugging",
button_back_02 = "Go back to the main hotkey window. Hotkeys changed in this window can be accepted there",
}

Expand Down

0 comments on commit 541e4f9

Please sign in to comment.