ListColumns color by column teased but not implemented?

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2589
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

ListColumns color by column teased but not implemented?

#1 Post by Zizzo »

Okay, this is just dirty pool… :evil: ListColumns:generateRow() includes the following code:

Code: Select all

-- if color for each column is different
if row.color and type(row.color[1]) == "table" then
	color = row.color[j]
	row.cells[j].color = color
else
	row.color = row.color or {255,255,255}
end
What's this? The .color field for a row item can be specified as an array of colors, one for each column? Awesome, that's exactly what I need! Except that no, nothing else in ListColumns actually uses those per-column colors, particularly :drawRow(), where you'd expect it to be used. :evil:

The necessary changes to ListColumns:drawRow() are small; you can see Tinker Tinkering for what I did, or I can attach a patch if needed.
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply