Skip to content

Allow setting custom gauges as message gauges#7217

Open
MjnMixael wants to merge 1 commit intoscp-fs2open:masterfrom
MjnMixael:custom_gauges_as_messages
Open

Allow setting custom gauges as message gauges#7217
MjnMixael wants to merge 1 commit intoscp-fs2open:masterfrom
MjnMixael:custom_gauges_as_messages

Conversation

@MjnMixael
Copy link
Contributor

Custom scripted messages gauges are essentially standard now, so we need a way to tell FSO that this gauge should stay enabled when hud-disabled-except-messages is called. So this adds a boolean table option to set a custom gauge as a message gauge which were previously always hardcoded to false.

Fixes #7197

@wookieejedi wookieejedi added 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. HUD A feature or issue related to the HUD scripting A feature or issue related to LUA scripting labels Feb 11, 2026
Copy link
Contributor

@naomimyselfandi naomimyselfandi left a comment

Choose a reason for hiding this comment

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

The existing code is BUTTS, but this is probably the most straightforward way to hook into it. In the interest of practicing what I preach, could you confirm that you've tested it before I approve it?

@MjnMixael
Copy link
Contributor Author

The existing code is BUTTS, but this is probably the most straightforward way to hook into it. In the interest of due diligence, could you confirm that you've tested it independently?

Yup. I tested it on our gauges in BtA and it worked as expected.

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. HUD A feature or issue related to the HUD scripting A feature or issue related to LUA scripting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Allow option for custom HUD gauges to be displayed under hud-disable-except-messages

3 participants