Page 1 of 1

simplex_v6.ggsk - hide / show hotspots

Posted: Sat May 15, 2021 7:11 pm
by Hans RV3D
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

Re: simplex_v6.ggsk - hide / show hotspots

Posted: Mon May 17, 2021 12:42 pm
by Tony
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

Re: simplex_v6.ggsk - hide / show hotspots

Posted: Mon May 17, 2021 2:16 pm
by Hans RV3D
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

Re: simplex_v6.ggsk - hide / show hotspots

Posted: Tue May 18, 2021 6:29 pm
by Hopki
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,

Re: simplex_v6.ggsk - hide / show hotspots

Posted: Fri May 21, 2021 10:49 am
by Multimediafabrik
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"
    }
})