Change the Custom text-window GUI number [SOLVED]

Started by Knox, Wed 06/11/2013 16:16:02

Previous topic - Next topic

Knox

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?
--All that is necessary for evil to triumph is for good men to do nothing.

Khris

You can change the GUI used by the game with
Code: ags
  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?)

Knox

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
--All that is necessary for evil to triumph is for good men to do nothing.

SMF spam blocked by CleanTalk