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

Add hud_watermark command #191

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

sabianroberts
Copy link
Contributor

Command to toggle the HUD watermark that displays upon connecting to a server. Default value is 1.

gEngfuncs.pfnDrawString(ScreenWidth / 20, gHUD.m_scrinfo.iCharHeight, "OpenAG client build " __DATE__, r, g, b);
gEngfuncs.pfnDrawString(ScreenWidth / 20, gHUD.m_scrinfo.iCharHeight * 2, "j.mp/OpenAG", r, g, b);

if (update_is_available)
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe if an update is available, then this part of the HUD should be shown regardless of hud_watermark? What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe if an update is available, then this part of the HUD should be shown regardless of hud_watermark? What do you think?

Perhaps the update disclaimer can be shown for a shorter time if hud_watermark == 0.

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes have been pushed

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 11, 2024

Please apply all suggestions, then it's good.

@sabianroberts
Copy link
Contributor Author

sabianroberts commented Nov 11, 2024 via email

hud_watermark <0|1> (1 by default)

Controls whether the watermark & server-settings will display or not. The update disclaimer will display regardless, but only for 5 seconds if hud_watermark is set to 0.

Co-Authored-By: Ivan Molodetskikh <[email protected]>
@sabianroberts
Copy link
Contributor Author

@YaLTeR changes have been pushed and squashed into 1 tidy commit.

@YaLTeR YaLTeR merged commit 1b33f0b into YaLTeR:master Nov 14, 2024
13 checks passed
@YaLTeR
Copy link
Owner

YaLTeR commented Nov 14, 2024

Thanks

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.

2 participants