hotspot on object VR

  • Just copy the example...
    I found int in one minute *wink*

    <hotspot name="infospot1" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info1);set(hotspot[infospot1].zorder,2);"/><hotspot name="infospot2" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info2);set(hotspot[infospot2].zorder,2);"/><hotspot name="infospot3" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info3);set(hotspot[infospot3].zorder,2);"/><hotspot name="infospot4" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info4);set(hotspot[infospot4].zorder,2);"/><hotspot name="infospot5" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info5);set(hotspot[infospot5].zorder,2);"/><hotspot name="infospot6" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info6);set(hotspot[infospot6].zorder,2);"/><hotspot name="infospot7" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info7);set(hotspot[infospot7].zorder,2);"/><hotspot name="infospot8" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info8);set(hotspot[infospot8].zorder,2);"/><hotspot name="infospot9" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info9);set(hotspot[infospot9].zorder,2);"/><hotspot name="infospot10" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info10);set(hotspot[infospot10].zorder,2);"/><hotspot name="infospot11" url="infobutton.png" visible="false" zorder="1" zoom="true" scale="5" onclick="showinfo(info11);set(hotspot[infospot11].zorder,2);"/><plugin name="info1" url="infopanels/Radar.png" parent="hotspot[infospot1]" align="bottom" x="0" y="-20" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info2" url="infopanels/Flaps.png" parent="hotspot[infospot2]" align="bottom" x="0" y="-20" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info3" url="infopanels/AllMetal.png" parent="hotspot[infospot3]" align="bottom" x="0" y="-20" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info4" url="infopanels/Doors.png" parent="hotspot[infospot4]" align="bottom" x="0" y="10" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info5" url="infopanels/Stowage.png" parent="hotspot[infospot5]" align="bottom" x="0" y="10" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info6" url="infopanels/HighWing.png" parent="hotspot[infospot6]" align="bottom" x="0" y="-60" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info7" url="infopanels/TwoWheel.png" parent="hotspot[infospot7]" align="bottom" x="0" y="-10" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info8" url="infopanels/Wheels.png" parent="hotspot[infospot8]" align="bottom" x="0" y="-10" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info9" url="infopanels/Engine.png" parent="hotspot[infospot9]" align="bottom" x="0" y="-80" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info10" url="infopanels/SandFilter.png" parent="hotspot[infospot10]" align="bottom" x="0" y="10" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><plugin name="info11" url="infopanels/Propeller.png" parent="hotspot[infospot11]" align="bottom" x="0" y="-60" visible="false" alpha="0" scale="0.5" onclick="hideinfo( get(name) );"/><action name="hideinfo">
    tween(plugin[%1].alpha, 0, 0.5, default, set(plugin[%1].visible,false));
    tween(plugin[%1].scale, 0.5)
    </action><action name="showinfo"><!-- zuerst alle info felder ausblenden und alle buttons auf zorder 1
    -->
    hideinfo(info1);
    set(hotspot[infospot1].zorder,1);
    hideinfo(info2);
    set(hotspot[infospot2].zorder,1);
    hideinfo(info3);
    set(hotspot[infospot3].zorder,1);
    hideinfo(info4);
    set(hotspot[infospot4].zorder,1);
    hideinfo(info5);
    set(hotspot[infospot5].zorder,1);
    hideinfo(info6);
    set(hotspot[infospot6].zorder,1);
    hideinfo(info7);
    set(hotspot[infospot7].zorder,1);
    hideinfo(info8);
    set(hotspot[infospot8].zorder,1);
    hideinfo(info9);
    set(hotspot[infospot9].zorder,1);
    hideinfo(info10);
    set(hotspot[infospot10].zorder,1);
    hideinfo(info11);
    set(hotspot[infospot11].zorder,1);

    <!-- dann den gewünschten einblenden -->
    set(plugin[%1].visible,true);
    tween(plugin[%1].alpha, 1.0, 0.5, default);
    tween(plugin[%1].scale, 1.0);
    </
    action>

Jetzt mitmachen!

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