• derma Paint not working on my test.
    7 replies, posted
[lua]function DermaTest() local DermaFrame = vgui.Create( "DFrame" ) DermaFrame:SetPos( 200, 200 ) DermaFrame:SetSize( 300, 300 ) DermaFrame:SetTitle( "Test Paint On Frame" ) DermaFrame:SetVisible( true ) DermaFrame:MakePopup() function DermaFrame:Paint() surface.SetDrawColor( 0, 0, 0, 255 ) surface.DrawRect( 0, 0, DermaFrame:GetWide(), DermaFrame:GetTall() ) end concommand.Add("DermaTesting", DermaTest)[/lua] [code] Unknown Command: 'DermaTesting'[/code]
Yes, you are missing an end, put one behind the one that already exists.
And also is there a way to add line on the rectangle ?
Just add another line outside the rectangle. White/black w/e
ok but I found this function and how I can add it to my code ?
[QUOTE=lotus006;18550467]ok but I found this function and how I can add it to my code ?[/QUOTE] Type it in.
Oops sorry I forgot to show what I found [url]http://wiki.garrysmod.com/?title=Surface.DrawTexturedRect[/url]
[url]http://wiki.garrysmod.com/?title=Surface.DrawLine[/url] For drawing lines.
Sorry, you need to Log In to post a reply to this thread.