Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Knox on Wed 06/11/2013 16:16:02

Title: Change the Custom text-window GUI number [SOLVED]
Post by: Knox on Wed 06/11/2013 16:16:02
Hi,

I've searched the forums and found many topics on changing text color for the Display command but nothing really seems to help in my situation. It seems that the only way to change the Display text color is by changing the text color value in the editor for the custom text-window GUI, or by changing the GUI number in General Settings for "Text output: Custom text-window GUI". That's fine if you only have 1 version for your text windows though.

I'd like to give the player the option to choose the type of text window they would want, and each version also has a different color for the Display text. I can change colors OK with the Say command, but not with the Display command.

I just can't seem to set the text color or the gui number via script. Is there a way to get around this without having to use "dirty hacks" that I missed somewhere in the manual/forums?
Title: Re: Change the Custom text-window GUI number
Post by: Khris on Wed 06/11/2013 17:51:55
You can change the GUI used by the game with
Code (ags) Select
  SetTextWindowGUI(int gui);

It doesn't look like you can change the text color of a specific GUI once the game is running though. (But you don't need to, if you can change the TextWindow GUI, right?)
Title: Re: Change the Custom text-window GUI number
Post by: Knox on Wed 06/11/2013 18:06:39
Grrrr, crap how did I miss that command...right in the manual too... :embarrassed:

Yeah, if I can change the GUI, then changing the color is not really necessary (but still would be cool) :)

Thanks Khris