mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-17 05:34:37 +00:00
Feat: Game Speed + Pause keybinds (#3397)
## Description: Can't tell you how many times I've been playing solo, I try to go change the speed from `Max` to `x1` and before I've opened the speed controls and clicked on one the AI completely wipes me. But not to worry, we now have a pause and speed toggle up/down keybinds! https://github.com/user-attachments/assets/48692c27-888f-40fb-837a-45e26f262441 Keybinds were added to "Menu Shortcuts" submenu: <img width="1750" height="1099" alt="image" src="https://github.com/user-attachments/assets/8c4500d5-f43e-4a1c-9940-04db75bf18cf" /> Tested on Solo, custom match, and public lobbies. Pause intent works correctly on solo and private match (only if you are host), and neither feature works in public matches, as expected. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: bijx
This commit is contained in:
@@ -97,6 +97,8 @@
|
||||
"action_build": "Open build menu",
|
||||
"action_emote": "Open emote menu",
|
||||
"action_center": "Center camera on player",
|
||||
"action_pause_game": "Pause / Resume game",
|
||||
"action_game_speed": "Game speed down / up (single player)",
|
||||
"action_zoom": "Zoom out/in",
|
||||
"action_move_camera": "Move camera",
|
||||
"action_ratio_change": "Decrease/Increase attack ratio",
|
||||
@@ -571,6 +573,12 @@
|
||||
"build_menu_modifier_desc": "Hold this key while clicking to open the build menu.",
|
||||
"emoji_menu_modifier": "Emoji Menu Modifier",
|
||||
"emoji_menu_modifier_desc": "Hold this key while clicking to open the emoji menu.",
|
||||
"pause_game": "Pause",
|
||||
"pause_game_desc": "Pause or resume the game (single player and custom games for host).",
|
||||
"game_speed_up": "Game Speed Up",
|
||||
"game_speed_up_desc": "Cycle to next game speed (0.5, 1, 2, max). Single player only.",
|
||||
"game_speed_down": "Game Speed Down",
|
||||
"game_speed_down_desc": "Cycle to previous game speed. Single player only.",
|
||||
"attack_ratio_controls": "Attack Ratio Controls",
|
||||
"attack_ratio_up": "Increase Attack Ratio",
|
||||
"attack_ratio_up_desc": "Increase attack ratio by {amount}%",
|
||||
|
||||
Reference in New Issue
Block a user