it works! thanks! but I can't turn it back on. When the pano loads the mouse follow is on, when I click off it is disabled(or removed) but when I click on again it no longer adds the plugin. Any ideas?
Code
<plugin name="mouseFollowOnBtn" url="mouse-follow-on.png" alpha="0.9" visible="false" align="lefttop" edge="lefttop" y="-4" x="852" blendmode="normal" keep="true" onclick="action(mouseFollowOn);"/>
<plugin name="mouseFollowOffBtn" url="mouse-follow-off.png" alpha="0.9" visible="true" align="lefttop" edge="lefttop" y="-4" x="852" blendmode="normal" keep="true" onclick="action(mouseFollowOff);"/>
<action name="mouseFollowOn">
addplugin(mousefollow);
set(plugin[mousefollow].enabled, true);
set(plugin[mouseFollowOffBtn].visible, true);
set(plugin[mouseFollowOnBtn].visible, false);
</action>
<action name="mouseFollowOff">
set(plugin[mouseFollowOffBtn].visible, false);
set(plugin[mouseFollowOnBtn].visible, true);
removeplugin(mousefollow);
set(hlookat_moveforce, 0);
set(vlookat_moveforce, 0);
</action>
Alles anzeigen