mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-09 13:44:32 +00:00
simplify menu navigation button setup
remove position lookup logic for the choose level and choose game modes nav button icons in favor of the built in source side ones. The elements they relate to are centered as is, so set the encapsulating element for them to horizontal=centered as well, and the sub elements to thier respective left-and right as prepwork if someone *did* want to make the elements they reference scale hoizontally.
This commit is contained in:
parent
e9a517a9f3
commit
ee4542ed80
3 changed files with 13 additions and 12 deletions
|
|
@ -285,10 +285,7 @@ function ChooseLevelMenu::syncGUI(%this)
|
|||
%btn.setHighlighted(true);
|
||||
|
||||
%buttonPosX = %btn.position.x + ChooseLevelMenuTabList.position.x;
|
||||
|
||||
ChooseLevelMenuPrevNavIcon.position.x = %buttonPosX;
|
||||
ChooseLevelMenuNextNavIcon.position.x = %buttonPosX + %btn.extent.x - 40;
|
||||
|
||||
|
||||
ChooseLevelBackBtn.setBitmap(BaseUIActionMap.getCommandButtonBitmap(%device, "BaseUIBackOut"));
|
||||
|
||||
if(ChooseLevelMenu.currentMenuIdx == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue