Login to ZARP
|
A while ago I said I would begin learning LUA but I never actually got round to it, part of this was because I couldn't really find any material to carry out 'practice' work. So I just decided to make a dummy F1 counter for TTT and I need some help with the list view in the menu shown below:
Basically is there a way to change the colour of the columns in the list view? I've tried looking around but I can't find anything. |
|
The topic has been locked.
|
You could make a custom panel wiki.garrysmod.com/page/Panel_Customization. You could also just paint it like this.
local time = ReportList:AddColumn("Time")
time.Header:SetFont("DermaDefaultBold")
time.Header:SetTextColor(Color(255,255,255,255))
time.Header.Paint = function()
surface.SetDrawColor( 55, 62, 80, 255 )
surface.DrawRect( 0, 0, self:GetWide(), self:GetTall() )
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawOutlinedRect( 0, 0, 0, 1000 )
end |
|
The topic has been locked.
|
Solution: Take advice from anyone but Max, hell EMP breaks shit less often then Max. :^)
|
|
The topic has been locked.
|
Max's solution worked great. This can be locked!
|
|
The topic has been locked.
|