Skip to content

Support Custom Gauges in HUD Config UI #6670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MjnMixael
Copy link
Contributor

This PR adds 90% of the support needed for Custom Gauges in HUD Config. Custom gauges can now be individually colored to the user's preference. This also adds a new .hdp file to save the player's HUD color preferences. I felt this was a better way forward than trying to add it directly in the player file and having to bump the player file version causing a cascade of changes needed. The new file will be used if present, otherwise it will use the data from the player file.

Also added here is framework for custom gauge Visibility and Popup toggles but those are currently unimplemented and will need further table flags, testing, and for Popup, some kind of way to trigger when they should popup. Might really only be useful for Scripted gauges? I haven't planned that all out yet. That will be a future PR.

The display color of a custom gauge matches built-in gauges with one exception**:

  1. SEXP defined color
  2. User defined color
  3. Color based on gauge type ** New. This is how custom gauges currently get their default color.
  4. Default main preset color

@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. HUD A feature or issue related to the HUD ui A feature or issue specific to the menus portion of the user interface labels Apr 9, 2025
@MjnMixael MjnMixael added the Requested by Active Mod A feature request that has been requested by a mod that is actively in development. label Apr 9, 2025
@MjnMixael MjnMixael added this to the Release 25.0 milestone Apr 9, 2025
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. HUD A feature or issue related to the HUD Requested by Active Mod A feature request that has been requested by a mod that is actively in development. ui A feature or issue specific to the menus portion of the user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants