Support Custom Gauges in HUD Config UI #6670
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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**: