Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
[BUG/Needs optimization]VGUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
[BUG/Needs optimization]VGUI
30-06-2015, 07:49 PM,
#1
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
[BUG/Needs optimization]VGUI
Hello!
Today i looked into the world of VGUI's. It very cool but after a few times connecting myself to the hud my Gmod is crashing. I dont know if it is a bug or i am just too stupid to find the error in my code, i dont know. Also the DoClick function doesnt work. Maybe thats the problem? Thats the code i am using:

--@name MAINFRAME_HUD
--@author SuperPlayer
--@requirecl lib/string.txt
--@updater STEAM_0:0:74694146
--@shared

if SERVER then

else
local BackTex = render.getTextureID("Boba_Fett/textures/atlantiswall_blue")
--A player has linked to us.
hook( "hudlink", "bleh", function( Ply )

local BackTex = render.getTextureID("Boba_Fett/textures/atlantiswall_blue")

local Frame = vgui.create( "DFrame" )
Frame:SetSize( 1000, 600 )
Frame:Center()
Frame:MakePopup()
Frame:SetText("Mainframe HUD")
Frame:ShowCloseButton(true)
Frame:replaceMethod( "Paint", function( self, W, H )
render.setTexture(BackTex)
render.setColor( 255, 255, 255 )
render.drawTexturedRect( 0, 0, W, H )
end )
local CloseButton = vgui.create( "DButton" ,Frame)
CloseButton:SetPos( 0,0 )
CloseButton:SetSize( 90, 45 )
CloseButton:SetText( "Close" )
CloseButton:SetTextColor( Color( 255, 255, 255 ) )
CloseButton:replaceMethod( "Paint", function( self, W, H )
render.setTexture(BackTex)
render.setColor( 255, 255, 255 )
render.drawTexturedRect( 0, 0, W, H )
end)
CloseButtonBig GrinoClick( function()
Frame:remove()
end)




end )
hook( "hudunlink", "bleh", function( Ply )

end )
end

Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[BUG/Needs optimization]VGUI - by SuperPlayer - 30-06-2015, 07:49 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 30-06-2015, 07:53 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 30-06-2015, 07:55 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 30-06-2015, 07:57 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 30-06-2015, 07:59 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 30-06-2015, 08:15 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 30-06-2015, 08:24 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 30-06-2015, 09:57 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 01-07-2015, 06:04 AM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 01-07-2015, 11:29 AM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 01-07-2015, 11:37 AM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 01-07-2015, 11:37 AM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 02-07-2015, 01:52 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 02-07-2015, 02:12 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 02-07-2015, 02:25 PM
RE: [BUG/Needs optimization]VGUI - by Person8880 - 02-07-2015, 03:06 PM
RE: [BUG/Needs optimization]VGUI - by SuperPlayer - 02-07-2015, 03:28 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.