showtooltip(hotspot);
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation();
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation();
set(layer[header1].visible, false);
set(layer[header1].visible, true);
set(layer[header].visible, false);
set(layer[header].visible, true);
ifnot (themeunanimebarbuilt, themeunanimebuildMenu(); set(themeunanimebarbuilt, true););
set(themeunanimebutton_pos, 0);
set(layer[themeunanimebtn_hidecontrols].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_hidecontrols_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
if (device.desktop,
set(layer[themeunanimebtn_display_help].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_display_help_bg].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_close_help].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_close_help_bg].x , get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.fullscreensupport,
set(layer[themeunanimebtn_openfs].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_closefs].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_openfs_bg ].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_closefs_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
set(layer[themeunanimebtn_share].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_share_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_autorotate_on].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autorotate_on_bg].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autorotate_off].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autorotate_off_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
if (device.desktop,
set(layer[themeunanimebtn_ctrlmode_drag_to].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_move_to].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_move_to_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
set(themeunanimeDisplayGryoscopeButton, false);
if (device.tablet, set(themeunanimeDisplayGryoscopeButton, true););
if (device.mobile, set(themeunanimeDisplayGryoscopeButton, true););
if(themeunanimeDisplayGryoscopeButton,
set(layer[themeunanimebtn_gyroscope_on].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_on_bg ].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_off].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_off_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.desktop,
set(layer[themeunanimebtn_right].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_right_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_left].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_left_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.desktop,
set(layer[themeunanimebtn_down].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_down_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_up].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_up_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.desktop,
set(layer[themeunanimebtn_out].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_out_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_in].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_in_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (scene.count GT 1,
set(layer[themeunanimebtn_next_pano].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_next_pano_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_prev_pano].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_prev_pano_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
showTourControls();
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|48|48|48");
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|96|48|48");
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|0|48|48");
hideTooltip();
if (tour_gyroscopedevices,
set(themeunanimemenugyroscopeavailable, true);
themeunanimeupdateGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(themeunanimemenugyroscopeenabled, %1);
themeunanimeupdateGyroscopeButtons();
);
set(layer[themeunanimebtn_gyroscope_off].visible, false);
set(layer[themeunanimebtn_gyroscope_on].visible, false);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, false);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, false);
if (themeunanimemenugyroscopeavailable,
if (themeunanimemenugyroscopeenabled,
set(layer[themeunanimebtn_gyroscope_off].visible, false);
set(layer[themeunanimebtn_gyroscope_on].visible, true);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, false);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, true);
,
set(layer[themeunanimebtn_gyroscope_off].visible, true);
set(layer[themeunanimebtn_gyroscope_on].visible, false);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, true);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, false);
);
,
themeunanimeHideGyroscopeButtons();
);
if (tour_gyroscopedevices,
if (tour_displaycontrols,
themeunanimeShowGyroscopeButtons();
,
themeunanimeHideGyroscopeButtons();
);
,
themeunanimeHideGyroscopeButtons();
);
set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, false);
if (tour_controlmodemousetype == "moveto",
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, true);
set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, true);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, false);
,
set(layer[themeunanimebtn_ctrlmode_move_to].visible, true);
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, true);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, false);
);
if (device.desktop,
if (tour_displaycontrols,
themeunanimeShowControlModeButtons();
,
themeunanimeHideControlModeButtons();
);
,
themeunanimeHideControlModeButtons();
);
set(themeunanimeIsOpened, false);
set(layer[themeunanime_bg].visible, false);
set(layer[themeunanimebtn_showcontrols].visible, true);
set(layer[themeunanimebtn_hidecontrols_bg].visible, false);
set(layer[themeunanimebtn_hidecontrols].visible, false);
set(layer[themeunanimebtn_in_bg].visible, false);
set(layer[themeunanimebtn_out_bg].visible, false);
set(layer[themeunanimebtn_in].visible, false);
set(layer[themeunanimebtn_out].visible, false);
set(layer[themeunanimebtn_right_bg].visible, false);
set(layer[themeunanimebtn_left_bg].visible, false);
set(layer[themeunanimebtn_right].visible, false);
set(layer[themeunanimebtn_left].visible, false);
set(layer[themeunanimebtn_down_bg].visible, false);
set(layer[themeunanimebtn_up_bg].visible, false);
set(layer[themeunanimebtn_down].visible, false);
set(layer[themeunanimebtn_up].visible, false);
if (scene.count GT 1,
set(layer[themeunanimebtn_prev_pano_bg].visible, false);
set(layer[themeunanimebtn_next_pano_bg].visible, false);
set(layer[themeunanimebtn_prev_pano].visible, false);
set(layer[themeunanimebtn_next_pano].visible, false);
);
set(layer[themeunanimebtn_share_bg].visible, false);
set(layer[themeunanimebtn_share].visible, false);
themeunanimeupdateGyroscopeButtons();
themeunanimeupdateControlModeButtons();
themeunanimeupdateFullscreenButtons();
themeunanimeupdateAutorotationButtons();
themeunanimeupdateHelpButtons();
set(themeunanimeIsOpened, true);
themeunanimeupdateFullscreenButtons();
themeunanimeupdateAutorotationButtons();
themeunanimeupdateGyroscopeButtons();
themeunanimeupdateControlModeButtons();
themeunanimeupdateHelpButtons();
set(layer[themeunanime_bg].visible, true);
set(layer[themeunanimebtn_showcontrols].visible, false);
set(layer[themeunanimebtn_hidecontrols_bg].visible, true);
set(layer[themeunanimebtn_hidecontrols].visible, true);
set(layer[themeunanimebtn_in_bg].visible, true);
set(layer[themeunanimebtn_out_bg].visible, true);
set(layer[themeunanimebtn_in].visible, true);
set(layer[themeunanimebtn_out].visible, true);
set(layer[themeunanimebtn_right_bg].visible, true);
set(layer[themeunanimebtn_left_bg].visible, true);
set(layer[themeunanimebtn_right].visible, true);
set(layer[themeunanimebtn_left].visible, true);
set(layer[themeunanimebtn_down_bg].visible, true);
set(layer[themeunanimebtn_up_bg].visible, true);
set(layer[themeunanimebtn_down].visible, true);
set(layer[themeunanimebtn_up].visible, true);
if (scene.count GT 1,
set(layer[themeunanimebtn_prev_pano_bg].visible, true);
set(layer[themeunanimebtn_next_pano_bg].visible, true);
set(layer[themeunanimebtn_prev_pano].visible, true);
set(layer[themeunanimebtn_next_pano].visible, true);
);
set(layer[themeunanimebtn_share_bg].visible, true);
set(layer[themeunanimebtn_share].visible, true);
if (device.desktop,
set(layer[themeunanimehelpScreen].displayed, true);
set(layer[themeunanimehelpScreenBg].visible,true);
themeunanimeupdateHelpButtons();
);
if (device.desktop,
set(layer[themeunanimehelpScreen].displayed, false);
set(layer[themeunanimehelpScreenBg].visible,false);
themeunanimeupdateHelpButtons();
);
set(layer[themeunanimebtn_display_help].visible, false);
set(layer[themeunanimebtn_close_help].visible, false);
set(layer[themeunanimebtn_display_help_bg].visible, false);
set(layer[themeunanimebtn_close_help_bg].visible, false);
if (layer[themeunanimehelpScreen].displayed,
set(layer[themeunanimebtn_close_help].visible, true);
set(layer[themeunanimebtn_display_help].visible, false);
set(layer[themeunanimebtn_close_help_bg].visible, true);
set(layer[themeunanimebtn_display_help_bg].visible, false);
,
set(layer[themeunanimebtn_display_help].visible, true);
set(layer[themeunanimebtn_close_help].visible, false);
set(layer[themeunanimebtn_display_help_bg].visible, true);
set(layer[themeunanimebtn_close_help_bg].visible, false);
);
if (device.desktop,
if (tour_displaycontrols,
themeunanimeShowHelpButtons();
,
themeunanimeHideHelpButtons();
);
,
themeunanimeHideHelpButtons();
);
set(layer[themeunanimebtn_openfs].visible , false);
set(layer[themeunanimebtn_closefs].visible, false);
set(layer[themeunanimebtn_openfs_bg].visible, false);
set(layer[themeunanimebtn_closefs_bg].visible, false);
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[themeunanimebtn_openfs].visible , false);
set(layer[themeunanimebtn_closefs].visible, true);
set(layer[themeunanimebtn_openfs_bg].visible, false);
set(layer[themeunanimebtn_closefs_bg].visible, true);
,
set(layer[themeunanimebtn_openfs].visible ,true);
set(layer[themeunanimebtn_closefs].visible,false);
set(layer[themeunanimebtn_openfs_bg].visible, true);
set(layer[themeunanimebtn_closefs_bg].visible, false);
);
,
themeunanimeHideFullscreenButtons();
);
if (tour_displaycontrols,
themeunanimeShowFullscreenButtons();
,
themeunanimeHideFullscreenButtons();
);
set(layer[themeunanimebtn_autorotate_off].visible, false);
set(layer[themeunanimebtn_autorotate_on].visible , false);
set(layer[themeunanimebtn_autorotate_off_bg].visible, false);
set(layer[themeunanimebtn_autorotate_on_bg].visible , false);
if(tour_autorotateenabled==false,
set(layer[themeunanimebtn_autorotate_off].visible, false);
set(layer[themeunanimebtn_autorotate_on].visible , true);
set(layer[themeunanimebtn_autorotate_off_bg].visible, false);
set(layer[themeunanimebtn_autorotate_on_bg].visible , true);
,
set(layer[themeunanimebtn_autorotate_off].visible, true);
set(layer[themeunanimebtn_autorotate_on].visible , false);
set(layer[themeunanimebtn_autorotate_off_bg].visible, true);
set(layer[themeunanimebtn_autorotate_on_bg].visible , false);
);
if (tour_displaycontrols,
themeunanimeShowAutorotationButtons();
,
themeunanimeHideAutorotationButtons();
);
set(layer[footer].visible, false);
set(layer[footer].visible, true);
getmessage(contextmenu.item[author].caption, project_author_name);
getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
getmessage(contextmenu.item[website2].caption, contextmenuwebsiteurl2);
getmessage(contextmenu.item[website3].caption, contextmenuopenwebsitelabel3);
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
switch(plugin[gyroscope].enabled);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
set(tour_gyroscopedevices, false);
set(plugin[gyroscope].enabled, false);
);
,
set(tour_gyroscopedevices, false);
set(plugin[gyroscope].enabled, false);
);
set(ptplugin[socialShare].jsready, true);
if(ptplugin[socialShare].jsready,
showSocialShare-socialShare();
,
delayedcall(1.0,startOpenSocialShare-socialShare(););
);
ifnot(ptplugin[socialShare].isOpen,
set(ptplugin[socialShare].isOpen, true);
pauseautorotation();
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
js(invokePluginFunction(socialShare, closeKolorBox));
resumeautorotation();
set(ptplugin[socialShare].isOpen, false);
set(ptplugin[gallery].jsready, true);
ifnot(ptplugin[gallery].isOpen,
set(ptplugin[gallery].isOpen, true);
set(ptplugin[gallery].doNotDeleteMe, false);
pauseautorotation();
js(invokePluginFunction(gallery, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery, toggleKolorBox, %1));
js(invokePluginFunction(gallery, closeKolorBox));
resumeautorotation();
set(ptplugin[gallery].isOpen, false);
showGallery-gallery();
set(layer[button].visible, false);
set(layer[button].visible, true);
set(layer[logo].visible, false);
set(layer[logo].visible, true);
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(););
changeGyroscopeState();
changeGyroscopeState();
events.dispatch(onsharetour);
stopSetViewTweens();
setViewArchitecturalComplete();
tween(view.fovmax, get(panoview.fovmax), distance(179, 1.00), easeoutquad);
tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad,
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad,
set(view.fisheyefovlink, 0.5);
set(view.stereographic,false);
if(view.pannini, set(view.pannini,false); delayedcall(0,updateobject(true,true)); );
tween(view.vlookat, get(panoview.v), 1.25);
if(panoview.fov LE view.fov, tween(view.fov, get(panoview.fov), distance(50, 0.45)); );
);
);
stopSetViewTweens();
setViewLittlePlanetComplete();
tween(view.architectural, 0.0, 0.25, easeoutquad,
tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
set(backtonormalfirst,false);
if(view.pannini == true, set(backtonormalfirst,true) );
if(view.stereographic == false, set(backtonormalfirst,true) );
if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
if(view.pannini, set(view.pannini,false); delayedcall(0, updateobject(true,true)); );
if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
set(view.stereographic, true);
set(view.fisheyefovlink, 1.5);
tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
tween(view.fov, 150, distance(179, 0.75), easeoutquad);
);