mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixes handling of click/activation events on keybind options ctrls so clicking on it at all activates it, instead of needing to click on the button image specifically
Adjust the scaling of the options rows to be a consistent 50/50 divide between the options name and the actual options values to make the layout and scaling consistent Fixes key remapping behavior to work properly Added SubHeader text gui profile that is centered Made the remapping gui control be stylistically consistent to messageboxes
This commit is contained in:
parent
abbfb634f3
commit
f2585fea4d
5 changed files with 65 additions and 114 deletions
|
|
@ -817,16 +817,9 @@ void GuiGameSettingsCtrl::clickKeybind(S32 xPos)
|
|||
S32 columnSplit = mColumnSplit;
|
||||
|
||||
S32 height = getHeight();
|
||||
S32 width = getWidth();
|
||||
|
||||
Point2I button;
|
||||
button.x = columnSplit + (columnSplit / 2.5)/* + (optionWidth / 2)*/;
|
||||
button.y = 0;
|
||||
|
||||
Point2I buttonSize;
|
||||
buttonSize.x = height;
|
||||
buttonSize.y = height;
|
||||
|
||||
RectI rect(button, buttonSize);
|
||||
RectI rect(Point2I::Zero, Point2I(width, height));
|
||||
|
||||
onChange_callback();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue