Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. COLOR_TEAM_PINK = Color( 255, 0, 255, 175)
  2. COLOR_TEAM_RED = Color( 255, 0, 0, 175)
  3. COLOR_TEAM_GREEN = Color( 30, 255, 0, 175)
  4. COLOR_TEAM_YELLOW = Color( 255, 255, 0, 175)
  5. COLOR_TEAM_WHITE = Color( 255, 255, 255, 175)
  6.  
  7. MsgC( Color(255,0,0), " " )
  8. MsgC( Color(255,0,0), " Hello, ", Color(0,255,0), "Welcome to the sloth utilitys menu!")
  9.  
  10. MLGFrame = vgui.Create( "DFrame" )
  11. MLGFrame:SetPos( 400, 250 )
  12. MLGFrame:SetSize( 800, 400 )
  13. MLGFrame:SetVisible(true)
  14. MLGFrame:MakePopup()
  15.  
  16. MLGPanel = vgui.Create( "DPanel" , MLGFrame )
  17. MLGPanel:SetPos( 0, 25 )
  18. MLGPanel:SetSize( 800, 400 )
  19. MLGPanel:SetBackgroundColor( COLOR_TEAM_WHITE )
  20.  
  21. local button = vgui.Create("DButton" , MLGFrame)
  22. button:SetPos(10,30)
  23. button:SetSize(80,25)
  24. button:SetText("Red")
  25. button.DoClick = mlgPress
  26.  
  27. function mlgPress()
  28.  
  29. MLGPanel:SetBackgroundColor( COLOR_TEAM_RED )
  30.  
  31. end
  32.  
  33. local button2 = vgui.Create("DButton" , MLGFrame)
  34. button2:SetPos(100,30)
  35. button2:SetSize(80,25)
  36. button2:SetText("Pink")
  37. button2.DoClick = mlgPress2
  38.  
  39. function mlgPress2()
  40.  
  41. MLGPanel:SetBackgroundColor( COLOR_TEAM_PINK )
  42.  
  43. end
  44.  
  45. local button3 = vgui.Create("DButton" , MLGFrame)
  46. button3:SetPos(10,80)
  47. button3:SetSize(80,25)
  48. button3:SetText("Green")
  49. button3.DoClick = mlgPress3
  50.  
  51. function mlgPress3()
  52.  
  53. MLGPanel:SetBackgroundColor( COLOR_TEAM_GREEN )
  54.  
  55. end
  56.  
  57. local button4 = vgui.Create("DButton" , MLGFrame)
  58. button4:SetPos(100,80)
  59. button4:SetSize(80,25)
  60. button4:SetText("Yellow")
  61. button4.DoClick = mlgPress4
  62.  
  63. function mlgPress4()
  64.  
  65. MLGPanel:SetBackgroundColor( COLOR_TEAM_YELLOW )
  66.  
  67. end
  68.  
  69. local button5 = vgui.Create("DButton" , MLGFrame)
  70. button5:SetPos(55,135)
  71. button5:SetSize(80,25)
  72. button5:SetText("Normal")
  73. button5.DoClick = mlgPress5
  74.  
  75. function mlgPress5()
  76.  
  77. MLGPanel:SetBackgroundColor( COLOR_TEAM_WHITE )
  78.  
  79. end
  80.  
  81. local button6 = vgui.Create("DButton" , MLGFrame)
  82. button6:SetPos(300,30)
  83. button6:SetSize(100,30)
  84. button6:SetText("Mic Stay")
  85. button6.DoClick = mlgPress6
  86.  
  87. function mlgPress6()
  88.  
  89. RunConsoleCommand("+voicerecord")
  90.  
  91. end
  92.  
  93. local button7 = vgui.Create("DButton" , MLGFrame)
  94. button7:SetPos(300,80)
  95. button7:SetSize(100,30)
  96. button7:SetText("Mic Off")
  97. button7.DoClick = mlgPress7
  98.  
  99. function mlgPress7()
  100.  
  101. RunConsoleCommand("-voicerecord")
  102.  
  103. end
  104.  
  105. local button8 = vgui.Create("DButton" , MLGFrame)
  106. button8:SetPos(300,180)
  107. button8:SetSize(100,30)
  108. button8:SetText("Useless Button")
  109. button8.DoClick = mlgPress8
  110.  
  111. function mlgPress8()
  112.  
  113.  
  114.  
  115. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement