- Added ability to explicitly execute a guiControl's console and altConsole command

- Fixed formatting of resolution strings for the internal values, allowing them to be properly parsed and applied by the options menu/canvas
- Fixed display of Display Device on option's menu
- Fixed Issue of it not displaying any keybinds in keyboard/gamepad options if there's only a single actionmap
- Added 'hold to scroll' action to optionsMenu
- Added apply button to options menu
- Added remap button to options menu when on keyboard/gamepad keybinds categories
- Fixed up the remap logic so remapping a key only unbinds the matched device being bound, so binds for different devices are untouched
- Made keybinds options properly refresh when keybinds are changed
- Shifted keyboard "go" keybind for menu nav from Enter to Space for easier use
- Removed stick keybinds from gamepad
This commit is contained in:
Areloch 2023-12-31 12:46:48 -06:00
parent f5ab97242f
commit 67ac556ecd
14 changed files with 223 additions and 95 deletions

View file

@ -192,11 +192,41 @@ $guiContent = new GuiControl(OptionsMenu) {
tooltipProfile = "GuiToolTipProfile";
class = "MenuInputButton";
};
new GuiIconButtonCtrl(OptionsMenuResetBtn) {
new GuiIconButtonCtrl(OptionsMenuRemapBtn) {
BitmapAsset = "UI:Keyboard_Black_Space_image";
sizeIconToButton = "1";
makeIconSquare = "1";
textLocation = "Center";
text = "Remap";
position = "850 0";
extent = "140 40";
horizSizing = "left";
vertSizing = "center";
profile = "GuiMenuButtonProfile";
command = "OptionsMenuActivateOption(1)";
tooltipProfile = "GuiToolTipProfile";
class = "MenuInputButton";
};
new GuiIconButtonCtrl(OptionsMenuApplyBtn) {
BitmapAsset = "UI:Keyboard_Black_Return_image";
sizeIconToButton = "1";
makeIconSquare = "1";
textLocation = "Center";
text = "Apply";
position = "990 0";
extent = "140 40";
horizSizing = "left";
vertSizing = "center";
profile = "GuiMenuButtonProfile";
command = "OptionsMenu.applyChangedOptions();";
tooltipProfile = "GuiToolTipProfile";
class = "MenuInputButton";
};
new GuiIconButtonCtrl(OptionsMenuResetBtn) {
BitmapAsset = "UI:Keyboard_Black_R_image";
sizeIconToButton = "1";
makeIconSquare = "1";
textLocation = "Center";
text = "Reset";
position = "1135 0";
extent = "140 40";