Hey facepunch. This may seem like a trivial question, and I bet it is, but I can't figure out how to make checkboxes that set themselves to be checked or unchecked according to whatever convar they toggle.
Thanks in advance.
Are you talking about this?
[b][url=http://bananatree.im/wiki/wiki.garrysmod.com/index7b66.html?title=DCheckBox.SetConVar]Panel.SetConVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[QUOTE=josh980;36165768]Are you talking about this?
[b][url=http://bananatree.im/wiki/wiki.garrysmod.com/index7b66.html?title=DCheckBox.SetConVar]Panel.SetConVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b][/QUOTE]
No, I know how to make checkboxes set a convar. Lets say I have said convar set to 0 by default. When I start up my script, all the checkboxes are checked, even the ones that are supposed to be off by default. If it would be more of use to you, I will go write some basic little vgui thing showing you how I go about doing it, and you can tell me what I am doing wrong.
[url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexc339.html?title=DCheckBox.SetChecked]You mean DCheckBox.SetChecked ?[/url]
Try that or [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index316d.html?title=DCheckBox.SetValue]DCheckBox.SetValue[/url]
Also, [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2859.html?title=DCheckBox]DCheckBox control[/url]
Sorry, you need to Log In to post a reply to this thread.