Advertisement
Guest User

Untitled

a guest
Dec 25th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local panel = {}
  2.  
  3. function panel:Init()
  4.  
  5. self.Width = 0
  6. self.Height = 0
  7. self.Posx = 0
  8. self.Posy = 0
  9.  
  10. end
  11.  
  12. function panel:Paint()
  13.  
  14. draw.RoundedBox( 4, 0, 0, self.Width, self.Height, Color(100,100,100,255)
  15. return true
  16. end
  17.  
  18. function panel:SetISize(width,height)
  19.  
  20. self.Width = width
  21. self.Height = height
  22.  
  23. end
  24.  
  25. function panel:SetPos(x,y)
  26.  
  27. self.Posx = x
  28. self.Posy = y
  29.  
  30. end
  31. vgui.Register( "test", panel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement