GUI or label visibility question

Started by nneader, Thu 27/06/2013 15:55:43

Previous topic - Next topic

nneader

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?

Crimson Wizard

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.

Ryan Timothy B

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.

Khris

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.

nneader

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.

SMF spam blocked by CleanTalk