How to tell similar elements to hide?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
tuesi
Posts: 34
Joined: Fri Oct 22, 2010 12:34 pm

I have a bunch of popups that I'm creating in my skin?

I don't want any two of them to show up at the same time...so if one is open, and you click on a hotspot to trigger another one, I want to:
First tell all popups to hide, then tell the correct one to show.

How would I go about doing that? Do I have to name my popups a certain way? I see a note about using % to help, "To address all elements with the same ID (for example all hotspots) you need to place a '%' in front of the target ID." but I don't understand it.
User avatar
Hopki
Gnome
Posts: 13042
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi
It depends which version you are using:

Pano2vr V2.x.x
you will need an action for every popup, so in popup 1:
Mouse Click > Show Element > $self
Mouse Click > Hide Element > popup 2
Mouse Click > Hide Element > popup 3
etc.

Pano2vr V3 beta 3
you can use Regular Expressions, see here:
http://gardengnomesoftware.com/wiki/Usi ... e_elements

This means two actions will be required, one to show the popup and the other to hide all the others.
Regards
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply