- 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

@ -2947,3 +2947,19 @@ DefineEngineMethod( GuiControl, getAspect, F32, (),,
const Point2I &ext = object->getExtent();
return (F32)ext.x / (F32)ext.y;
}
//-----------------------------------------------------------------------------
DefineEngineMethod(GuiControl, execCommand, const char*, (), ,
"Forcefully executes the command field value(if any) on this guiControl.\n"
"@return The results of the evaluation of the command.")
{
return object->execConsoleCallback();
}
DefineEngineMethod(GuiControl, execAltCommand, const char*, (), ,
"Forcefully executes the altCommand field value(if any) on this guiControl.\n"
"@return The results of the evaluation of the altCommand.")
{
return object->execAltConsoleCallback();
}