Hello all, I've been unable to do this.
So far I've tried:
surface.SetTextColor
surface.SetDrawColor
self:SetTextColor
https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dlistview.lua
you could try setting the text color on each line, but there's no convenient function to do so for the base panel
Mhh, decided to make my own list function. Thanks though
You can do it so something like
local line = dlistview:AddLine(whatever)
function line:Paint( w, h )
--paint the lines color
end
for id, pnl in pairs( line.Columns ) do
if not pnl.SetFont then continue end
--set text font and color using pnl:SetTextColor and stuff like that
end
end
for _, v in pairs( dlistview.Columns ) do
--use v.header:paint and settextcolor of v.header.
end
Sorry, you need to Log In to post a reply to this thread.