• 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!

  • Try it like this ?


    Code
    <!-- Toggle Hotspots -->
    <action name="toggle_hotspots">
    if(hots_off,set(hots_off,false);show_hotspots(true);,set(hots_off,true);show_hotspots(false););
    set(hotspot[vr_cursor].visible,true);
    set(hotspot[webvr_next_scene].visible,true);
    set(hotspot[webvr_prev_scene].visible,true);
    </action>
  • Thank you very much it works for me like that


    <action name="show_hotspots">
    for(set(i,0), i LT hotspot.count, inc(i), set(hotspot[get(i)].visible, %1););
    </action>
    <action name="toggle_hotspots">
    if(hots_off,set(hots_off,false);show_hotspots(true);,set(hots_off,true);show_hotspots(false););
    set(hotspot[vr_cursor].visible,false);
    </action>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!