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
simplex_v6.ggsk - hide / show hotspots
Hi Hans,
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
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.is there a possibility to add a button to the controller in simplex_v6 skin, to show and hide the hotspots?
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/
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
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
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
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,
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 121 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/
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/
- Multimediafabrik
- Posts: 63
- Joined: Thu Jun 21, 2018 11:28 pm
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:
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"
}
})