Skip to content

Fix two HUD Config preset issues#6830

Merged
wookieejedi merged 2 commits into
scp-fs2open:masterfrom
MjnMixael:fix_gauge_loading
Jul 24, 2025
Merged

Fix two HUD Config preset issues#6830
wookieejedi merged 2 commits into
scp-fs2open:masterfrom
MjnMixael:fix_gauge_loading

Conversation

@MjnMixael

Copy link
Copy Markdown
Contributor

Fixes 2 issues with gauge color config presets

  1. Resolve issue where user colors would be overwritten by default white when loading a player or campaign file. The use_exact_match bool was necessary before Custom Gauges could be individually colored and should now be removed.

  2. Make sure when loading a HUD Preset file that we set colors for custom gauges of matching types first and then any specific custom gauge colors after that. This makes it so, for example, if Reticle Circle has a defined color in the preset then all custom gauges of type "reticle circle" also get that same color.

@wookieejedi wookieejedi added this to the Release 25.0 milestone Jul 14, 2025
@wookieejedi wookieejedi added fix A fix for bugs, not-a-bugs, and/or regressions. HUD A feature or issue related to the HUD labels Jul 14, 2025

@JohnAFernandez JohnAFernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wookieejedi

Copy link
Copy Markdown
Member

Will merge this later today to ensure it's in tomorrows nightly.

@wookieejedi wookieejedi merged commit 021eb8e into scp-fs2open:master Jul 24, 2025
20 checks passed
@MjnMixael MjnMixael deleted the fix_gauge_loading branch July 24, 2025 20:55
Kestrellius pushed a commit to Kestrellius/fs2open.github.com that referenced this pull request Jul 26, 2025
* always use exact match

* custom gauges should use the type for colors with old preset files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. HUD A feature or issue related to the HUD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants