Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: InCreator on Tue 18/01/2005 01:40:23

Title: Transparent GUI
Post by: InCreator on Tue 18/01/2005 01:40:23
Well, I might just be incredibly stupid, but I just can't manage to make a semi-transparent text gui!

I did set game's resolution to 16-bit.
I did made game to use text windows on my gui.
I used SetGuitransparency (ags 2.6) command to make gui 50% transparent.

Nope, not transparent.
What gui background color should I use? Does transparency apply only to GUI's with backgground images?
Will text be transparent too?
What did I do wrong?

I basically need my textwindow gui just to be a big semitransparent black box with white text on it. No border images or anything.

Title: Re: Transparent GUI
Post by: Scorpiorus on Tue 18/01/2005 10:05:56
I'm not certainly sure but maybe AGS just doesn't allow having transparent text window GUIs? Does transparecy work if you set up a non text window GUI?

QuoteWill text be transparent too?
Yes, the text will also be transparent (at least for a non textwindow). Transparency affects the whole GUI including its objects.
Title: Re: Transparent GUI
Post by: Candle on Tue 18/01/2005 10:24:43
Pick up the Ron template the GUI is transparent  .
Title: Re: Transparent GUI
Post by: Gilbert on Wed 19/01/2005 01:36:29
Maybe I'm wrong but as far as I know the RON GUI just used transparent sprites, it's not a GUI set to semi-transparent.
Title: Re: Transparent GUI
Post by: Kikutaâ„¢ on Wed 19/01/2005 22:13:40
well, i have a transparent gui.
Try converting the image to .targa, in 32 bit, and use the alpha channel. It worked for me :P
Title: Re: Transparent GUI
Post by: Gilbert on Thu 20/01/2005 01:49:43
I think currently, alpha-channelled sprites can only be used for 32-bit games, if the colour depth is 16-bit (as in the case of in's game) it can only use the method of changing the transparency of a whole entity.

Just have a thought, what colour depths were those GUI sprites saved? I think they must be imported as the same colour depth as the game for transparency to work, if they were saved as 256 colours, resave them as 16/24 bit and then reimport them as 16 bit.
Just tried, I couldn't make a semi-transparent text window either (but works for other GUIs), I think probably SetGUITransparency() for text windows is not yet supported, you may make it a suggestion in the Technical forum if you wrong I think.