Hello, i wonder how i can close a DHTML lua client side script.
I have tried with:
html:SetVisible ( false )
But is that the same as close? Or is it just setting it invisible?
[QUOTE=albin900;46224316]Hello, i wonder how i can close a DHTML lua client side script.
I have tried with:
html:SetVisible ( false )
But is that the same as close? Or is it just setting it invisible?[/QUOTE]
No, SetVisible just hides the panel and its children.
[url=http://wiki.garrysmod.com/page/Panel/Remove]Remove[/url] will actually mark the panel, and children,for deletion.
As MCD says, Remove is the way to do it. Example: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/motd.lua.html[/url]
And useful console command for removing all VGUI, clearvgui: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_utilities/concommand_clearvgui.lua[/url]
Sorry, you need to Log In to post a reply to this thread.