Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheMagician on Wed 26/01/2005 13:30:37

Title: Changing the text-color of a GUI-button at runtime [SOLVED]
Post by: TheMagician on Wed 26/01/2005 13:30:37
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
Title: Re: Changing the text-color of a GUI-button at runtime
Post by: strazer on Wed 26/01/2005 13:50:48
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).
Title: Re: Changing the text-color of a GUI-button at runtime
Post by: TheMagician on Wed 26/01/2005 13:57:11
Thanks strazer.

I always forget to check the tracker.

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