Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MoonDog on Fri 12/06/2015 17:10:58

Title: Sierra style background colour
Post by: MoonDog on Fri 12/06/2015 17:10:58
Howzit again guys. Iv been having trouble finding a proper
How-to on the forums for changing the background colour of
The Sierra speech boxes. The default is white and I want to make it
Black. I tried what one of the previous topics suggested and added

Code (ags) Select

Function game_start() {
Game.speech_text_gui = gGui1;
}


But gives me a type mismatch error cannot convert gui to int.
Title: Re: Sierra style background colour
Post by: Slasher on Fri 12/06/2015 17:25:28
The color number 16 gives black.

Also you can change to another text window by:

Code (ags) Select

SetTextWindowGUI(int gui); // gui number
Title: Re: Sierra style background colour
Post by: Crimson Wizard on Fri 12/06/2015 17:27:30
Your error is becasue "Game.speech_text_gui" is a GUI ID (number), while gGui1 is a GUI* pointer.
The proper way is:
Code (ags) Select

Function game_start() {
Game.speech_text_gui = gGui1.ID;
}
Title: Re: Sierra style background colour
Post by: MoonDog on Fri 12/06/2015 19:08:19
Thanks guys. It worked perfectly!(laugh)
Title: Re: Sierra style background colour
Post by: MoonDog on Fri 12/06/2015 22:07:22
Quick question. Is it possible to keep the box's width
At a constant size? So that even if the character just says one
Word the box still goes across the screen. Just wondering if possible,
It's not really important since this is just my first game.
Not expecting it to be the next big thing.