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:
AzaezelX 2026-06-24 21:11:12 -05:00
parent e9a517a9f3
commit ee4542ed80
3 changed files with 13 additions and 12 deletions

View file

@ -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)