Sierra style background colour

Started by MoonDog, Fri 12/06/2015 17:10:58

Previous topic - Next topic

MoonDog

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

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


But gives me a type mismatch error cannot convert gui to int.

Slasher

#1
The color number 16 gives black.

Also you can change to another text window by:

Code: ags

SetTextWindowGUI(int gui); // gui number

Crimson Wizard

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

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

MoonDog

Thanks guys. It worked perfectly!(laugh)

MoonDog

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.

SMF spam blocked by CleanTalk