Skip to content

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Dec 23, 2025

GuiSelector:

Weapons:

Before:

Screencast_20251223_021256.webm

After:

Screencast_20251223_020441.webm

@oznogon
Copy link
Contributor Author

oznogon commented Dec 23, 2025

Translators will probably have issues with this that I can't anticipate, and I'd appreciate feedback. Most space-constrained text fields have a worse time in other languages, French in particular.

@oznogon oznogon changed the title Refactor GuiSelector, use layout attributes for Weapons beam and shields [#2497, #2642, #2643, #2646] Refactor GuiSelector, use layout attributes for Weapons beam and shields Dec 24, 2025
- Add overridePopupWidth() function to manually set a minimum width
  for the popup list of options.
- Scale button height and text size of popup list options if they
  overflow the screen height, as it does with frequency lists for
  beams/shields.
- Clip text to the space between the arrow buttons.
- Remove redundant sound effects from arrow button clicks, which
  are already handled by onMouseUp on the entire GuiSelector rect.
- Add shield controls to the adjacent beam info controls
  GuiElement container.
- Use layout attributes in beam info controls container.
- Add labels for beam frequency and beam system target.
- Dynamically resize elements and change labels to avoid radar
  overlap.
- Rename beam section to "Beam targeting" to better reflect its
  purpose.
- Use GuiSelector::overridePopupWidth() to widen popup and better
  fit long system names, such as "Front Shield Generator".
- Add label for shield controls.
@oznogon oznogon force-pushed the beam-controls-layout branch from 761be89 to 7e56044 Compare December 30, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment