Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --CODE BY NORWAY174
- --Act console reference sheet: http://steamcommunity.com/sharedfiles/filedetails/?id=152152088
- local version = "1.0";
- function frame_create()
- frame = vgui.Create("DFrame")
- frame:SetPos(50,50)
- frame:SetSize(465,358)
- frame:SetTitle("Player Animator "..version)
- frame:SetVisible(false)
- frame:SetDraggable(true)
- frame:ShowCloseButton(true)
- frame:SetBackgroundBlur(false)
- frame:MakePopup()
- frame:Center()
- frame.OnClose = function()
- frame_create();
- end
- local DLabel = vgui.Create( "DLabel", frame )
- DLabel:SetPos( 360, 342 )
- DLabel:SetText( "Made by Norway174" )
- DLabel:SizeToContents()
- --ROW 1
- --Salute
- button = vgui.Create("DButton",frame)
- button:SetText("Salute")
- button:SetPos(5,27)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "salute");
- frame_close();
- end
- --Dance
- button = vgui.Create("DButton",frame)
- button:SetText("Dance")
- button:SetPos(5,80)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "dance");
- frame_close();
- end
- --Cheer
- button = vgui.Create("DButton",frame)
- button:SetText("Cheer")
- button:SetPos(5,133)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "cheer");
- frame_close();
- end
- --Laugh
- button = vgui.Create("DButton",frame)
- button:SetText("Laugh")
- button:SetPos(5,186)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "laugh");
- frame_close();
- end
- --Halt
- button = vgui.Create("DButton",frame)
- button:SetText("Halt")
- button:SetPos(5,239)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "halt");
- frame_close();
- end
- --pers
- button = vgui.Create("DButton",frame)
- button:SetText("Pers")
- button:SetPos(5,292)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "pers");
- frame_close();
- end
- --ROW 2
- --Agree
- button = vgui.Create("DButton",frame) --Note that I have changed the variables to button and frame. This is important to you.
- button:SetText("Agree")
- button:SetPos(157,27)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "agree");
- frame_close();
- end
- --Disagree
- button = vgui.Create("DButton",frame)
- button:SetText("Disagree")
- button:SetPos(157,80)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "disagree");
- frame_close();
- end
- --Muscle
- button = vgui.Create("DButton",frame)
- button:SetText("Muscle")
- button:SetPos(157,133)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "muscle");
- frame_close();
- end
- --Wave
- button = vgui.Create("DButton",frame)
- button:SetText("Wave")
- button:SetPos(157,186)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "wave");
- frame_close();
- end
- --Bow
- button = vgui.Create("DButton",frame)
- button:SetText("Bow")
- button:SetPos(157,239)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "bow");
- frame_close();
- end
- --Becon
- button = vgui.Create("DButton",frame)
- button:SetText("Becon")
- button:SetPos(157,292)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "becon");
- frame_close();
- end
- --ROW 3
- --Zombie
- button = vgui.Create("DButton",frame)
- button:SetText("Zombie")
- button:SetPos(310,27)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "zombie");
- frame_close();
- end
- --Group
- button = vgui.Create("DButton",frame)
- button:SetText("Group")
- button:SetPos(310,80)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "group");
- frame_close();
- end
- --Forward
- button = vgui.Create("DButton",frame)
- button:SetText("Forward")
- button:SetPos(310,133)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "forward");
- frame_close();
- end
- --Robot
- button = vgui.Create("DButton",frame)
- button:SetText("Robot")
- button:SetPos(310,186)
- button:SetSize(150,50)
- button.DoClick = function()
- RunConsoleCommand("act", "robot");
- frame_close();
- end
- --UNUSED
- button = vgui.Create("DButton",frame)
- button:SetText("<<UNUSED>>")
- button:SetPos(310,239)
- button:SetSize(150,50)
- button.DoClick = function()
- --RunConsoleCommand("act", "");
- --frame_close();
- end
- --UNUSED
- button = vgui.Create("DButton",frame)
- button:SetText("<<UNUSED>>")
- button:SetPos(310,292)
- button:SetSize(150,50)
- button.DoClick = function()
- --RunConsoleCommand("act", "");
- --frame_close();
- end
- end
- function frame_open()
- frame:SetVisible(true)
- end
- function frame_close()
- frame:SetVisible(false)
- end
- concommand.Add("-acts",frame_close)
- concommand.Add("+acts",frame_open)
- hook.Add("Initialize","frame_create",frame_create)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement