Community

SCI Programming => SCI Syntax Help => Topic started by: Cloudee1 on September 16, 2010, 12:37:59 AM

Title: Changing menubar colors
Post by: Cloudee1 on September 16, 2010, 12:37:59 AM
Just wasted a night trying to figure out how to change both or either the color of the text and the color of the  menubar's background. Anyone know if it is even possible?
Title: Re: Changing menubar colors
Post by: MusicallyInspired on September 17, 2010, 07:52:55 AM
I tried that too. It's possible in FreeSCI but as part of the interpreter I think, rather than it being possible in the scripts. Seeing as I've yet to see an actual Sierra game that can set the colour, I don't think it's possible :(.
Title: Re: Changing menubar colors
Post by: Cloudee1 on September 17, 2010, 10:06:11 PM
I'm kind of afraid of that.
Title: Re: Changing menubar colors
Post by: lskovlun on November 13, 2010, 01:13:47 PM
I don't think you can do it in 0.000.572 (the version used by the template game), unfortunately. However, the reason this got added to FreeSCI was of course that the original was able to do it as well.
I forget which version of the interpreter added it, but the last SCI0 interpreter (0.000.685) certainly should support it. I forget whether they are binary compatible with each other, but you can try grabbing an interpreter from games that use this version and using it for your game. You do it with two extra parameters (foreground/background) to the DrawStatus function.

EDIT: The Eco Quest 2 screenshot on the main page certainly seems to be doing it... ;D
EDIT 2: No, 0.000.685 can'r do it either, unfortunately. SCI01 and later only...