switchFullscreen();
getmessage(contextmenu.item[normal].caption, contextmenunormallabel);
getmessage(contextmenu.item[architectural].caption, contextmenuarchitecturallabel);
getmessage(contextmenu.item[littleplanet].caption, contextmenulittleplanetlabel);
if(tour_fullscreen,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
set(contextmenu.item[fullscreenentry].onclick, exitFullscreen(););
,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
set(contextmenu.item[fullscreenentry].onclick, enterFullscreen(););
);
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);
);
ifnot (theme11barbuilt, theme11buildMenu(); set(theme11barbuilt, true););
if (tour_gyroscopedevices,
set(theme11menugyroscopeavailable, true);
theme11updateGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(theme11menugyroscopeenabled, %1);
theme11updateGyroscopeButtons();
);
set(layer[theme11btn_gyroscope_off].visible, false);
set(layer[theme11btn_gyroscope_on].visible, false);
if (theme11menugyroscopeavailable,
if (theme11menugyroscopeenabled,
set(layer[theme11btn_gyroscope_off].visible, false);
set(layer[theme11btn_gyroscope_on].visible, true);
,
set(layer[theme11btn_gyroscope_off].visible, true);
set(layer[theme11btn_gyroscope_on].visible, false);
);
,
theme11HideGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(theme11DisplayMenuGyroscopeButtons, false);
if (theme11IsOpened, set(theme11DisplayMenuGyroscopeButtons, true););
if (theme11DisplayMenuGyroscopeButtons,
theme11ShowGyroscopeButtons();
,
theme11HideGyroscopeButtons();
);
,
theme11HideGyroscopeButtons();
);
set(layer[theme11btn_ctrlmode_move_to].visible, false);
set(layer[theme11btn_ctrlmode_drag_to].visible, false);
if (tour_controlmodemousetype == "moveto",
set(layer[theme11btn_ctrlmode_drag_to].visible, true);
set(layer[theme11btn_ctrlmode_move_to].visible, false);
,
set(layer[theme11btn_ctrlmode_move_to].visible, true);
set(layer[theme11btn_ctrlmode_drag_to].visible, false);
);
if (device.desktop,
set(theme11DisplayControlModeButtons, false);
if (theme11IsOpened, set(theme11DisplayControlModeButtons, true););
if (theme11DisplayControlModeButtons,
theme11ShowControlModeButtons();
,
theme11HideControlModeButtons();
);
,
theme11HideControlModeButtons();
);
set(theme11IsOpened, false);
set(layer[theme11btn_hidecontrols].visible, false);
set(layer[theme11btn_showcontrols].visible, true);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].visible, false);
set(layer[theme11btn_prev_pano].visible, false);
);
if (device.desktop,
set(layer[theme11btn_in].visible, false);
set(layer[theme11btn_out].visible, false);
);
if (device.desktop,
set(layer[theme11btn_up].visible, false);
set(layer[theme11btn_down].visible, false);
);
if (device.desktop,
set(layer[theme11btn_left].visible, false);
set(layer[theme11btn_right].visible, false);
);
theme11updateFullscreenButtons();
theme11updateHelpButtons();
theme11updateAutorotationButtons();
theme11updateGyroscopeButtons();
theme11updateControlModeButtons();
set(layer[theme11_menu_bg].width , get(theme11backgroundwidthwhenclosed));
set(layer[theme11_menu_bg].visible, true);
set(theme11IsOpened, true);
set(layer[theme11btn_hidecontrols].visible, true);
set(layer[theme11btn_showcontrols].visible, false);
set(layer[theme11_menu_bg].visible, true);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].visible, true);
set(layer[theme11btn_prev_pano].visible, true);
);
if (device.desktop,
set(layer[theme11btn_in].visible, true);
set(layer[theme11btn_out].visible, true);
);
if (device.desktop,
set(layer[theme11btn_up].visible, true);
set(layer[theme11btn_down].visible, true);
);
if (device.desktop,
set(layer[theme11btn_left].visible, true);
set(layer[theme11btn_right].visible, true);
);
theme11updateFullscreenButtons();
theme11updateHelpButtons();
theme11updateAutorotationButtons();
theme11updateGyroscopeButtons();
theme11updateControlModeButtons();
set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
if (device.desktop,
set(layer[theme11helpScreenBg].displayed,true);
set(layer[theme11helpScreenBg].visible,true);
set(layer[theme11helpScreenFg].visible,true);
tween(layer[theme11helpScreenFg].rotate,0, 1);
tween(layer[theme11helpScreenBg].rotate,0, 1);
tween(layer[theme11helpScreenFg].x,0, 1);
tween(layer[theme11helpScreenBg].x,0, 1);
theme11updateHelpButtons();
);
if (device.desktop,
set(layer[theme11helpScreenBg].displayed,false);
tween(layer[theme11helpScreenFg].rotate, 90, 1, easeOutQuad, set(layer[helpScreenFg].visible,false););
tween(layer[theme11helpScreenBg].rotate, -90, 1, easeOutQuad, set(layer[helpScreenBg].visible,false););
tween(layer[theme11helpScreenFg].x, -100%, 1);
tween(layer[theme11helpScreenBg].x, 100%, 1);
theme11updateHelpButtons();
);
set(layer[theme11btn_display_help].visible, false);
set(layer[theme11btn_close_help].visible, false);
if (layer[theme11helpScreenBg].displayed,
set(layer[theme11btn_close_help].visible, true);
set(layer[theme11btn_display_help].visible, false);
,
set(layer[theme11btn_display_help].visible, true);
set(layer[theme11btn_close_help].visible, false);
);
if (device.desktop,
set(theme11DisplayHelpButtons, false);
if (theme11IsOpened, set(theme11DisplayHelpButtons, true););
if (theme11DisplayHelpButtons,
theme11ShowHelpButtons();
,
theme11HideHelpButtons();
);
,
theme11HideHelpButtons();
);
set(layer[theme11btn_openfs].visible , false);
set(layer[theme11btn_closefs].visible, false);
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[theme11btn_openfs].visible , false);
set(layer[theme11btn_closefs].visible, true);
,
set(layer[theme11btn_openfs].visible ,true);
set(layer[theme11btn_closefs].visible,false);
);
,
theme11HideFullscreenButtons();
);
set(theme11DisplayFullscreenButtons, false);
if (theme11IsOpened, set(theme11DisplayFullscreenButtons, true););
if (theme11DisplayFullscreenButtons,
theme11ShowFullscreenButtons();
,
theme11HideFullscreenButtons();
);
set(layer[theme11btn_autorotate_off].visible, false);
set(layer[theme11btn_autorotate_on].visible , false);
if(tour_autorotateenabled==false,
set(layer[theme11btn_autorotate_off].visible, false);
set(layer[theme11btn_autorotate_on].visible , true);
,
set(layer[theme11btn_autorotate_off].visible, true);
set(layer[theme11btn_autorotate_on].visible , false);
);
set(theme11DisplayAutorotationButtons, false);
if (theme11IsOpened, set(theme11DisplayAutorotationButtons, true););
if (theme11DisplayAutorotationButtons,
theme11ShowAutorotationButtons();
,
theme11HideAutorotationButtons();
);
set(theme11button_pos, 0);
set(theme11backgroundwidthwhenclosed, 40);
set(layer[theme11btn_hidecontrols].x, get(theme11button_pos));
set(layer[theme11btn_showcontrols].x, get(theme11button_pos));
inc(theme11button_pos, 45);
if (device.desktop,
set(layer[theme11btn_display_help].x, get(theme11button_pos));
set(layer[theme11btn_close_help].x , get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.fullscreensupport,
set(layer[theme11btn_openfs].x , get(theme11button_pos));
set(layer[theme11btn_closefs].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
set(layer[theme11btn_autorotate_on].x , get(theme11button_pos));
set(layer[theme11btn_autorotate_off].x, get(theme11button_pos));
inc(theme11button_pos, 45);
if (device.desktop,
set(layer[theme11btn_ctrlmode_drag_to].x, get(theme11button_pos));
set(layer[theme11btn_ctrlmode_move_to].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
set(theme11DisplayGryoscopeButton, false);
if (device.tablet, set(theme11DisplayGryoscopeButton, true););
if (device.mobile, set(theme11DisplayGryoscopeButton, true););
if(theme11DisplayGryoscopeButton,
set(layer[theme11btn_gyroscope_on].x , get(theme11button_pos));
set(layer[theme11btn_gyroscope_off].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_right].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_left].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_down].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_up].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_out].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_in].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_prev_pano].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
dec(theme11button_pos, 5);
set(theme11backgroundwidthwhenopened, get(theme11button_pos));
set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
theme11showMenuControls();
-
-
js(openKolorMenu(panoramaMenu));
js(invokePluginFunction(panoramaMenu, hideKolorMenu));
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();
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);
);
stopSetViewTweens();
setViewNormalComplete();
tween(view.architectural, 0.0, distance(1.0, 0.45), easeoutquad,
tween(view.fovmax, get(panoview.fovmax), distance(179, 1.00));
tween(view.vlookat, get(panoview.v), distance(90, 0.45));
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad,
set(view.stereographic,false);
if(view.pannini, set(view.pannini,false); delayedcall(0,updateobject(true,true)); );
set(view.fisheyefovlink, 0.5);
if(panoview.fov LE view.fov, tween(view.fov, get(panoview.fov), distance(50, 0.45)); );
);
);
stoptween(view.fov);
stoptween(view.fovmax);
stoptween(view.vlookat);
stoptween(view.fisheye);
stoptween(view.architectural);