• Adding colour to a derma menu?
    4 replies, posted
Hello I made a buy shop for my GM. But it looks pretty shitty. Anyway I was wondering how u can add colour to the menu thx! Code for Menu (settings) [code] function ShowShopMenu() local DermaPanel = vgui.Create( "DFrame" ); DermaPanel:SetPos( 50,50 ); DermaPanel:SetSize( 950, 650 ); DermaPanel:SetTitle( "Shop Menu" ); DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ); DermaPanel:ShowCloseButton( true ); DermaPanel:MakePopup(); [/code]
[b][url=http://wiki.garrysmod.com/?title=DFrame.Paint]DFrame.Paint [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Ah thanks (:
Here's a pretty simple thing I use for most of my derma frames: [lua] function panel:Paint() draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color(0,0,0,220) ) end[/lua] Replace "panel" with your variable name, and that'll work for any DFrame.
Thanks man! very helpful.
Sorry, you need to Log In to post a reply to this thread.