Suggestion: Changing a listbox item's text color

Started by Dave Gilbert, Thu 11/05/2006 14:39:44

Previous topic - Next topic

Dave Gilbert

I have a listbox in my game that the player can scroll through, and since there a lot of items I thought it would be nice to have each item change color when the mouse scrolls over it. 

As far as I can tell, there doesn't seem to be any method of changing the text colors of individual listbox items.  Something like:

LISTBOX.ChangeTextColor(INDEX, COLOR);

Which will change the text color of the INDEX item of listbox LIST to color COLOR.

This feature would be quite useful. Unless it already exists and I just can't find it. 


Dave Gilbert

Ahh, didn't see that.  Is that suggestion for the listbox color as a whole? Or would individual listbox items be included?

strazer

Don't know. Feel free to add your comment to clarify things.

Pumaman

Sounds reasonable to me, would anyone else find this useful?

Akumayo

I would find it quite useful, as my dependence on listboxes is growing, and having the items clored would let the player see their differences without having to read into them individually.  Of course, you would have to change the color of the box around a selected item, since the item's color is different now.

I like listboxes...
"Power is not a means - it is an end."

Ali

I've wanted this feature too. I've also wondered if it's possible to change the colour of individual dialogue options, so they could grey-out after they've been said once.

EDIT: Thanks Strazer, I hadn't heard anything about that!


SMF spam blocked by CleanTalk