Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Timosity on Fri 02/05/2003 17:41:31

Title: Just a weird logic thing
Post by: Timosity on Fri 02/05/2003 17:41:31
I worked it out, but it was frustrating me for hours.

(Font colour in a text window after using a Display("");)

I had made my own text window GUI and I couldn't find in the manual or in the forums how to change the font colour.

As it turns out you change it by setting the foreground, I guess text is in the foreground but from the image it looks like it's refering to the outline of the text box (which it is in the other gui's)

It's just a strange thing that bugged me, maybe this should be a little clearer, or atleast mentioned in the manual when searching for font or text colour.
Title: Re:Just a weird logic thing
Post by: Jimi on Fri 02/05/2003 19:35:38
I found this if it's any help:

QuoteSetLabelColor
SetLabelColor (int gui, int object, int color)

Changes the text colour of label OBJECT on gui GUI to COLOR.
Example:

SetLabelColor(4,3,14);

will change label 3 on GUI 4 to have yellow text.
Title: Re:Just a weird logic thing
Post by: Ben on Fri 02/05/2003 19:55:43
Advice to Jimi: Read the whole post before replying  ;)
Title: Re:Just a weird logic thing
Post by: Pumaman on Fri 02/05/2003 19:56:54
Jimi, I'm sure we all appreciate your enthusiasm, but would you please read posts properly before you reply to them - in this case you'd know that Timosity has already solved his problem.

Timosity: good point, thanks - I'll add that to the Custom Text Windows section of the manual.
Title: Re:Just a weird logic thing
Post by: Jimi on Fri 02/05/2003 20:06:18
Sorry, I read the whole post, I just mis-enterprited it.  :-[
Title: Re:Just a weird logic thing
Post by: Timosity on Sat 03/05/2003 04:14:05
Thanks CJ