Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dave Gilbert on Thu 11/05/2006 14:39:44

Title: Suggestion: Changing a listbox item's text color
Post by: Dave Gilbert on Thu 11/05/2006 14:39:44
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. 
Title: Re: Suggestion: Changing a listbox item's text color
Post by: strazer on Thu 11/05/2006 14:44:35
I think this is already on the tracker: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=184
Title: Re: Suggestion: Changing a listbox item's text color
Post by: Dave Gilbert on Thu 11/05/2006 14:46:45
Ahh, didn't see that.  Is that suggestion for the listbox color as a whole? Or would individual listbox items be included?
Title: Re: Suggestion: Changing a listbox item's text color
Post by: strazer on Thu 11/05/2006 14:50:17
Don't know. Feel free to add your comment to clarify things.
Title: Re: Suggestion: Changing a listbox item's text color
Post by: Pumaman on Thu 11/05/2006 17:53:09
Sounds reasonable to me, would anyone else find this useful?
Title: Re: Suggestion: Changing a listbox item's text color
Post by: Akumayo on Fri 12/05/2006 00:10:13
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...
Title: Re: Suggestion: Changing a listbox item's text color
Post by: Ali on Sat 13/05/2006 11:20:24
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!
Title: Re: Suggestion: Changing a listbox item's text color
Post by: strazer on Sat 13/05/2006 11:22:55
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=478