getmessage(contextmenu.item[author].caption, project_author_name);
getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
if (device.fullscreensupport,
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();
);
);
,
set(contextmenu.item[fullscreenentry].visible, false);
);
if (device.html5 AND tour_vrdevices,
getmessage(contextmenu.item[vrmodeentry].caption, contextmenuopenVrLabel);
set(contextmenu.item[vrmodeentry].onclick, if(scene[get(xml.scene)].full360,
js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
js(accessWebVr(null));
););
,
set(contextmenu.item[vrmodeentry].visible, false);
);
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(%1 == true,set(layer[webvrbutton].blocked, true););set(layer[webvrbutton].visible, false);
if(layer[webvrbutton].blocked == false,set(layer[webvrbutton].visible, true););
showTourInfo();
showTourControls();
set(layer[button].visible, false);
set(layer[button].visible, true);
set(ptplugin[description].jsready, true);
ifnot(ptplugin[description].isOpen,
set(ptplugin[description].isOpen, true);
js(showKolorArea(description, get(ptplugin[description].descID)));
events.dispatch(onremovedisplayedobject);
);
if(ptplugin[description].isOpen,
js(invokePluginFunction(description, closeKolorArea));
);
if(ptplugin[description].isOpen,
closeKolorArea_description();
,
openKolorArea_description();
);
set(ptplugin[description].isOpen, false);
if(tour_displayinfo,hideTourInfo();
);
if(tour_displayinfo,hideTourInfo();
);
ifnot(ptplugin[description].startMethod == "",
delayedcall(0,get(ptplugin[description].startMethod));
,
set(ptplugin[description].isOpen, true);
js(invokePluginFunction(description, showKolorArea, %1));
events.dispatch(onremovedisplayedobject);
);
set(ptplugin[description].isOpen, false);
js(invokePluginFunction(description, hideKolorArea, %1));
openKolorArea_description();
set(ptplugin[description].descID, %1);
openKolorArea_description();
set(ptplugin[description].currentGroup, false);
if(%1,
set(restore_description, true);
,
set(restore_description, false);
);
closeKolorArea_description();
if(ptplugin[description].canStart,
set(ptplugin[description].descID, get(projectdescriptionid));
if(ptplugin[description].descID != "",
openDescription_description();
,
hideKolorArea_description(false);
);
set(ptplugin[description].startMethod, "");
);
if(ptplugin[description].jsready,
stopdelayedcall(delay_description);
js(invokePluginFunction(description, changeLanguage, true));
,
delayedcall(delay_description, 0.1, changeLanguage_description(););
);
ifnot (controlBar_roundedbuilt, controlBar_roundedbuildMenu(); set(controlBar_roundedbuilt, true););
if(roundcornerbarIsOpened,
set(layer[controlBar_roundedbtnbg0].visible, false);
set(layer[controlBar_roundedbtnbg1].visible, false);
set(layer[controlBar_roundedbtnbg2].visible, false);
set(layer[controlBar_roundedbtnbg3].visible, false);
set(layer[controlBar_roundedbtnbg4].visible, false);
set(layer[controlBar_roundedbtnbg5].visible, false);
set(layer[controlBar_roundedbtn_in].visible, false);
set(layer[controlBar_roundedbtn_out].visible, false);
set(layer[controlBar_roundedbtn_up].visible, false);
set(layer[controlBar_roundedbtn_down].visible, false);
set(layer[controlBar_roundedbtn_left].visible, false);
set(layer[controlBar_roundedbtn_right].visible, false);
set(layer[controlBar_roundedbtn_hidecontrols].visible, false);
set(layer[controlBar_roundedmenu_roundcorner_bg].visible, false);
controlBar_roundedHideFullscreenButtons();
,
set(layer[controlBar_roundedbtn_showcontrols].visible, false);
);
if(roundcornerbarIsOpened,
set(layer[controlBar_roundedbtnbg0].visible, true);
set(layer[controlBar_roundedbtnbg1].visible, true);
set(layer[controlBar_roundedbtnbg2].visible, true);
set(layer[controlBar_roundedbtnbg3].visible, true);
set(layer[controlBar_roundedbtnbg4].visible, true);
set(layer[controlBar_roundedbtnbg5].visible, true);
set(layer[controlBar_roundedbtn_in].visible, true);
set(layer[controlBar_roundedbtn_out].visible, true);
set(layer[controlBar_roundedbtn_up].visible, true);
set(layer[controlBar_roundedbtn_down].visible, true);
set(layer[controlBar_roundedbtn_left].visible, true);
set(layer[controlBar_roundedbtn_right].visible, true);
set(layer[controlBar_roundedbtn_hidecontrols].visible, true);
set(layer[controlBar_roundedmenu_roundcorner_bg].visible, true);
controlBar_roundedShowFullscreenButtons();
,
set(layer[controlBar_roundedbtn_showcontrols].visible, true);
);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_autorotate_on ].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_autorotate_on ].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_autorotate_on ].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_autorotate_off].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_autorotate_off].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_autorotate_off].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_autorotate_on].disabled, true);
set(layer[controlBar_roundedbtn_autorotate_off].disabled, true);
);
if(plugin[ptpvrmode] AND device.html5,
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_enter_vr].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_enter_vr].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_enter_vr].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_enter_vr_not].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_enter_vr_not].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_enter_vr_not].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_enter_vr].disabled, true);
);
);
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_share].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_share].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_share].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_share].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_display_info].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_display_info].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_display_info].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_close_info ].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_close_info ].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_close_info ].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_display_info].disabled, true);
set(layer[controlBar_roundedbtn_close_info].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
if (device.desktop,
set(layer[controlBar_roundedbtn_display_help].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_display_help].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_display_help].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_close_help ].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_close_help ].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_close_help ].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
);
,
set(layer[controlBar_roundedbtn_display_help].disabled, true);
set(layer[controlBar_roundedbtn_close_help].disabled, true);
);
hideTourControls();
set(layer[controlBar_roundedbtn_autorotate_off].visible, false);
set(layer[controlBar_roundedbtn_autorotate_on].visible , false);
if(autorotate.enabled == false,
set(layer[controlBar_roundedbtn_autorotate_off].visible, false);
set(layer[controlBar_roundedbtn_autorotate_on].visible , true);
,
set(layer[controlBar_roundedbtn_autorotate_off].visible, true);
set(layer[controlBar_roundedbtn_autorotate_on].visible , false);
);
if (tour_displaycontrols,
controlBar_roundedShowAutorotationButtons();
,
controlBar_roundedHideAutorotationButtons();
);
if (tour_vrdevices,
set(controlBar_roundedmenuvravailable, true);
,
set(controlBar_roundedmenuvravailable, false);
);
controlBar_roundedupdateVrButtons();
set(layer[controlBar_roundedbtn_enter_vr].visible, false);
if('%1' == 'true' AND plugin[ptpvrmode],
set(layer[controlBar_roundedbtn_enter_vr_not].visible, true);
,
set(layer[controlBar_roundedbtn_enter_vr_not].visible, false);
);
if (controlBar_roundedmenuvravailable,
set(layer[controlBar_roundedbtn_enter_vr].visible, true);
set(layer[controlBar_roundedbtn_enter_vr_not].visible, false);
,
controlBar_roundedHideVrButtons(true);
);
if (tour_vrdevices,
if (tour_displaycontrols,
controlBar_roundedShowVrButtons();
,
controlBar_roundedHideVrButtons();
);
,
if (tour_displaycontrols,
controlBar_roundedHideVrButtons(true);
,
controlBar_roundedHideVrButtons();
);
);
set(controlBar_roundedIsOpened, false);
if (controlBar_roundednbbuttons GT 0,
stoptween(layer[controlBar_roundedmenu_roundcorner_bg].rotate);
stoptween(layer[controlBar_roundedbtnbg0].alpha);
stoptween(layer[controlBar_roundedbtnbg1].alpha);
stoptween(layer[controlBar_roundedbtnbg2].alpha);
stoptween(layer[controlBar_roundedbtnbg3].alpha);
stoptween(layer[controlBar_roundedbtnbg4].alpha);
stoptween(layer[controlBar_roundedbtnbg5].alpha);
tween(layer[controlBar_roundedbtnbg0].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg0].visible, false));
tween(layer[controlBar_roundedbtnbg1].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg1].visible, false));
tween(layer[controlBar_roundedbtnbg2].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg2].visible, false));
tween(layer[controlBar_roundedbtnbg3].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg3].visible, false));
tween(layer[controlBar_roundedbtnbg4].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg4].visible, false));
tween(layer[controlBar_roundedbtnbg5].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtnbg5].visible, false));
);
set(layer[controlBar_roundedbtn_showcontrols].visible, true);
set(layer[controlBar_roundedbtn_hidecontrols].visible, false);
set(layer[controlBar_roundedbtn_in].visible, false);
set(layer[controlBar_roundedbtn_out].visible, false);
set(layer[controlBar_roundedbtn_up].visible, false);
set(layer[controlBar_roundedbtn_down].visible, false);
set(layer[controlBar_roundedbtn_left].visible, false);
set(layer[controlBar_roundedbtn_right].visible, false);
ifnot(layer[controlBar_roundedbtn_autorotate_on].disabled,controlBar_roundedupdateAutorotationButtons(););
ifnot(layer[controlBar_roundedbtn_share].disabled,set(layer[controlBar_roundedbtn_share].visible, false););
ifnot(layer[controlBar_roundedbtn_display_info].disabled,controlBar_roundedupdateInfoButtons(););
if(layer[controlBar_roundedbtn_enter_vr],ifnot(layer[controlBar_roundedbtn_enter_vr].disabled,controlBar_roundedupdateVrButtons();););
ifnot(layer[controlBar_roundedbtn_display_help].disabled,controlBar_roundedupdateHelpButtons(););
if (controlBar_roundednbbuttons GT 0,
tween(layer[controlBar_roundedmenu_roundcorner_bg].rotate, 180, 0.5, easeOutQuad, set(layer[controlBar_roundedmenu_roundcorner_bg].visible, false););
);
set(controlBar_roundedIsOpened, true);
if (controlBar_roundednbbuttons GT 0,
stoptween(layer[controlBar_roundedmenu_roundcorner_bg].rotate);
stoptween(layer[controlBar_roundedbtnbg0].alpha);
stoptween(layer[controlBar_roundedbtnbg1].alpha);
stoptween(layer[controlBar_roundedbtnbg2].alpha);
stoptween(layer[controlBar_roundedbtnbg3].alpha);
stoptween(layer[controlBar_roundedbtnbg4].alpha);
stoptween(layer[controlBar_roundedbtnbg5].alpha);
);
set(layer[controlBar_roundedbtn_hidecontrols].visible, true);
set(layer[controlBar_roundedbtn_showcontrols].visible, false);
set(layer[controlBar_roundedmenu_roundcorner_bg].visible, true);
tween(layer[controlBar_roundedmenu_roundcorner_bg].rotate, 0, 0.5, easeOutQuad,
if (controlBar_roundednbbuttons GT 0,
set( layer[controlBar_roundedbtnbg0].visible, true);
tween(layer[controlBar_roundedbtnbg0].alpha , 1, 0.5);
set( layer[controlBar_roundedbtnbg1].visible, true);
tween(layer[controlBar_roundedbtnbg1].alpha , 1, 0.5);
set( layer[controlBar_roundedbtnbg2].visible, true);
tween(layer[controlBar_roundedbtnbg2].alpha , 1, 0.5);
set( layer[controlBar_roundedbtnbg3].visible, true);
tween(layer[controlBar_roundedbtnbg3].alpha , 1, 0.5);
set( layer[controlBar_roundedbtnbg4].visible, true);
tween(layer[controlBar_roundedbtnbg4].alpha , 1, 0.5);
set( layer[controlBar_roundedbtnbg5].visible, true);
tween(layer[controlBar_roundedbtnbg5].alpha , 1, 0.5);
);
set(layer[controlBar_roundedbtn_in].visible, true);
set(layer[controlBar_roundedbtn_out].visible, true);
set(layer[controlBar_roundedbtn_up].visible, true);
set(layer[controlBar_roundedbtn_down].visible, true);
set(layer[controlBar_roundedbtn_left].visible, true);
set(layer[controlBar_roundedbtn_right].visible, true);
ifnot(layer[controlBar_roundedbtn_autorotate_on].disabled,controlBar_roundedupdateAutorotationButtons(););
ifnot(layer[controlBar_roundedbtn_share].disabled,set(layer[controlBar_roundedbtn_share].visible, true););
ifnot(layer[controlBar_roundedbtn_display_info].disabled,controlBar_roundedupdateInfoButtons(););
if(layer[controlBar_roundedbtn_enter_vr],ifnot(layer[controlBar_roundedbtn_enter_vr].disabled,controlBar_roundedupdateVrButtons();););
ifnot(layer[controlBar_roundedbtn_display_help].disabled,controlBar_roundedupdateHelpButtons(););
);
if (device.desktop,
set(layer[controlBar_roundedhelpScreen].displayed, true);
controlBar_roundedupdateHelpButtons();
);
if (device.desktop,
set(layer[controlBar_roundedhelpScreen].displayed, false);
controlBar_roundedupdateHelpButtons();
);
set(layer[controlBar_roundedbtn_display_help].visible, false);
set(layer[controlBar_roundedbtn_close_help].visible, false);
ifnot(layer[controlBar_roundedhelpScreenBg].rotate == -90,
tween(layer[controlBar_roundedhelpScreenBg].rotate, -90, 0.7, easeOutQuad, set(layer[controlBar_roundedhelpScreenBg].visible, false););
);
if (layer[controlBar_roundedhelpScreen].displayed,
set(layer[controlBar_roundedbtn_close_help].visible, true);
set(layer[controlBar_roundedbtn_display_help].visible, false);
set(layer[controlBar_roundedhelpScreenBg].visible, true);
ifnot(layer[controlBar_roundedhelpScreenBg].rotate == 0,
tween(layer[controlBar_roundedhelpScreenBg].rotate, 0, 0.7);
);
,
set(layer[controlBar_roundedbtn_display_help].visible, true);
set(layer[controlBar_roundedbtn_close_help].visible, false);
ifnot(layer[controlBar_roundedhelpScreenBg].rotate == -90,
tween(layer[controlBar_roundedhelpScreenBg].rotate, -90, 0.7, easeOutQuad, set(layer[controlBar_roundedhelpScreenBg].visible, false););
);
);
if (device.desktop,
if (tour_displaycontrols,
controlBar_roundedShowHelpButtons();
,
controlBar_roundedHideHelpButtons();
);
,
controlBar_roundedHideHelpButtons();
);
controlBar_roundedupdateInfoButtons();
controlBar_roundedupdateInfoButtons();
set(layer[controlBar_roundedbtn_display_info].visible, false);
set(layer[controlBar_roundedbtn_close_info].visible, false);
if (tour_displayinfo,
set(layer[controlBar_roundedbtn_close_info].visible, true);
set(layer[controlBar_roundedbtn_display_info].visible, false);
,
set(layer[controlBar_roundedbtn_display_info].visible, true);
set(layer[controlBar_roundedbtn_close_info].visible, false);
);
if (tour_displaycontrols,
controlBar_roundedShowInfoButtons();
,
controlBar_roundedHideInfoButtons();
);
if (tooltip !== null,
getmessage(tooltipmess, get(tooltip));
showTooltip('plugin', controlBar_roundedmenuTooltipStyle, bottomright);
);
set(ptplugin[socialShare].jsready, true);
ifnot(ptplugin[socialShare].isOpen,
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].currentCall, false);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
,
set(ptplugin[socialShare].currentCall, true);
set(ptplugin[socialShare].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showSocialShare_socialShare(););
);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].doNotDeleteMe, false);
,
js(invokePluginFunction(socialShare, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, false);
if(ptplugin[socialShare].jsready,
js(invokePluginFunction(socialShare, changeLanguage));
);
if(scene[get(xml.scene)].video,
progressbar_stop();
,
mul(progress_val, get(progress.progress), 100);
txtadd(progress_percent, get(progress_val),"%");
set(layer[progressbar_bar].width, get(progress_percent));
if (device.html5,
mul(xcrop, layer[progressbarwheel].frame, 64);
txtadd(layer[progressbarwheel].crop, get(xcrop), '|0|64|64');
inc(layer[progressbarwheel].frame);
if(layer[progressbarwheel].frame GE layer[progressbarwheel].frames, set(layer[progressbarwheel].frame,0));
);
delayedcall(progressbar_progresscall, 0.1,progressbar_start());
if(progress_val == 100,
progressbar_stop();
);
);
stopdelayedcall(progressbar_progresscall);
set(layer[progressbar_bg].visible, false);
set(layer[progressbar_bar].width, "0%");
if (device.html5, set(layer[progressbarwheel].visible, false););
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(););
if(plugin[ptpvrmode],
if (plugin[ptpvrmode].isavailable,
set(tour_vrdevices, true);
events.dispatch(onvravailable);
,
set(tour_vrdevices, false);
);
,
checkVrUnavailable();
);
set(tour_vrdevices, false);
events.dispatch(onvrunavailable);
events.dispatch(onsharetour);
set(tour_displayinfo, false);events.dispatch(onhidetourinfo);
set(tour_displayinfo, true); events.dispatch(onshowtourinfo);
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
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);
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);