Hello everyone. I just had a few questions relating to customizing the colors for the two derma elements listed in the title. This is what I have so far (works somewhat for DListView, no idea how to do it with DPropertySheet)
local DermaListView = vgui.Create("DListView") DermaListView:SetParent(Frame) DermaListView:SetPos(25, 50) DermaListView:SetSize(450, 500) DermaListView:SetMultiSelect(false) DermaListView.Paint = function() surface.SetDrawColor( 200, 200, 200, 255 ) surface.DrawRect( 0, 0, DermaListView:GetWide(), DermaListView:GetTall() ) surface.SetDrawColor( 255, 255, 255, 255 ) surface.DrawOutlinedRect( 0, 0, DermaListView:GetWide(), DermaListView:GetTall() ) end DermaListView:AddColumn("Name") -- Add column DermaListView:AddColumn("Amount of kills") for k,v in pairs(player.GetAll()) do DermaListView:AddLine(v:Nick(),v:Frags()) -- Add lines end
Here is what it looks like on a panel
Excuse the crappy white border, but you get the idea. I basically want to make a list view thing with a custom background, and remove or recolor the top two boxes that have “Name” and “Amount of kills” written in them. I need this not only for a menu I am working on, but to also replace DComboBox.
For DPropertySheet, I tried a similar thing, and this is what happened.
I never have been able to figure out how to color those damn tabs… :I
So facepunch, am I going about this the wrong way? Is what I am trying to do impossible? Help would be appreciated!
(Also, excuse me if this post sounds a little odd, been awake for over 36 hours)