Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: paolo on Sat 26/01/2008 12:09:51

Title: Changing Text Color attribute of text window GUIs programmatically
Post by: paolo on Sat 26/01/2008 12:09:51
Is it possible to change the Text Color attribute of text window GUIs from within a script? I've looked at the attributes of the GUI, there doesn't seem to be anything like TextColor. The manual doesn't mention how to do it, and threads in this forum suggest it might not be possible...

Specifically, what I want to do is set the text colour in the Sierra-style GUI I'm using for their speech so that "Say" uses different colours for different characters, like it would do in LucasArts style.

I'm using v2.71. Is this functionality available in a later version, or is there a workaround for v2.71?

Thanks.
Title: Re: Changing Text Color attribute of text window GUIs programmatically
Post by: Galen on Sat 26/01/2008 12:17:27
(I use 2.72)

I think there may be a global option, if there is you might be able to add it to dialog script function to swap between colours, it'd be awkward though..
Title: Re: Changing Text Color attribute of text window GUIs programmatically
Post by: Dualnames on Sun 27/01/2008 20:37:05
game.top_bar_bordercolor=16;

Setting the text color can be done through the interaction editor so it means that the function exist somewhere I guess.