Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: nneader on Thu 27/06/2013 15:55:43

Title: GUI or label visibility question
Post by: nneader on Thu 27/06/2013 15:55:43
I created a gui that has one label.  Using a timer, the label will disappear after awhile, then reappear when a hotspot is clicked

Question.....

Is there any added benefit/drawback having the gui visibility be false/true rather than having the label visibility be false/true?
Title: Re: GUI or label visibility question
Post by: Crimson Wizard on Thu 27/06/2013 16:05:19
Quote from: nneader on Thu 27/06/2013 15:55:43
Is there any added benefit/drawback having the gui visibility be false/true rather than having the label visibility be false/true?
If you mean that GUI is fully transparent, then there's no difference at all.

E: Hmm, wait, what about Clickable property? I suddenly realized I don't remember if transparent GUIs still capture mouse clicks.
Title: Re: GUI or label visibility question
Post by: Ryan Timothy B on Thu 27/06/2013 16:10:32
Crimson, I'm pretty sure he's talking about GUI.Visible or Control.Visible.

As far as I know, AGS skips over GUIs and/or Controls that aren't Visible.

Changing GUI.Visible to false will just make that GUI inactive. Same with changing a single control visibility to false.
Title: Re: GUI or label visibility question
Post by: Khris on Thu 27/06/2013 16:25:25
If the GUI is set to not being clickable, there's no difference at all (assuming the GUI itself is fully transparent).

The only thing that comes to mind is that GUIs have .Transparency, which means they can be faded in/out while Labels can't.
Title: Re: GUI or label visibility question
Post by: nneader on Thu 27/06/2013 17:08:13
Thanks for the quick replies.

ahhh...transparency.  Transparency (fades) is an added benefit I didn't realize.  This could be useful for other another gui I had in mind.