mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Adjusts guiGameListMenuCtrl.cpp to handle Left and Right keys to adjust options, which simultaneously fixes the 'jiggle' issue on the options menu of the BaseGame base UI
Per Steve's suggestion, put a pause on gameplay sounds alongside the game sim being paused when the pause menu is opened. Nudges the keybind preview image for guiGameListMenuCtrl to be better centered
This commit is contained in:
parent
68ac97e82a
commit
db6c63d424
3 changed files with 12 additions and 2 deletions
|
|
@ -391,7 +391,7 @@ void GuiGameListMenuCtrl::onRenderKeybindOption(Row* row, Point2I currentOffset)
|
|||
//drawer->drawBitmap(row->mBitmap, )
|
||||
|
||||
Point2I button;
|
||||
button.x = currentOffset.x + columnSplit + (columnSplit / 2)/* + (optionWidth / 2)*/;
|
||||
button.x = currentOffset.x + columnSplit + (columnSplit / 2.5)/* + (optionWidth / 2)*/;
|
||||
button.y = currentOffset.y + (rowHeight / 4);
|
||||
|
||||
Point2I buttonSize;
|
||||
|
|
@ -885,6 +885,14 @@ bool GuiGameListMenuCtrl::onKeyDown(const GuiEvent &event)
|
|||
changeRow(1);
|
||||
return true;
|
||||
|
||||
case KEY_LEFT:
|
||||
changeOption(-1);
|
||||
return true;
|
||||
|
||||
case KEY_RIGHT:
|
||||
changeOption(1);
|
||||
return true;
|
||||
|
||||
case KEY_A:
|
||||
case KEY_RETURN:
|
||||
case KEY_NUMPADENTER:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue