showtooltip('hotspot');
pauseautorotation(forcehotspot);
hideTooltip();
resumeautorotation(forcehotspot);
if(plugin[gyroscope],
if(scene[get(xml.scene)].full360,
set(sceneisfull360, false);
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
if (sceneisfull360,
set(plugin[gyroscope].camroll, true);
,
set(plugin[gyroscope].camroll, false);
);
,
set(plugin[gyroscope].camroll, false);
);
);
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
if(%1,
set(plugin[gyroscope].activated,true);
,
set(plugin[gyroscope].activated,false);
);
if (%1 != plugin[gyroscope].enabled,
if(plugin[gyroscope].activated,
switch(plugin[gyroscope].enabled);
,
set(plugin[gyroscope].enabled, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
);
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
ifnot(tour_firstlittleplanet,
switch(plugin[gyroscope].enabled);
set(plugin[gyroscope].activated,true);
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
,
delayedcall(1, checkGyroAvailability(););
);
,
set(tour_gyroscopedevices, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
checkGyroUnavailable();
);
set(plugin[gyroscope].activated, false);
set(plugin[gyroscope].enabled, false);
set(tour_gyroscopedevices, false);
events.dispatch(ongyroscopeunavailable);
ifnot (controlBar_ibarbuilt, controlBar_ibuildMenu(); set(controlBar_ibarbuilt, true););
hideTooltip();lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));
if(scene[get(xml.scene)].video,
plugin[get(videointerface_video)].seek(0);
ifnot(plugin[get(videointerface_video)].ispaused,
plugin[get(videointerface_video)].play();
);
);
set(controlBar_iIsOpened, false);
set(layer[controlBar_ibtn_hidecontrols].visible, false);
set(layer[controlBar_ibtn_showcontrols].visible, true);
set(layer[controlBar_ibtn_home].visible, false);
if (device.desktop,
set(layer[controlBar_ibtn_in].visible, false);
set(layer[controlBar_ibtn_out].visible, false);
);
if (device.desktop,
set(layer[controlBar_ibtn_up].visible, false);
set(layer[controlBar_ibtn_down].visible, false);
);
if (device.desktop,
set(layer[controlBar_ibtn_left].visible, false);
set(layer[controlBar_ibtn_right].visible, false);
);
controlBar_iupdateFullscreenButtons();
controlBar_iupdateHelpButtons();
controlBar_iupdateSoundButtons();
set(layer[controlBar_i_menu_bg].width, get(controlBar_ibackgroundwidthwhenclosed));
set(layer[controlBar_i_menu_bg].visible, true);
set(controlBar_iIsOpened, true);
set(layer[controlBar_ibtn_hidecontrols].visible, true);
set(layer[controlBar_ibtn_showcontrols].visible, false);
set(layer[controlBar_i_menu_bg].visible, true);
set(layer[controlBar_ibtn_home].visible, true);
if (device.desktop,
set(layer[controlBar_ibtn_in].visible, true);
set(layer[controlBar_ibtn_out].visible, true);
);
if (device.desktop,
set(layer[controlBar_ibtn_up].visible, true);
set(layer[controlBar_ibtn_down].visible, true);
);
if (device.desktop,
set(layer[controlBar_ibtn_left].visible, true);
set(layer[controlBar_ibtn_right].visible, true);
);
controlBar_iupdateFullscreenButtons();
controlBar_iupdateHelpButtons();
controlBar_iupdateSoundButtons();
set(layer[controlBar_i_menu_bg].width, get(controlBar_ibackgroundwidthwhenopened));
if (device.desktop,
set(layer[controlBar_ihelpScreenFg].displayed,true);
set(layer[controlBar_ihelpScreenBg].visible,true);
set(layer[controlBar_ihelpScreenFg].visible,true);
tween(layer[controlBar_ihelpScreenFg].rotate,0, 1);
tween(layer[controlBar_ihelpScreenFg].x,0, 1);
tween(layer[controlBar_ihelpScreenBg].rotate,0, 1);
tween(layer[controlBar_ihelpScreenBg].x,0, 1);
controlBar_iupdateHelpButtons();
);
if (device.desktop,
set(layer[controlBar_ihelpScreenFg].displayed,false);
tween(layer[controlBar_ihelpScreenFg].rotate, 90, 1, easeOutQuad, set(layer[controlBar_ihelpScreenFg].visible,false););
tween(layer[controlBar_ihelpScreenFg].x, -100%, 1);
tween(layer[controlBar_ihelpScreenBg].rotate, -90, 1, easeOutQuad, set(layer[controlBar_ihelpScreenBg].visible,false););
tween(layer[controlBar_ihelpScreenBg].x, 100%, 1);
controlBar_iupdateHelpButtons();
);
set(layer[controlBar_ibtn_display_help].visible, false);
set(layer[controlBar_ibtn_close_help].visible, false);
if (layer[controlBar_ihelpScreenFg].displayed,
set(layer[controlBar_ibtn_close_help].visible, true);
set(layer[controlBar_ibtn_display_help].visible, false);
,
set(layer[controlBar_ibtn_display_help].visible, true);
set(layer[controlBar_ibtn_close_help].visible, false);
);
if (device.desktop,
if (controlBar_iIsOpened,
controlBar_iShowHelpButtons();
,
controlBar_iHideHelpButtons();
);
,
controlBar_iHideHelpButtons();
);
set(layer[controlBar_ibtn_openfs].visible , false);
set(layer[controlBar_ibtn_closefs].visible, false);
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[controlBar_ibtn_openfs].visible , false);
set(layer[controlBar_ibtn_closefs].visible, true);
,
set(layer[controlBar_ibtn_openfs].visible ,true);
set(layer[controlBar_ibtn_closefs].visible,false);
);
,
controlBar_iHideFullscreenButtons();
);
if (controlBar_iIsOpened,
controlBar_iShowFullscreenButtons();
,
controlBar_iHideFullscreenButtons();
);
set(layer[controlBar_ibtn_sound_off].visible, false);
set(layer[controlBar_ibtn_sound_on].visible , false);
if (tour_soundson == false,
set(layer[controlBar_ibtn_sound_off].visible, false);
set(layer[controlBar_ibtn_sound_on].visible , true);
,
set(layer[controlBar_ibtn_sound_off].visible, true);
set(layer[controlBar_ibtn_sound_on].visible , false);
);
if (controlBar_iIsOpened,
controlBar_iShowSoundButtons();
,
controlBar_iHideSoundButtons();
);
set(controlBar_ibutton_pos, 0);
set(controlBar_ibackgroundwidthwhenclosed, 40);
set(layer[controlBar_ibtn_hidecontrols].x, get(controlBar_ibutton_pos));
set(layer[controlBar_ibtn_showcontrols].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
if (device.desktop,
set(layer[controlBar_ibtn_display_help].x, get(controlBar_ibutton_pos));
set(layer[controlBar_ibtn_close_help].x , get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
);
if (device.fullscreensupport,
set(layer[controlBar_ibtn_openfs].x , get(controlBar_ibutton_pos));
set(layer[controlBar_ibtn_closefs].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
);
set(layer[controlBar_ibtn_sound_on].x , get(controlBar_ibutton_pos));
set(layer[controlBar_ibtn_sound_off].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
set(layer[controlBar_ibtn_home].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
if (device.desktop,
set(layer[controlBar_ibtn_right].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
set(layer[controlBar_ibtn_left].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
);
if (device.desktop,
set(layer[controlBar_ibtn_down].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
set(layer[controlBar_ibtn_up].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
);
if (device.desktop,
set(layer[controlBar_ibtn_out].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
set(layer[controlBar_ibtn_in].x, get(controlBar_ibutton_pos));
inc(controlBar_ibutton_pos, 45);
);
dec(controlBar_ibutton_pos, 5);
set(controlBar_ibackgroundwidthwhenopened, get(controlBar_ibutton_pos));
set(layer[controlBar_i_menu_bg].width, get(controlBar_ibackgroundwidthwhenopened));
controlBar_ishowMenuControls();
set(layer[header].visible, false);
set(layer[header].visible, true);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
set(ptplugin[panoramaMenu].jsready, true);
ifnot(ptplugin[panoramaMenu].isOpen,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].isOpen, true);
set(ptplugin[panoramaMenu].displayed, true);
js(openKolorMenu(panoramaMenu));
,
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].displayed, true);
js(invokePluginFunction(panoramaMenu, showKolorMenu));
,
delayedcall(delay_panoramaMenu, 0.1, showKolorMenu_panoramaMenu(););
);
);
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].displayed, false);
js(invokePluginFunction(panoramaMenu, hideKolorMenu));
,
delayedcall(delay_panoramaMenu, 0.1, hideKolorMenu_panoramaMenu(););
);
js(invokePluginFunction(panoramaMenu, changeSelectedItem, get(xml.scene)));
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
js(invokePluginFunction(panoramaMenu, changeLanguage));
,
delayedcall(delay_panoramaMenu, 0.1, changeLanguage_panoramaMenu(););
);
set(ptplugin[gallery].jsready, true);
ifnot(ptplugin[gallery].isOpen,
set(ptplugin[gallery].isOpen, true);
set(ptplugin[gallery].doNotDeleteMe, false);
set(gallery_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
,
if(%1 !== null AND %1 != gallery_boxurl,
closeKolorBox_gallery();
delayedcall(0.3,showGallery_gallery(%1););
);
);
js(invokePluginFunction(gallery, toggleKolorBox, %1));
js(invokePluginFunction(gallery, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery].isOpen, false);
if(ptplugin[gallery].jsready,
js(invokePluginFunction(gallery, changeLanguage));
,
delayedcall(delay_gallery, 0.1, changeLanguage_gallery(););
);
set(layer[coloredarea].visible, false);
set(layer[coloredarea].visible, true);
set(layer[logo].visible, false);
set(layer[logo].visible, true);
layer[panoramacombobox].removeAll();
set(layer[panoramacombobox].itemcount, 0);
panoramacomboboxAddItem(pano63_title, pano63, pano63, false);
panoramacomboboxAddItem(pano60_title, pano60, pano60, false);
panoramacomboboxAddItem(pano486_title, pano486, pano486, false);
panoramacomboboxAddItem(pano13_title, pano13, pano13, false);
panoramacomboboxAddItem(pano5240_title, pano5240, pano5240, false);
panoramacomboboxAddItem(pano4868_title, pano4868, pano4868, false);
panoramacomboboxAddItem(pano5436_title, pano5436, pano5436, false);
panoramacomboboxAddItem(pano54_title, pano54, pano54, false);
panoramacomboboxAddItem(pano4922_title, pano4922, pano4922, false);
panoramacomboboxAddItem(pano204_title, pano204, pano204, false);
panoramacomboboxAddItem(pano4927_title, pano4927, pano4927, false);
panoramacomboboxAddItem(pano4925_title, pano4925, pano4925, false);
panoramacomboboxAddItem(pano117_title, pano117, pano117, false);
panoramacomboboxAddItem(pano5044_title, pano5044, pano5044, false);
panoramacomboboxAddItem(pano5403_title, pano5403, pano5403, false);
panoramacomboboxAddItem(pano5402_title, pano5402, pano5402, false);
panoramacomboboxAddItem(pano5404_title, pano5404, pano5404, false);
panoramacomboboxAddItem(pano5405_title, pano5405, pano5405, false);
panoramacomboboxAddItem(pano5618_title, pano5618, pano5618, false);
panoramacomboboxAddItem(pano5620_title, pano5620, pano5620, false);
panoramacomboboxAddItem(pano5619_title, pano5619, pano5619, false);
panoramacomboboxAddItem(pano5617_title, pano5617, pano5617, false);
set(layer[panoramacombobox].isLoaded, true);
if(layer[panoramacombobox].isStarted,
panoramacomboboxShow();
);
getmessage(caption, %1);
indexoftxt(found, get(caption), '&');
if(found GE 0,
subtxt(part1, get(caption), 0, get(found));
add(found, 1);
subtxt(part2, get(caption), get(found), get(caption.length));
txtadd(caption, get(part1), '&', get(part2));
);
if(%4,
txtadd(title, " ", get(caption));
,
set(title, get(caption));
);
layer[panoramacombobox].addIdItem(%2, get(title), mainloadscene(%3));
inc(layer[panoramacombobox].itemcount);
layer[panoramacombobox].closeList();
layer[panoramacombobox].removeAll();
set(layer[panoramacombobox].itemcount, 0);
panoramacomboboxAddItem(pano63_title, pano63, pano63, false);
panoramacomboboxAddItem(pano60_title, pano60, pano60, false);
panoramacomboboxAddItem(pano486_title, pano486, pano486, false);
panoramacomboboxAddItem(pano13_title, pano13, pano13, false);
panoramacomboboxAddItem(pano5240_title, pano5240, pano5240, false);
panoramacomboboxAddItem(pano4868_title, pano4868, pano4868, false);
panoramacomboboxAddItem(pano5436_title, pano5436, pano5436, false);
panoramacomboboxAddItem(pano54_title, pano54, pano54, false);
panoramacomboboxAddItem(pano4922_title, pano4922, pano4922, false);
panoramacomboboxAddItem(pano204_title, pano204, pano204, false);
panoramacomboboxAddItem(pano4927_title, pano4927, pano4927, false);
panoramacomboboxAddItem(pano4925_title, pano4925, pano4925, false);
panoramacomboboxAddItem(pano117_title, pano117, pano117, false);
panoramacomboboxAddItem(pano5044_title, pano5044, pano5044, false);
panoramacomboboxAddItem(pano5403_title, pano5403, pano5403, false);
panoramacomboboxAddItem(pano5402_title, pano5402, pano5402, false);
panoramacomboboxAddItem(pano5404_title, pano5404, pano5404, false);
panoramacomboboxAddItem(pano5405_title, pano5405, pano5405, false);
panoramacomboboxAddItem(pano5618_title, pano5618, pano5618, false);
panoramacomboboxAddItem(pano5620_title, pano5620, pano5620, false);
panoramacomboboxAddItem(pano5619_title, pano5619, pano5619, false);
panoramacomboboxAddItem(pano5617_title, pano5617, pano5617, false);
panoramacomboboxUpdateList();
set(layer[panoramacombobox].visible, false);
if(layer[panoramacombobox].isLoaded,
if (layer[panoramacombobox].itemcount GT 0,
set(layer[panoramacombobox].visible, true);
,
set(layer[panoramacombobox].visible, false);
);
,
set(layer[panoramacombobox].visible, false);
);
if(layer[panoramacombobox].isLoaded,
panoramacomboboxUpdateList();
,
delayedcall(0.2, panoramacomboboxOnPanorama);
);
set(itemtoselect, get(scene[get(xml.scene)].name));
layer[panoramacombobox].selectIdItem(get(itemtoselect));
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());
);
openurl(https://res.travlynx.com/bbe/page1.aspx?pcode=BLTBL,_self);
set(layer[button1].visible, false);
if(tour_displaycontrols,set(layer[button1].visible, true);,hidebutton1(););
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(););
ifnot(plugin[soundinterface].volumeinitialized,
div(plugin[soundinterface].volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volumeinitialized,true);
);
set(really_play_sound, true);
if (tour_current_played_sound,
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
stopsound(%1);
set(really_play_sound, false);
if(%4,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if (really_play_sound,
if (tour_current_played_sound,
stopsound(get(tour_current_played_sound));
ifnot(%4,
if(tour_current_played_sound_pausesound,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if(%4,
set(tour_current_played_sound_pausesound, true);
pauseTourSoundsActions(true,false,true,true,true);
);
set(tour_current_played_sound, %1);
if(tour_current_played_video,
set(tour_current_played_sound_state, 2);
,
set(tour_current_played_sound_state, 1);
);
set(tour_current_played_sound_paused, false);
if (%3,
if (device.flash,
div(volume, tour_soundsvolume, 100);
if(%9 != null,
playsound3D(%1,%2,%5,%6,%7,get(volume),%8,stopsound3Dwhenpossible(%1,%4));
,
playsound3D(%1,%2,%5,%6,%7,get(volume),%8);
);
,
if(%9 != null,
playsound(%1,%2,%8,stopsound3Dwhenpossible(%1,%4));
,
playsound(%1,%2,%8);
);
);
,
if(%6 != null,
playsound(%1,%2,%5,stopsound3Dwhenpossible(%1,%4));
,
playsound(%1,%2,%5);
);
);
ifnot(tour_soundson,
set(tour_current_played_sound_paused, true);
pausesound(%1);
);
);
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
ifnot(device.safari,
stopsound(%1);
);
if(%2,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
if(playsound,
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound,
if (plugin[soundinterface].backgroundsound != scene[get(xml.scene)].backgroundsound,
copy(plugin[soundinterface].backgroundsound, scene[get(xml.scene)].backgroundsound);
copy(plugin[soundinterface].backgroundsoundloops, scene[get(xml.scene)].backgroundsoundloops);
if (tour_soundson,
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
if(plugin[soundinterface].backgroundsoundloops GT 0,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
,
set(plugin[soundinterface].bgsound, false);
);
,
if (tour_soundson,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
,
set(plugin[soundinterface].bgsound, false);
);
);
);
);
,
delayedcall(0.2, playbackgroundsound());
);
if (plugin[soundinterface].backgroundsound,
if (plugin[soundinterface].backgroundsoundloops GT 0,
set(plugin[soundinterface].backgroundsoundloops, 0);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, true);
);
);
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound != scene[%1].backgroundsound,
if(plugin[soundinterface].backgroundsound,
stopsound(bgsoundname);
);
set(plugin[soundinterface].backgroundsound, "");
set(plugin[soundinterface].backgroundsoundloops, 0);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
);
);
if(plugin[soundinterface].backgroundsound,
if (plugin[soundinterface].bgsound,
if(plugin[soundinterface].bgsoundpaused == false AND plugin[soundinterface].bgsoundloopended == false,
pausesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, true);
);
);
);
set(bgSoundOnResume, true);
set(forceBgSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound AND tour_current_played_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound AND tour_current_played_web_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(tour_current_played_sound_pausesound AND tour_current_played_sound,
set(bgSoundOnResume, false);
);
ifnot(plugin[soundinterface].backgroundsound AND scene[get(xml.scene)].backgroundsound,
set(bgSoundOnResume, false);
);
if(videospots_playing GT 0,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
);
if(bgSoundOnResume,
if (plugin[soundinterface].backgroundsound,
if (tour_soundson,
if (plugin[soundinterface].bgsound AND plugin[soundinterface].bgsoundloopended == false,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
,
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
if(plugin[soundinterface].backgroundsoundloops GT 0,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
);
);
);
,
if(forceBgSoundOnResume,
playbackgroundsound();
);
);
preloadsound("abrighterday.mp3");
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, playpanolocalsounds();););
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, stoppanolocalsounds();););
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds,
set(kill3dSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound,
if(tour_current_played_video,
set(kill3dSoundOnResume, false);
);););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound,
if(tour_current_played_web_video,
set(kill3dSoundOnResume, false);
);););
if(tour_current_played_sound_pausesound,
if(tour_current_played_sound,
set(kill3dSoundOnResume, false);
););
if(kill3dSoundOnResume,
resumepanolocalsounds();
);
););
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
set(tour_soundson, true);events.dispatch(playtoursoundsevent);
resumeTourSoundsActions(true,true,true,true,true);
set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
pauseTourSoundsActions(true,true,true,true,true);
set(tour_soundsvolume, %1);events.dispatch(changetoursoundsevent);
div(volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volume, get(volume));
set3DLocalSoundsVolume();
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
play3DLocalSounds();
);
);
);
if(%2,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
if(%1,
stop3DLocalSounds();
);
if(%2,
stopSoundActionsSounds();
);
if(%3,
stopVideoActionsSounds();
);
if(%4,
pausebackgroundsound();
);
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resume3DLocalSounds();
);
);
);
if(%2,
resumeSoundActionsSounds();
);
if(%3,
resumeVideoActionsSounds();
);
if(%4,
if(%5,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
,
pausebackgroundsound();
);
);
if(%1,
pause3DLocalSounds();
);
if(%2,
pauseSoundActionsSounds();
);
if(%3,
pauseVideoActionsSounds();
);
if(%4,
if(%5,
pausebackgroundsound();
,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
);
if (tour_current_played_sound,
delete(tour_current_played_sound_paused);
stopsound(get(tour_current_played_sound));
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
);
if(tour_current_played_video,
if(layer[displayedStandardVideo],
layer[displayedStandardVideo].stop();
removelayer(displayedStandardVideo);
if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
delete(tour_current_played_video);
set(tour_current_played_video_state, 0);
);
);
if(tour_current_played_web_video,
displayWebVideoObjectClose();
);
if (tour_current_played_sound,
set(resumeSoundActionsVerification, true);
if(tour_current_played_video,
if(tour_current_played_sound_state LT tour_current_played_video_state,
set(resumeSoundActionsVerification, false);
);
);
if(resumeSoundActionsVerification,
if (tour_soundson,
if(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, false);
resumesound(get(tour_current_played_sound));
);
);
);
);
if(tour_current_played_video,
set(resumeVideoActionsVerification, true);
if(tour_current_played_sound,
if(tour_current_played_video_state LT tour_current_played_sound_state,
set(resumeVideoActionsVerification, false);
);
);
if(resumeVideoActionsVerification,
if (tour_soundson,
div(volume, tour_soundsvolume, 100);
if(device.flash,
set(layer[displayedStandardVideo].volume, get(volume));
,
ifnot(device.ios,
js(kpanotour.Sounds.startVideosSounds(get(volume)));
);
);
,
if(device.flash,
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
);
);
);
);
);
if (tour_current_played_sound,
ifnot(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, true);
pausesound(get(tour_current_played_sound));
);
);
if(tour_current_played_video,
if(device.flash,
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
);
);
);
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);