Changing the text-color of a GUI-button at runtime [SOLVED]

Started by TheMagician, Wed 26/01/2005 13:30:37

Previous topic - Next topic

TheMagician

Hi everybody.

If I create a new GUI button in AGSedit it reads "New Button" in black letters.
I know that I can change the color of the text using the GUI-button-properties box.

However, is there a way to change the text color of a button at runtime using a script command? (Let say I want to make the button blink)

It sound quite simple ...  but I couldn't find anything about it in the manual.

Thanks in advance,

Stefan

strazer

It's not possible at the moment. See tracker entries

http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=276
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=266

You could work around it by using two button controls for example, turning them on/off alternately (will be easier with the Visible property of AGS v2.7).

TheMagician

Thanks strazer.

I always forget to check the tracker.

Your workaround sounds good to me (just getting used to AGS 2.7)

SMF spam blocked by CleanTalk