Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COLOR_TEAM_PINK = Color( 255, 0, 255, 175)
- COLOR_TEAM_RED = Color( 255, 0, 0, 175)
- COLOR_TEAM_GREEN = Color( 30, 255, 0, 175)
- COLOR_TEAM_YELLOW = Color( 255, 255, 0, 175)
- COLOR_TEAM_WHITE = Color( 255, 255, 255, 175)
- MsgC( Color(255,0,0), " " )
- MsgC( Color(255,0,0), " Hello, ", Color(0,255,0), "Welcome to the sloth utilitys menu!")
- MLGFrame = vgui.Create( "DFrame" )
- MLGFrame:SetPos( 400, 250 )
- MLGFrame:SetSize( 800, 400 )
- MLGFrame:SetVisible(true)
- MLGFrame:MakePopup()
- MLGPanel = vgui.Create( "DPanel" , MLGFrame )
- MLGPanel:SetPos( 0, 25 )
- MLGPanel:SetSize( 800, 400 )
- MLGPanel:SetBackgroundColor( COLOR_TEAM_WHITE )
- local button = vgui.Create("DButton" , MLGFrame)
- button:SetPos(10,30)
- button:SetSize(80,25)
- button:SetText("Red")
- button.DoClick = mlgPress
- function mlgPress()
- MLGPanel:SetBackgroundColor( COLOR_TEAM_RED )
- end
- local button2 = vgui.Create("DButton" , MLGFrame)
- button2:SetPos(100,30)
- button2:SetSize(80,25)
- button2:SetText("Pink")
- button2.DoClick = mlgPress2
- function mlgPress2()
- MLGPanel:SetBackgroundColor( COLOR_TEAM_PINK )
- end
- local button3 = vgui.Create("DButton" , MLGFrame)
- button3:SetPos(10,80)
- button3:SetSize(80,25)
- button3:SetText("Green")
- button3.DoClick = mlgPress3
- function mlgPress3()
- MLGPanel:SetBackgroundColor( COLOR_TEAM_GREEN )
- end
- local button4 = vgui.Create("DButton" , MLGFrame)
- button4:SetPos(100,80)
- button4:SetSize(80,25)
- button4:SetText("Yellow")
- button4.DoClick = mlgPress4
- function mlgPress4()
- MLGPanel:SetBackgroundColor( COLOR_TEAM_YELLOW )
- end
- local button5 = vgui.Create("DButton" , MLGFrame)
- button5:SetPos(55,135)
- button5:SetSize(80,25)
- button5:SetText("Normal")
- button5.DoClick = mlgPress5
- function mlgPress5()
- MLGPanel:SetBackgroundColor( COLOR_TEAM_WHITE )
- end
- local button6 = vgui.Create("DButton" , MLGFrame)
- button6:SetPos(300,30)
- button6:SetSize(100,30)
- button6:SetText("Mic Stay")
- button6.DoClick = mlgPress6
- function mlgPress6()
- RunConsoleCommand("+voicerecord")
- end
- local button7 = vgui.Create("DButton" , MLGFrame)
- button7:SetPos(300,80)
- button7:SetSize(100,30)
- button7:SetText("Mic Off")
- button7.DoClick = mlgPress7
- function mlgPress7()
- RunConsoleCommand("-voicerecord")
- end
- local button8 = vgui.Create("DButton" , MLGFrame)
- button8:SetPos(300,180)
- button8:SetSize(100,30)
- button8:SetText("Useless Button")
- button8.DoClick = mlgPress8
- function mlgPress8()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement