Talk:Persious's team menu guide

From GMod Wiki

Revision as of 21:38, 23 May 2011 by Toneo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 
-- This is a part which I had to add for the fun sake.
if !TeamMenu.Open then --  If the menu is closed, then
TeamMenu:MoveTo(ScrW() / 2 - 250,  ScrH() / 2 - 200, 1.6, 0,1) -- When you open it, it will slide trough the screen, not teleport.
end -- Ending the 'IF'
 

Open isn't defined at all. This entire if statement is redundant, especially since you've just created the frame. It looks like you're trying to make the frame slide in. Also, why are you creating a whole new set of VGUI elements every time the function is run? Just store them and then open the existing frame up again. Toneo 22:38, 23 May 2011 (IST)

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox