• button color
    2 replies, posted
How do i set the colour of the text on the button this is what i got and it just sets the colour of the button but the text on the button still stays boring old grey. [CODE]local button1 = vgui.Create("DButton", base) function button1:Paint(w, h) draw.RoundedBox(0,0,0,w,h, Color(0,171,11)) surface.SetDrawColor(215,210,210) surface.DrawOutlinedRect(1,1, w-2,h-2) end button1:SetText("Donater Info") button1:SetPos(w*0.265, h*0.3) button1:SetSize(w/8,h/10) button1:MakePopup(true)[/CODE] [IMG]http://cloud-2.steampowered.com/ugc/3336342609340950601/C52EB397D4E52A46E89BADBD3F924B2DD0CBFB76/[/IMG]
You can do button1:SetTextColor( Color ) It might also be a good idea to check out DColorButtons
[lua] button1:SetTextColor(Color(R,G,B,A)) [/lua]
Sorry, you need to Log In to post a reply to this thread.