showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
set(ptplugin[analytics].jsready, true);
if(ptplugin[analytics].jsready,
stopdelayedcall(delay_analytics_active);
js(invokePluginFunction(analytics, toggleDeactivation, false));
,
delayedcall(delay_analytics_active, 0.1, activate_analytics(););
);
if(ptplugin[analytics].jsready,
stopdelayedcall(delay_analytics_active);
js(invokePluginFunction(analytics, toggleDeactivation, true));
,
delayedcall(delay_analytics_active, 0.1, deactivate_analytics(););
);
if(ptplugin[analytics].jsready,
stopdelayedcall(delay_analytics_page);
js(invokePluginFunction(analytics, sendPageview, %1, %2));
,
delayedcall(delay_analytics_page,0.5,sendPage_analytics(%1,%2));
);
if(ptplugin[analytics].jsready,
stopdelayedcall(delay_analytics_event);
js(invokePluginFunction(analytics, sendEvent, %1, %2, %3, %4));
,
delayedcall(delay_analytics_event,0.5,sendEvent_analytics(%1,%2,%3,%4));
);
if(ptplugin[analytics].jsready,
stopdelayedcall(delay_analytics_lang);
js(invokePluginFunction(analytics, changeLanguage));
,
delayedcall(delay_analytics_lang,0.1,changeLanguage_analytics());
);
if(normalViewActivated,stopSetViewTweens(););
if(current_view_isflat === true,
setViewNonFlat(VFOV);
);
setViewArchitecturalComplete();
set(view.fovmax, get(panoview.fovmax));
set(view.fisheyefovlink, 0.5);
tween(view.architectural, 1.0, distance(1.0, 0.45));
tween(view.pannini, 0.0, distance(1.0, 0.45), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeOutQuad,
set(view.stereographic,false);
tween(view.vlookat, get(panoview.v), distance(90, 0.45));
);
tween(view.fov, get(panoview.fov), distance(50, 0.45));
if(%1,
if(%2,
set(isfullvertical, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(isfullvertical, true);
);
);
if(isfullvertical == false AND calc(view.vlookat-%2) LT view.vlookatmin,
moveto(get(view.hlookat), get(view.vlookatmin));
,
moveto(get(view.hlookat), calc(view.vlookat-%2));
);
,
set(vlookat_moveforce, -1);
delayedcall(0.1, viewControlMoveVertStop());
);
,
set(vlookat_moveforce, -1);
);
if(%1,
if(%2,
set(isfullvertical, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(isfullvertical, true);
);
);
if(sceneisfull360 == false AND calc(view.vlookat+%2) GT view.vlookatmax,
moveto(get(view.hlookat), get(view.vlookatmax));
,
moveto(get(view.hlookat), calc(view.vlookat+%2));
);
,
set(vlookat_moveforce, +1);
delayedcall(0.1, viewControlMoveVertStop());
);
,
set(vlookat_moveforce, +1);
);
if(%1,
if(%2,
set(isfullhorizontal, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
set(isfullhorizontal, true);
);
);
if(isfullhorizontal == false AND calc(view.hlookat-%2) LT view.hlookatmin,
moveto(get(view.hlookatmin), get(view.vlookat));
,
moveto(calc(view.hlookat-%2), get(view.vlookat));
);
,
set(hlookat_moveforce, -1);
delayedcall(0.1, viewControlMoveHoriStop());
);
,
set(hlookat_moveforce, -1);
);
if(%1,
if(%2,
set(isfullhorizontal, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
set(isfullhorizontal, true);
);
);
if(isfullhorizontal == false AND calc(view.hlookat+%2) GT view.hlookatmax,
moveto(get(view.hlookatmax), get(view.vlookat));
,
moveto(calc(view.hlookat+%2), get(view.vlookat));
);
,
set(hlookat_moveforce, +1);
delayedcall(0.1, viewControlMoveHoriStop());
);
,
set(hlookat_moveforce, +1);
);
set(hlookat_moveforce, 0);
set(vlookat_moveforce, 0);
if(%1,
if(%2,
if(%2 LT view.fovmin,
zoomto(get(view.fovmin));
,
if(%2 LT view.fov,
zoomto(%2);
);
);
,
set(fov_moveforce, -1);
delayedcall(0.1, viewControlZoomStop());
);
,
set(fov_moveforce, -1);
);
if(%1,
if(%2,
if(%2 GT view.fovmax,
zoomto(get(view.fovmax));
,
if(%2 GT view.fov,
zoomto(%2);
);
);
,
set(fov_moveforce, +1);
delayedcall(0.1, viewControlZoomStop());
);
,
set(fov_moveforce, +1);
);
set(fov_moveforce, 0);
set(sceneisfull360, false);
if(scene[get(xml.scene)].full360,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
);
if (sceneisfull360 AND (device.webgl OR device.flash),
if(normalViewActivated,stopSetViewTweens(););
if(current_view_isflat === true,
setViewNonFlat(VFOV);
);
setViewFisheyeComplete();
);
set(view.fisheyefovlink, 1.5);
set(view.fovmax, get(panoview.fovmax));
tween(view.architectural, 0.0, distance(1.0, 0.30));
tween(view.fisheye, 0.0, distance(1.0, 0.30), easeOutQuad,
set(view.stereographic,false);
tween(view.fisheye, 0.45, distance(1.0, 0.75));
tween(view.vlookat, get(panoview.v), distance(90, 0.45));
);
tween(view.pannini, 0.0, distance(1.0, 0.75), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
tween(view.fov, get(panoview.fov), distance(50, 0.45));
set(sceneisfull360, false);
if(scene[get(xml.scene)].full360,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
);
if (sceneisfull360 AND (device.webgl OR device.flash),
if(normalViewActivated,stopSetViewTweens(););
if(current_view_isflat === true,
setViewNonFlat(VFOV);
);
setViewLittlePlanetComplete();
);
set(backtonormalfirst,false);
if(view.pannini GE 1.0, set(backtonormalfirst,true));
if(view.stereographic == false, set(backtonormalfirst,true));
if(backtonormalfirst, hideTooltip();tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeOutQuad, WAIT); );
set(view.stereographic, true);
set(view.fisheyefovlink, 1.5);
tween(view.architectural, 0.0, 0.25);
tween(view.vlookat, 90, distance(179, 1.50));
tween(view.pannini, 0.0, distance(1.0, 0.75), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
tween(view.fisheye, 1.0, distance(1.0, 0.75));
tween(view.fov, 150, distance(179, 0.75));
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
set(tour_fullscreen,false);js(setFullscreen(false));
set(tour_fullscreen,true);js(setFullscreen(true));
if(tour_fullscreen,exitFullScreen();,enterFullScreen(););
set(tour_fullscreen,false);events.dispatch(onexitfullscreen);
set(tour_fullscreen,true);events.dispatch(onenterfullscreen);
set(fullscreen,false);
set(fullscreen,true);
delayedcall(0,updatescreen(););
stopSetViewTweens();
if(current_view_isflat === true,
setViewNonFlat(VFOV);
);
setViewNormalComplete();
set(view.fisheyefovlink, 0.5);
set(view.fovmax, get(panoview.fovmax));
tween(view.architectural, 0.0, distance(1.0, 0.45));
tween(view.pannini, 0.0, distance(1.0, 0.45), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
tween(view.vlookat, get(panoview.v), distance(90, 0.45));
tween(view.fov, get(panoview.fov), distance(50, 0.45));
tween(view.fisheye, 0.0, distance(1.0, 0.45),
set(view.stereographic,false);
);
stoptween(view.fov);
stoptween(view.vlookat);
stoptween(view.fisheye);
stoptween(view.architectural);
stoptween(view.pannini);