Skip to content

vGui: Fixed Clientside ConVars & Small Misc Fixes#1742

Merged
TimGoll merged 2 commits intomasterfrom
fixed-cvar-misc
Jan 26, 2025
Merged

vGui: Fixed Clientside ConVars & Small Misc Fixes#1742
TimGoll merged 2 commits intomasterfrom
fixed-cvar-misc

Conversation

@TimGoll
Copy link
Member

@TimGoll TimGoll commented Jan 24, 2025

fixes #1735

This issue was created since the cvar is now tracked in the "main button" not the checkbox button anymore. This worked fine for serverside settings with custom handling, as well as client settings that use function wrappers to set the convar (like vskin for example).

This change now correctly sets the stored convar. It feels a bit hacky to me to be honest, but only a full rewrite would resolve this. So it is probably fine.

I also noticed that this requested change was not applied to all function calls, so I renamed the one remaining.

Last but not least, I noticed that the border radius was substracted twice.

@TimGoll TimGoll added the skip-changelog Skips the requirement for an entry in the CHANGELOG.md label Jan 24, 2025
@TimGoll TimGoll changed the title Fixed cvar misc vGui: Fixed Clientside ConVars & Small Misc Fixes Jan 24, 2025
@TimGoll TimGoll merged commit 215ad5a into master Jan 26, 2025
5 checks passed
@TimGoll TimGoll deleted the fixed-cvar-misc branch January 26, 2025 09:11
Histalek pushed a commit to WardenPotato/TTT2 that referenced this pull request Jan 31, 2025
fixes TTT-2#1735

This issue was created since the cvar is now tracked in the "main
button" not the checkbox button anymore. This worked fine for serverside
settings with custom handling, as well as client settings that use
function wrappers to set the convar (like vskin for example).

This change now correctly sets the stored convar. It feels a bit hacky
to me to be honest, but only a full rewrite would resolve this. So it is
probably fine.

I also noticed that [this requested
change](TTT-2#1724 (comment))
was not applied to all function calls, so I renamed the one remaining.

Last but not least, I noticed that the border radius was substracted
twice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Skips the requirement for an entry in the CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client Settings In Gameplay Tab Not Saving

2 participants