Page 1 of 1

How to toggle visibility of point hotspot with custom image

Posted: Wed Jul 09, 2014 10:39 am
by LondonLight.org
Hi

I made a skin which uses a custom point hotspot image, following one of your guides, probably this one: http://ggnome.com/wiki/Adding_Hotspots_ ... pot_images

Everything works nice and dancy...
http://i.imgur.com/an68ivD.jpg

...except for the button which is supposed to show/hide hotspots.
I tried having "mouse click" "toggle element visibility" and "scale element" on "hsgoto", on "gototxt" and on "gotoimg". Both visiblity and scale work on any other element, but not on the hotspot elements!
Image

I even tried placing the hotspot elements inside a container "hsgotobox" and then toggling that container, still nothing.
The only difference I can think of between these hotspot elements and the other elements is that the hotspot has a hotspot proxy ID.

http://i.imgur.com/PXNQ6Xs.png

How do I make it possible to hide point hotspots which use custom images?

My skin files and XML are attached.

Re: How to toggle visibility of point hotspot with custom im

Posted: Wed Jul 09, 2014 4:24 pm
by JimWatters
If you use a % wildcard in front of the ID it will toggle all the hotspots.

target: %hsgotobox

Re: How to toggle visibility of point hotspot with custom im

Posted: Wed Jul 09, 2014 4:32 pm
by LondonLight.org
Works! Thank you Jim!