Skip to content

Fix highlighting color discrepancy for player ship in loadout screen#6716

Merged
wookieejedi merged 2 commits into
scp-fs2open:masterfrom
wookieejedi:loadout-minor-tuneups
May 15, 2025
Merged

Fix highlighting color discrepancy for player ship in loadout screen#6716
wookieejedi merged 2 commits into
scp-fs2open:masterfrom
wookieejedi:loadout-minor-tuneups

Conversation

@wookieejedi

@wookieejedi wookieejedi commented May 10, 2025

Copy link
Copy Markdown
Member

This PR fixes a loadout screen icon highlighting issue.

Currently there is a nice orange coloration of the player ship icon in the Ship Selection wing loadout. This immediately shows the player which ship is theirs, but this usefulness does not translate to the Weapon Loadout screen. The player must select another ship, besides the player ship, to have the player ship show up as orange. This PR adds a bool always_highlight_ply which is specifically for the weapon draw_wing_block function when called as as part of the weapon loadout routine.

Tested and works as expected.

This PR adds a few visual indicator tune-ups to the loadout screens.

1.
Currently, if a mission is set as `scramble` then there is no visual way for the player to see that the Ship Selection and Weapon Loadout screens are locked, instead the player has to click on the buttons and hear the fail sounds or assess that the hover states are not triggering.

This PR adds a text line right below the words `Weapons Loadout` that states "Ships/Weapons Locked" (XSTR 749) if the mission is `scramble` thus the player can easily see this right away and not have to check the buttons on every mission.

2.
Currently there is a nice orange coloration of the player ship icon in the Ship Selection wing loadout. This immediately shows the player which ship is theirs, but this usefulness does not translate to the Weapon Loadout screen.  The player must select another ship, besides the player ship, to have the player ship show up as orange.

This PR adds a bool `always_highlight_ply` which is specifically for the weapon `draw_wing_block` function when called as as part of the weapon loadout routine.

Both PRs are tested and work as expected. I currently have these PRs on without a flag, but if folks really do not want the PRs or would prefer them to be behind a flag, then I'm happy to do that, too.
@wookieejedi wookieejedi added the enhancement A new feature or upgrade of an existing feature to add additional functionality. label May 10, 2025
@Goober5000

Copy link
Copy Markdown
Contributor

I'd like a PR for the first option (the additional text), but the second option seems like a bugfix so it doesn't need a flag IMO.

@wookieejedi wookieejedi changed the title Few Minor Visual Indicator Enhancements to Loadout Fix highlighting color discrepancy for player ship in loadout screen May 13, 2025
@wookieejedi wookieejedi added the fix A fix for bugs, not-a-bugs, and/or regressions. label May 13, 2025
@wookieejedi wookieejedi merged commit 4b7817e into scp-fs2open:master May 15, 2025
16 checks passed
@wookieejedi wookieejedi deleted the loadout-minor-tuneups branch May 15, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. fix A fix for bugs, not-a-bugs, and/or regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants