[QUOTE=sackcreator54;42484284]Move
[code]
Frame:Makepopup()
[/code]
ABOVE
[code]
-----Button 1-------
[/code][/QUOTE]
I meant to specify earlier but the problem is not when the menu comes up, its when i press close. The menu doesnt close and it just spams me with those 3 errors.
Don't use
[code]
Frame:Close() or Frame:Remove()
[/code]
Use
[code]
Frame:SetVisible(false)
[/code]
instead.
[code]function ClosePanels()
Frame:Close()
Frame:Remove()
end[/code]
Only use Frame:Remove()
And make sure all of other your panels are local variables, not global, to avoid other scripts messing up those variables. Just in case.
[QUOTE=Robotboy655;42486763][code]function ClosePanels()
Frame:Close()
Frame:Remove()
end[/code]
Only use Frame:Remove()
And make sure all of other your panels are local variables, not global, to avoid other scripts messing up those variables. Just in case.[/QUOTE]
That works perfect. Thank you so much. The only problem that i am having now is when i press the key to open the VGUI, many VGUI's open. How would I go about solving this? Could i just check if it is already open, and how would I do that? Thanks a lot
This is becoming a huge obstacle for me. I have tried the most obvious things and its just not doing anything. Any help would be great.
[QUOTE=TheEncrypted;42493483]This is becoming a huge obstacle for me. I have tried the most obvious things and its just not doing anything. Any help would be great.[/QUOTE]
[Code]if IsValid(Frame) then return end[/Code]
Put that at top of CreateVGUIMenu. It'll avoid creating new frames if one already exists.
You really should rename Frame to something else though.
Sorry, you need to Log In to post a reply to this thread.