Hey Guys,
i have a toogle action for show and hiding all hotspots.
But vr cursor and the next and prev button are hotspots to.
How can i solve this that they wont be displayed by toggle?
My Code:
<action name="show_hotspots">
for(set(i,0), i LT hotspot.count, inc(i), set(hotspot[get(i)].visible, %1););
</action>
<!-- Toggle Hotspots -->
<action name="toggle_hotspots">
if(hots_off === null,
set(hots_off, true);
show_hotspots(false);
, if(hots_off === false, set(hots_off,true);
show_hotspots(false);
, set(hots_off,false);
show_hotspots(true);
) );
</action>
<layer name="btn_hide" url="vendor/img/icons/hotspots/red/hideicons.png" width="20" height="20" align="topright" x="100" y="10" keep="true" onclick="toggle_hotspots();"/>
Thank you guys!