Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local panel = {}
- function panel:Init()
- self.Width = 0
- self.Height = 0
- self.Posx = 0
- self.Posy = 0
- end
- function panel:Paint()
- draw.RoundedBox( 4, 0, 0, self.Width, self.Height, Color(100,100,100,255)
- return true
- end
- function panel:SetISize(width,height)
- self.Width = width
- self.Height = height
- end
- function panel:SetPos(x,y)
- self.Posx = x
- self.Posy = y
- end
- vgui.Register( "test", panel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement