Hi,
How can I manage to stop autorotation by clicking in panorama (not on any button, plugin, hotspot)?
I´ve used such a code in Flash Panorama Player: <pano onPress="external.autorotator.disabled=1; "/> how can I do the same here, in krpano?
Thanx a lot,
pano onclick
-
-
Aldo made a double click plugin.
Look in the top menu at plugins and then field of view plugin bundleHope it helps
Tuur -
Aldo made a double click plugin.
Look in the top menu at plugins and then field of view plugin bundleHope it helps
TuurTuur, but why double click? I do not expect users would be doubleclicking...
Now I have:
<autorotate enabled="true" waittime="5.0" accel="1.0" speed="3" horizon="15" tofov="100"/>I need exactly the same thing I´ve used in FPP: <pano onPress="external.autorotator.disabled=1; "/>
So I need to trigger the same action if user will click and move pano manually:, there should be such a possibility in krpano, or?Thanx!
-
Hi,
this code would do that:
the global onclick event, and there set the enabled from autorotate to false,
alternatively it would be also possible to use the onmousedown event instead of onclick to disable it already on the button-down and not on click (click = down + up),
best regards,
Klaus -
<events onclick="set(autorotate.enabled,false);" />
Thanx Klaus, I knew it must be very easy job :) Thanx -
yes, and onmousedown is better, cause if I (click and) drag the panorama, autorotation doesn´t stop, while onmousedown this works 100% ok.
-
Hi,
Thanks i was looking for that! However i'd like to go further if possible.
To begin my tour, i check the var "intro_done". If false, i show, to present, the navigation panel and options before hiding them with a delayed call action:Code
Display More<action name="intro"> if(intro_done === null, set(intro_done,false)); if (intro_done == false, set(view.hlookat, 117.34); set(view.vlookat, 9.46); zoomto(90,linear(28)); moveto(78.87,11.18, linear(50)); shownav(); delayedcall(4, hidenav()); set(intro_done,true); ); </action> <action name="shownav"> tween(plugin[bouton_nav].y, 55); tween(plugin[fond_nav].y, 0); </action> <action name="hidenav"> tween(plugin[bouton_nav].y, 0); tween(plugin[fond_nav].y, -55); tween(plugin[left].y, -50); </action>
I have different plugins to hide. I write a hide action for each of them, that way, if user click on one of them before the delayed call i could cancel the concerned action. How to do? That's the point.! The <events onclick="" /> is a gobal one. is there a way to assign a first click event to a specified plugin?
Thanks.
Steph -
Hi,
you want to stop the "hidenav" delayedcall when specific button were pressed?
canceling a delayedcall directly is currently not possible, but in this case it would be also possible to define a kind of 'stop' variable, that will be checked in the "hidenav" action, and set this 'stop' variable in the button onclick events,
e.g.
Code
Display Moreset(dohidenav,true); delayedcall(4, hidenav()); .. <plugin name="button1" ... onclick="set(dohidenav,false); ... "/> <plugin name="button1" ... onclick="set(dohidenav,false); ... "/> ... <action name="hidenav"> if(dohidenav, ... ); </action>
best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!