Click somewhere to close a component

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
4ctive
Posts: 35
Joined: Mon Dec 16, 2019 10:07 am

Hi Hopki and everyone else,

this is maybe a very simple question, but I can't find the answer.
I have an image and text popup combined together. I can open it when I click on a hotspot und I can close it when I click on a close button. This works fine. But I would like to be able to close this popup also by clicking at any position in the tour (of course except where the popup itself is positioned).
I have attached you a sample of the popup element.

There are other elements in the skins where this feature works quite well (e.g. information hotspot).


Thanks for your help!

BR,
Benjamin
Attachments
Test_Skin_Image_Popup.ggsk
(6.28 KiB) Downloaded 183 times
Best Regards,
Benjamin
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Benjamin,
I added an active container to the skin so on popup open the container is also made visible/active.
This has the same variable change action as the close button.
Regards,
Attachments
Test_Skin_Image_Popup.ggsk
(6.35 KiB) Downloaded 227 times
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/
4ctive
Posts: 35
Joined: Mon Dec 16, 2019 10:07 am

Hi Hopki,

thank you very much!
Best Regards,
Benjamin
KeyLight
Posts: 1
Joined: Tue Jun 16, 2020 3:34 pm

Greetings!

Encountered nearly the same problem, but solution provided here has limitations. Need advice.

In my case there are several (15) panoramas without hotspots. All navigation is happening within a skin, 2 buttons: one opens simple map (3 locations) and another one opens dropdown menu (5 heights). Once any of those two selectors is open, I have to click some point on the map (or select height), then required panorama is loaded and current selector menu closes. But if I open the map, and then changed my mind and want to close it - seems logical (feels right from all UI experience, especially with mobile touch screen) to click anywhere else but map point selector, to make the map go away.

If I make another transparent frame or container that catches this click/touch, it works, but it blocks panorama from being controlled for this one click, I can't simply touch and drag panorama with an open map and see map closing, so I have to do an extra click/touch for this. If there is a way to set up action based on background (panorama) click, and background drag - please point me in right direction. Actually desired order of things would be:
  • background click/touch - close open selector
  • background drag - panorama pans with selector still open
It feels logical to have something like "Actions" scroll, among "Canvas", "Margins", "Variables" and "External files" once you click on the background in skin editor.

Thank you.
Best Regards,
Anatoly, KeyLight Studio
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Anatoly,

Don't know if you found a solution for your background panorama click or not. If not take a look at this post I just responded to viewtopic.php?f=6&t=16264

Is this what you are after?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
Post Reply