Commit Graph

13 Commits

Author SHA1 Message Date
a58953e90d refactor options to use Time.time to track when key is pressed, instead of using a Real.real value 2025-08-29 12:33:45 +01:00
defaf6c820 add functionality for cancel button in options-update.sml 2025-02-22 05:16:17 +00:00
e9f52d5cda allow cycling in options menu (when pressing down while on bottom button, it goes back to the top button, and whenh pressing up on the top button, it goes to the bottom button) 2025-02-22 05:07:20 +00:00
9c82a624b6 a little refactoring 2025-02-21 18:57:28 +00:00
e6b0a5f37f add 'saveKeys' boolean to GameType.game_type, which should tell us to assign the new userKeys record to the InputState (which is implemented), and should also tell us to convert the keys to a string and save it to controls.config 2025-02-21 18:32:48 +00:00
e1fb4004dd add 'tempKeys' field to OptionsType.options_type, so that any key binding changes in the menu do not take immediate effect (requires pressing 'save button' in order for changes to be saved and take effect) 2025-02-21 18:18:39 +00:00
abcbc030e1 highlight different options in red when they are (focused andalso selected) 2025-02-21 14:53:26 +00:00
b2f58f1c9a record and act on selected keys in options (except for save button and cancel button which are not acted upon) 2025-02-21 14:46:54 +00:00
603d6fa139 add key delay to options menu 2025-02-21 11:36:20 +00:00
c6fe819c0c thread time through update functions so it can be used 2025-02-21 08:58:45 +00:00
c81ca5dcf3 allow user to press up and down to select different options in options 2025-02-21 06:37:16 +00:00
6cd7edb5ab draw options screen when that is selected 2025-02-20 14:25:20 +00:00
6762a1b994 add non-configurable escape button to input type, to be used as a way to go backwards or exit menu 2025-02-20 13:32:37 +00:00