simplex_v6.ggsk - hide / show hotspots

Q&A about the latest versions
Post Reply
User avatar
Hans RV3D
Posts: 17
Joined: Mon Jan 25, 2016 12:01 pm
Location: Germany
Contact:

Sat May 15, 2021 7:11 pm

Hello everyone,

is there a possibility to add a button to the controller in simplex_v6 skin, to show and hide the hotspots? In the skin configuration I can't find an option for that :(

Thanks in advance for helpful tips!

Hans
User avatar
Tony
Posts: 1066
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Mon May 17, 2021 12:42 pm

Hi Hans,
is there a possibility to add a button to the controller in simplex_v6 skin, to show and hide the hotspots?
Yes, it's certainly possible. However, the nature of the Simplex_V6 skin is that it is designed for users who want a flexible skin that can be easily modified using the Edit Skin Configuration function. This means that the elements within the skin, especially those in the controller have very complex interactions via Logic Blocks, Variables, and Action Hotspots. Editing the controller, or for that matter, any part of the skin is not for the faint of heart.

I spent a large number of hours pulling the skin apart to see how it worked and I still run into issues modifying it. The recommendation is, don't modify the skin but start a new one of your own. With all of the Components available it's not hard to do.

That said do you want to hide all of the hotspots that are present in the skin, including nodes?

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/
User avatar
Hans RV3D
Posts: 17
Joined: Mon Jan 25, 2016 12:01 pm
Location: Germany
Contact:

Mon May 17, 2021 2:16 pm

Hi Tony,
thanks for your help. Yes, I want to hide everything, including nodes, just to have the possibility to see the panorama without any impairments.

Greetings Hans
User avatar
Hopki
Gnome
Posts: 11462
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue May 18, 2021 6:29 pm

Hi Hans,
Please see the attached skin.
It has a text box anchored to the bottom left that toggles a variable.
You can replace this with a button, just copy the action.
This variable is then used to show and hide all the hotspot templates, the controller and thumbnail menus.
The visible logic block is used, you will see the variable, vis_skin, true to show all the elements and false to hide them.
Regards,
Attachments
hans_simplex_v6.ggsk
(85.47 KiB) Downloaded 14 times
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/
User avatar
Multimediafabrik
Posts: 40
Joined: Thu Jun 21, 2018 11:28 pm

Fri May 21, 2021 10:49 am

You could also add an action to the button:

add a variable "hotspots_visible" as a true/false variable and set it initially to true.

on the button element add a click action -> open URL and add this as the URL:

Code: Select all

javascript:
player.setVariableValue("hotspots_visible",!player.getVariableValue("hotspot_visible"))

player.getPointHotspotIds().forEach(function(hsID){
    let hotspot = player.getHotspot(hsID);
    if(player.getVariableValue("hotspot_visible")){
        hotspot.div.style.display = ""
    }else{
        hotspot.div.style.display = "none"
    }
})
Post Reply