Commit 215ad5a
authored
vGui: Fixed Clientside ConVars & Small Misc Fixes (#1742)
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](#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.1 parent 19cbd67 commit 215ad5a
File tree
3 files changed
+12
-7
lines changed- gamemodes/terrortown/gamemode/client/cl_vskin
- vgui
3 files changed
+12
-7
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | | - | |
| 1771 | + | |
| 1772 | + | |
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
| |||
1778 | 1778 | | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | | - | |
1782 | | - | |
| 1781 | + | |
| 1782 | + | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | 1785 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
220 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
0 commit comments