Skip to content
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

Support Custom Gauges in HUD Config UI #6670

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant