showtooltip('hotspot');
hideTooltip();
set(ptplugin[socialShare].jsready, true);
ifnot(ptplugin[socialShare].isOpen,
set(ptplugin[socialShare].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
js(invokePluginFunction(socialShare, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[socialShare].isOpen, false);
if(ptplugin[socialShare].jsready,
js(invokePluginFunction(socialShare, changeLanguage));
);
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,
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);
);
);
);
set(delaythegyrocheck, false);
if (sceneisfull360 AND tour_firstlittleplanet, set(delaythegyrocheck, true));
ifnot(delaythegyrocheck,
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_roundedbuilt, controlBar_roundedbuildMenu(); set(controlBar_roundedbuilt, true););
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
if (controlBar_roundednbbuttons LT 6,
if (scene.count GT 1,
set(layer[controlBar_roundedbtn_prev_pano].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_prev_pano].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_prev_pano].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
set(layer[controlBar_roundedbtn_next_pano].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_next_pano].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_next_pano].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
);
,
set(layer[controlBar_roundedbtn_next_pano].disabled, true);
set(layer[controlBar_roundedbtn_prev_pano].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_home].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_home].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_home].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_home].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
set(layer[controlBar_roundedbtn_sound_off].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_sound_off].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_sound_off].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_sound_on ].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_sound_on ].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_sound_on ].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
,
set(layer[controlBar_roundedbtn_sound_off].disabled, true);
set(layer[controlBar_roundedbtn_sound_on].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
if(plugin[gyroscope],
set(controlBar_roundedDisplayGyroscopeButton, false);
if (device.tablet, set(controlBar_roundedDisplayGyroscopeButton, true););
if (device.mobile, set(controlBar_roundedDisplayGyroscopeButton, true););
if(controlBar_roundedDisplayGyroscopeButton,
set(layer[controlBar_roundedbtn_gyroscope_on ].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_gyroscope_on ].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_gyroscope_on ].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_gyroscope_off].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_gyroscope_off].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_gyroscope_off].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_gyroscope_not].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_gyroscope_not].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_gyroscope_not].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
);
);
,
set(layer[controlBar_roundedbtn_gyroscope_on].disabled, true);
set(layer[controlBar_roundedbtn_gyroscope_off].disabled, true);
set(layer[controlBar_roundedbtn_gyroscope_not].disabled, true);
);
if (controlBar_roundednbbuttons LT 6,
if (device.desktop,
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].y , get(plugin[get(btnbgname)].childy));
set(layer[controlBar_roundedbtn_ctrlmode_move_to].parent, get(btnbgname));
set(layer[controlBar_roundedbtn_ctrlmode_move_to].x , get(plugin[get(btnbgname)].childx));
set(layer[controlBar_roundedbtn_ctrlmode_move_to].y , get(plugin[get(btnbgname)].childy));
inc(controlBar_roundednbbuttons);
txtadd(btnbgname, "controlBar_roundedbtnbg", get(controlBar_roundednbbuttons));
);
,
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].disabled, true);
set(layer[controlBar_roundedbtn_ctrlmode_move_to].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);
);
controlBar_roundedshowMenuControls();
mainloadscene(get(startscene));
set(layer[controlBar_roundedbtn_sound_off].visible, false);
set(layer[controlBar_roundedbtn_sound_on].visible , false);
if (tour_soundson == false,
set(layer[controlBar_roundedbtn_sound_off].visible, false);
set(layer[controlBar_roundedbtn_sound_on].visible , true);
,
set(layer[controlBar_roundedbtn_sound_off].visible, true);
set(layer[controlBar_roundedbtn_sound_on].visible , false);
);
if (controlBar_roundedIsOpened,
controlBar_roundedShowSoundButtons();
,
controlBar_roundedHideSoundButtons();
);
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 (controlBar_roundedIsOpened,
controlBar_roundedShowVrButtons();
,
controlBar_roundedHideVrButtons();
);
,
if (controlBar_roundedIsOpened,
controlBar_roundedHideVrButtons(true);
,
controlBar_roundedHideVrButtons();
);
);
set(layer[controlBar_roundedbtn_ctrlmode_move_to].visible, false);
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].visible, false);
if (tour_controlmodemousetype == "moveto",
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].visible, true);
set(layer[controlBar_roundedbtn_ctrlmode_move_to].visible, false);
,
set(layer[controlBar_roundedbtn_ctrlmode_move_to].visible, true);
set(layer[controlBar_roundedbtn_ctrlmode_drag_to].visible, false);
);
if (device.desktop,
if (controlBar_roundedIsOpened,
controlBar_roundedShowControlModeButtons();
,
controlBar_roundedHideControlModeButtons();
);
,
controlBar_roundedHideControlModeButtons();
);
tween(layer[controlBar_roundedbtn_openfs_bg].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtn_openfs_bg].visible , false));
tween(layer[controlBar_roundedbtn_closefs_bg].alpha, 0, 0.5, easeOutQuad, set(layer[controlBar_roundedbtn_closefs_bg].visible , false));
if (device.fullscreensupport,
if(tour_fullscreen,
if(layer[controlBar_roundedbtn_openfs_bg].visible,
set(layer[controlBar_roundedbtn_openfs_bg].visible , false);
set(layer[controlBar_roundedbtn_closefs_bg].visible, true);
,
set(layer[controlBar_roundedbtn_openfs_bg].visible , false);
set(layer[controlBar_roundedbtn_closefs_bg].visible, true);
tween(layer[controlBar_roundedbtn_openfs_bg].alpha, 1, 0.5);
tween(layer[controlBar_roundedbtn_closefs_bg].alpha, 1, 0.5);
);
,
if(layer[controlBar_roundedbtn_closefs_bg].visible,
set(layer[controlBar_roundedbtn_openfs_bg].visible ,true);
set(layer[controlBar_roundedbtn_closefs_bg].visible,false);
,
set(layer[controlBar_roundedbtn_openfs_bg].visible , true);
set(layer[controlBar_roundedbtn_closefs_bg].visible, false);
tween(layer[controlBar_roundedbtn_openfs_bg].alpha, 1, 0.5);
tween(layer[controlBar_roundedbtn_closefs_bg].alpha, 1, 0.5);
);
);
,
controlBar_roundedHideFullscreenButtons();
);
if (controlBar_roundedIsOpened,
controlBar_roundedShowFullscreenButtons();
,
controlBar_roundedHideFullscreenButtons();
);
if (tour_gyroscopedevices,
set(controlBar_roundedmenugyroscopeavailable, true);
controlBar_roundedupdateGyroscopeButtons();
,
set(controlBar_roundedmenugyroscopeavailable, false);
controlBar_roundedupdateGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(controlBar_roundedmenugyroscopeenabled, %1);
controlBar_roundedupdateGyroscopeButtons();
);
set(layer[controlBar_roundedbtn_gyroscope_off].visible, false);
set(layer[controlBar_roundedbtn_gyroscope_on].visible, false);
if('%1' == 'true' AND plugin[gyroscope],
set(layer[controlBar_roundedbtn_gyroscope_not].visible, true);
,
set(layer[controlBar_roundedbtn_gyroscope_not].visible, false);
);
if (controlBar_roundedmenugyroscopeavailable,
if (controlBar_roundedmenugyroscopeenabled,
set(layer[controlBar_roundedbtn_gyroscope_off].visible, true);
set(layer[controlBar_roundedbtn_gyroscope_on].visible, false);
,
set(layer[controlBar_roundedbtn_gyroscope_off].visible, false);
set(layer[controlBar_roundedbtn_gyroscope_on].visible, true);
);
set(layer[controlBar_roundedbtn_gyroscope_not].visible, false);
,
controlBar_roundedHideGyroscopeButtons(true);
);
if (tour_gyroscopedevices,
if (controlBar_roundedIsOpened,
controlBar_roundedShowGyroscopeButtons();
,
controlBar_roundedHideGyroscopeButtons();
);
,
if (controlBar_roundedIsOpened,
controlBar_roundedHideGyroscopeButtons(true);
,
controlBar_roundedHideGyroscopeButtons();
);
);
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_home].disabled,set(layer[controlBar_roundedbtn_home].visible, false););
ifnot(layer[controlBar_roundedbtn_prev_pano].disabled,
if (scene.count GT 1,
set(layer[controlBar_roundedbtn_prev_pano].visible, false);
set(layer[controlBar_roundedbtn_next_pano].visible, false);
);
);
controlBar_roundedupdateFullscreenButtons();
ifnot(layer[controlBar_roundedbtn_share].disabled,set(layer[controlBar_roundedbtn_share].visible, false););
ifnot(layer[controlBar_roundedbtn_sound_on].disabled,controlBar_roundedupdateSoundButtons(););
ifnot(layer[controlBar_roundedbtn_gyroscope_on].disabled,controlBar_roundedupdateGyroscopeButtons(););
if(layer[controlBar_roundedbtn_enter_vr],ifnot(layer[controlBar_roundedbtn_enter_vr].disabled,controlBar_roundedupdateVrButtons();););
ifnot(layer[controlBar_roundedbtn_ctrlmode_drag_to].disabled,controlBar_roundedupdateControlModeButtons(););
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_home].disabled,set(layer[controlBar_roundedbtn_home].visible, true););
ifnot(layer[controlBar_roundedbtn_prev_pano].disabled,
if (scene.count GT 1,
set(layer[controlBar_roundedbtn_prev_pano].visible, true);
set(layer[controlBar_roundedbtn_next_pano].visible, true);
);
);
controlBar_roundedupdateFullscreenButtons();
ifnot(layer[controlBar_roundedbtn_share].disabled,set(layer[controlBar_roundedbtn_share].visible, true););
ifnot(layer[controlBar_roundedbtn_sound_on].disabled,controlBar_roundedupdateSoundButtons(););
ifnot(layer[controlBar_roundedbtn_gyroscope_on].disabled,controlBar_roundedupdateGyroscopeButtons(););
if(layer[controlBar_roundedbtn_enter_vr],ifnot(layer[controlBar_roundedbtn_enter_vr].disabled,controlBar_roundedupdateVrButtons();););
ifnot(layer[controlBar_roundedbtn_ctrlmode_drag_to].disabled,controlBar_roundedupdateControlModeButtons(););
);
if (tooltip !== null,
getmessage(tooltipmess, get(tooltip));
showTooltip('plugin', controlBar_roundedmenuTooltipStyle, bottomright);
);
if(scene[get(xml.scene)].video,
set(layer[loaderinfotextfield].visible, false);
,
if (progress.progress == 1,
delayedcall(0.5, set(layer[loaderinfotextfield].visible, false); );
,
set(layer[loaderinfotextfield].visible, true);
);
mul(progresstext, get(progress.progress),100);
roundval(progresstext);
txtadd(progresstext, get(progresstext), %);
set(layer[loaderinfotextfield].html, get(progresstext));
ifnot(progress.progress GE 1, delayedcall(0.01, loaderinfoupdate() ));
);
if(%1 == "arrow1",
set(arrow1Loaded_thumbnailsBar_theme02, true);
);
if(%1 == "arrow2",
set(arrow2Loaded_thumbnailsBar_theme02, true);
);
if(%1 == "border",
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(borderLoaded_thumbnailsBar_theme02, true);
);
);
if(%1 == "thumbnail",
inc(thumbnailsLoadedCounter_thumbnailsBar_theme02);
);
set(thumbsCount_thumbnailsBar_theme02, 0);
set(thumbsCount_thumbnailsBar_theme02, get(scene.count));
loadThumbs_thumbnailsBar_theme02();
if(firstInit_thumbnailsBar_theme02,
onLoadCompleteHandlerPartThree_thumbnailsBar_theme02();
,
onLoadCompleteHandlerPartTwo_thumbnailsBar_theme02();
);
set(imgCounter_thumbnailsBar_theme02, 3);
if(arrow1Loaded_thumbnailsBar_theme02,
dec(imgCounter_thumbnailsBar_theme02);
);
if(arrow2Loaded_thumbnailsBar_theme02,
dec(imgCounter_thumbnailsBar_theme02);
);
if(thumbsCount_thumbnailsBar_theme02 == thumbnailsLoadedCounter_thumbnailsBar_theme02,
dec(imgCounter_thumbnailsBar_theme02);
);
if(imgCounter_thumbnailsBar_theme02 LE 0,
stopdelayedcall(delayedCallOnLoadComplete_thumbnailsBar_theme02);
onLoadCompleteHandlerPartThree_thumbnailsBar_theme02();
,
delayedcall(delayedCallOnLoadComplete_thumbnailsBar_theme02, 0.2, onLoadCompleteHandlerPartTwo_thumbnailsBar_theme02());
);
resetMouseBehavior_thumbnailsBar_theme02();
highlightCurrentThumb_thumbnailsBar_theme02();
if(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent,
mul(adjustWidth_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginX), 2);
add(adjustWidth_thumbnailsBar_theme02, get(layer[thumbsScrollArea_thumbnailsBar_theme02].width));
mul(adjustHeight_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginY), 2);
add(adjustHeight_thumbnailsBar_theme02, get(layer[thumbsScrollArea_thumbnailsBar_theme02].height));
if(adjustWidth_thumbnailsBar_theme02 GT stagewidth,
set(adjustWidth_thumbnailsBar_theme02, get(stagewidth));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent, false);
,
if(adjustHeight_thumbnailsBar_theme02 GT stageheight,
set(adjustHeight_thumbnailsBar_theme02, get(stageheight));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent, false);
);
);
setSize_thumbnailsBar_theme02(get(adjustWidth_thumbnailsBar_theme02), get(adjustHeight_thumbnailsBar_theme02));
);
setupArrows_thumbnailsBar_theme02(true);
if (thumbsCounter_thumbnailsBar_theme02 LE 0,
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, false);
);
set(startResize_thumbnailsBar_theme02, true);
set(firstInit_thumbnailsBar_theme02, true);
delayedcall(0.1, onResizeCallback_thumbnailsBar_theme02(false); );
if(startResize_thumbnailsBar_theme02,
setSize_thumbnailsBar_theme02(get(layer[scrollAreaContainer_thumbnailsBar_theme02].targetWidth), get(layer[scrollAreaContainer_thumbnailsBar_theme02].targetHeight));
setupArrows_thumbnailsBar_theme02(%1);
if (thumbsCounter_thumbnailsBar_theme02 LE 0,
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, false);
);
);
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, true);
onResizeCallback_thumbnailsBar_theme02(true);
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, false);
if (tour_displaythumbnails,
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, true);
onResizeCallback_thumbnailsBar_theme02(true);
,
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, false);
);
set(layer[thumbnailsBar_thumbnailsBar_theme02].visible, false);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetX, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderWidth));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetY, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderWidth));
mul(totalOffsetX_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderWidth), 2);
mul(totalOffsetY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderWidth), 2);
if(startResize_thumbnailsBar_theme02,
sub(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth, get(totalOffsetX_thumbnailsBar_theme02));
sub(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight, get(totalOffsetY_thumbnailsBar_theme02));
);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbWidth, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbHeight, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight));
add(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth, get(totalOffsetX_thumbnailsBar_theme02));
add(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight, get(totalOffsetY_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetX, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetX));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetY, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetY));
mul(totalOffsetX_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetX), 2);
mul(totalOffsetY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetY), 2);
if(startResize_thumbnailsBar_theme02,
sub(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth, get(totalOffsetX_thumbnailsBar_theme02));
sub(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight, get(totalOffsetY_thumbnailsBar_theme02));
);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbWidth, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbHeight, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight));
add(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth, get(totalOffsetX_thumbnailsBar_theme02));
add(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight, get(totalOffsetY_thumbnailsBar_theme02));
div(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].height), 4);
set(cropX_thumbnailsBar_theme02, 0);
set(cropY_thumbnailsBar_theme02, 0);
set(cropW_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].width));
set(cropH_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropDefault, get(cropX_thumbnailsBar_theme02), '|', get(cropY_thumbnailsBar_theme02), '|', get(cropW_thumbnailsBar_theme02), '|', get(cropH_thumbnailsBar_theme02));
add(cropY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropHover, get(cropX_thumbnailsBar_theme02), '|', get(cropY_thumbnailsBar_theme02), '|', get(cropW_thumbnailsBar_theme02), '|', get(cropH_thumbnailsBar_theme02));
add(cropY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropSelected, get(cropX_thumbnailsBar_theme02), '|', get(cropY_thumbnailsBar_theme02), '|', get(cropW_thumbnailsBar_theme02), '|', get(cropH_thumbnailsBar_theme02));
add(cropY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropVisited, get(cropX_thumbnailsBar_theme02), '|', get(cropY_thumbnailsBar_theme02), '|', get(cropW_thumbnailsBar_theme02), '|', get(cropH_thumbnailsBar_theme02));
set(scaleX_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetX));
set(scaleY_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].offsetY));
sub(scaleW_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].width), get(totalOffsetX_thumbnailsBar_theme02));
sub(scaleH_thumbnailsBar_theme02, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].quarterHeight), get(totalOffsetY_thumbnailsBar_theme02));
txtadd(layer[thumbnailBorderSource_thumbnailsBar_theme02].scale9grid, get(scaleX_thumbnailsBar_theme02), '|', get(scaleY_thumbnailsBar_theme02), '|', get(scaleW_thumbnailsBar_theme02), '|', get(scaleH_thumbnailsBar_theme02));
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(imgCounter_thumbnailsBar_theme02, 1);
,
set(imgCounter_thumbnailsBar_theme02, 0);
);
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
if(borderLoaded_thumbnailsBar_theme02,
dec(imgCounter_thumbnailsBar_theme02);
);
);
if(imgCounter_thumbnailsBar_theme02 LE 0,
stopdelayedcall(delayedCallOnLoadCompleteBorder_thumbnailsBar_theme02);
loadThumbsPartTwo_thumbnailsBar_theme02();
,
delayedcall(delayedCallOnLoadCompleteBorder_thumbnailsBar_theme02, 0.2, loadThumbs_thumbnailsBar_theme02());
);
ifnot(layer[scrollAreaContainer_thumbnailsBar_theme02].ready,
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
thumbnailBorderImageInit_thumbnailsBar_theme02();
,
thumbnailBorderDrawInit_thumbnailsBar_theme02();
);
set(thumbsCounter_thumbnailsBar_theme02, 0);
for( set(i_thumbnailsBar_theme02, 0), i_thumbnailsBar_theme02 LT scene.count, inc(i_thumbnailsBar_theme02),
createThumb_thumbnailsBar_theme02(get(scene[get(i_thumbnailsBar_theme02)].name), get(scene[get(i_thumbnailsBar_theme02)].thumburl), get(i_thumbnailsBar_theme02), get(scene[get(i_thumbnailsBar_theme02)].titleid));
inc(thumbsCounter_thumbnailsBar_theme02);
);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].currentThumbsCount, get(thumbsCounter_thumbnailsBar_theme02));
setSize_thumbnailsBar_theme02(get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].width), get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].height));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].visible, true);
if (tour_displaycontrols,
showWithControlsBar_thumbnailsBar_theme02();
,
hideWithControlsBar_thumbnailsBar_theme02();
);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].ready, true);
);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].targetWidth, %1);
set(layer[scrollAreaContainer_thumbnailsBar_theme02].targetHeight, %2);
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].width, %1);
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].height, %2);
layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].updatepos();
mul(totalMarginX_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginX), 2);
mul(totalMarginY_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginY), 2);
add(totalPluginWidth_thumbnailsBar_theme02, get(totalMarginX_thumbnailsBar_theme02), get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth));
if(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].pixelwidth LT totalPluginWidth_thumbnailsBar_theme02,
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].width, get(totalPluginWidth_thumbnailsBar_theme02));
);
layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].updatepos();
sub(containerWidth_thumbnailsBar_theme02, get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].pixelwidth), get(totalMarginX_thumbnailsBar_theme02));
sub(containerHeight_thumbnailsBar_theme02, get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].pixelheight), get(totalMarginY_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].width, get(containerWidth_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].height, get(containerHeight_thumbnailsBar_theme02));
set(scrollAreaSize_thumbnailsBar_theme02, 0);
mul(totalThumbsSpacer_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].currentThumbsCount), get(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbSpacer));
sub(totalThumbsSpacer_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbSpacer));
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible, true);
mul(scrollAreaSize_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight), get(layer[scrollAreaContainer_thumbnailsBar_theme02].currentThumbsCount));
add(scrollAreaSize_thumbnailsBar_theme02, get(totalThumbsSpacer_thumbnailsBar_theme02));
set(layer[thumbsScrollArea_thumbnailsBar_theme02].width, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth));
set(layer[thumbsScrollArea_thumbnailsBar_theme02].height, get(scrollAreaSize_thumbnailsBar_theme02));
if(layer[scrollAreaContainer_thumbnailsBar_theme02].height LT layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight,
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible, false);
,
verifyThumbnailsBarVisibility_thumbnailsBar_theme02();
);
if(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].width LT 0,
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible, false);
);
if(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible,
set(boolValue_thumbnailsBar_theme02, false);
if (tour_displaythumbnails,
if (tour_displaycontrols,
set(boolValue_thumbnailsBar_theme02, true);
);
);
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible, get(boolValue_thumbnailsBar_theme02));
);
add(offsetFactor_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight), get(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbSpacer));
mul(thumbIncPos_thumbnailsBar_theme02, %3, get(offsetFactor_thumbnailsBar_theme02));
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
add(thumbIncPos_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetY));
);
mul(negativeOffsetX_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetX), -1);
mul(negativeOffsetY_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetY), -1);
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '_thumbnailsBar_theme02');
addlayer(get(thumbName));
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
addlayer(get(thumbBorderName));
ifnot(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(layer[get(thumbBorderName)].type, container);
set(layer[get(thumbBorderName)].parent, thumbsScrollArea_thumbnailsBar_theme02);
);
set(layer[get(thumbName)].onloaded, loadedImages_thumbnailsBar_theme02("thumbnail"););
set(layer[get(thumbName)].url, %2);
set(layer[get(thumbName)].keep, true);
set(layer[get(thumbName)].width, get(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbWidth));
set(layer[get(thumbName)].height, get(layer[scrollAreaContainer_thumbnailsBar_theme02].thumbHeight));
set(layer[get(thumbName)].align, topleft);
set(layer[get(thumbName)].x, get(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetX));
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(layer[get(thumbName)].parent, thumbsScrollArea_thumbnailsBar_theme02);
set(layer[get(thumbName)].y, get(thumbIncPos_thumbnailsBar_theme02));
,
set(layer[get(thumbName)].parent, get(thumbBorderName));
set(layer[get(thumbName)].y, get(layer[scrollAreaContainer_thumbnailsBar_theme02].offsetY));
set(layer[get(thumbName)].onclick, resetMouseBehavior_thumbnailsBar_theme02(); mainloadscene(%1); delayedcall(0.1,highlightThumb_thumbnailsBar_theme02(%1)));
);
set(layer[get(thumbBorderName)].keep, true);
set(layer[get(thumbBorderName)].width, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemWidth));
set(layer[get(thumbBorderName)].height, get(layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight));
set(layer[get(thumbBorderName)].align, topleft);
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(layer[get(thumbBorderName)].url, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].url));
set(layer[get(thumbBorderName)].scale9grid, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].scale9grid));
set(layer[get(thumbBorderName)].parent, get(thumbName));
set(layer[get(thumbBorderName)].x, get(negativeOffsetX_thumbnailsBar_theme02));
set(layer[get(thumbBorderName)].y, get(negativeOffsetY_thumbnailsBar_theme02));
set(layer[get(thumbBorderName)].onclick, resetMouseBehavior_thumbnailsBar_theme02(); mainloadscene(%1); delayedcall(0.1,highlightThumb_thumbnailsBar_theme02(%1)));
,
set(layer[get(thumbBorderName)].y, get(thumbIncPos_thumbnailsBar_theme02));
);
setupMouseBehavior_thumbnailsBar_theme02(%1, %4);
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '_thumbnailsBar_theme02');
removelayer(get(thumbName));
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
removelayer(get(thumbBorderName));
if(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent,
hideArrows_thumbnailsBar_theme02();
,
ifnot(device.touchdevice,
if(layer[scrollAreaContainer_thumbnailsBar_theme02].height LT layer[thumbsScrollArea_thumbnailsBar_theme02].height,
showArrows_thumbnailsBar_theme02();
,
hideArrows_thumbnailsBar_theme02();
);
,
hideArrows_thumbnailsBar_theme02();
);
);
if(%1,
scrollToCurrentThumb_thumbnailsBar_theme02();
);
if(layer[scrollAreaContainer_thumbnailsBar_theme02].height LT layer[scrollAreaContainer_thumbnailsBar_theme02].itemHeight,
set(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].visible, false);
);
set(layer[scrollPrevArrow_thumbnailsBar_theme02].visible, true);
set(layer[scrollNextArrow_thumbnailsBar_theme02].visible, true);
add(totalArrowSize_thumbnailsBar_theme02, get(layer[scrollPrevArrow_thumbnailsBar_theme02].height), get(layer[scrollNextArrow_thumbnailsBar_theme02].height));
sub(scrollAreaContainerSize_thumbnailsBar_theme02, get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].pixelheight), get(totalArrowSize_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].height, get(scrollAreaContainerSize_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].y, get(layer[scrollPrevArrow_thumbnailsBar_theme02].height));
set(layer[scrollPrevArrow_thumbnailsBar_theme02].onhover, scrollPrev_thumbnailsBar_theme02(););
set(layer[scrollNextArrow_thumbnailsBar_theme02].onhover, scrollNext_thumbnailsBar_theme02(););
set(layer[scrollPrevArrow_thumbnailsBar_theme02].onclick, scrollPrev_thumbnailsBar_theme02(get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedAcceleration)););
set(layer[scrollNextArrow_thumbnailsBar_theme02].onclick, scrollNext_thumbnailsBar_theme02(get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedAcceleration)););
set(layer[scrollPrevArrow_thumbnailsBar_theme02].onout, set(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed, get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedInit)););
set(layer[scrollNextArrow_thumbnailsBar_theme02].onout, set(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed, get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedInit)););
set(layer[scrollPrevArrow_thumbnailsBar_theme02].visible, false);
set(layer[scrollNextArrow_thumbnailsBar_theme02].visible, false);
mul(totalMargin_thumbnailsBar_theme02, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginY), 2);
sub(scrollAreaContainerSize_thumbnailsBar_theme02, get(layer[get(layer[scrollAreaContainer_thumbnailsBar_theme02].parent)].pixelheight), get(totalMargin_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].height, get(scrollAreaContainerSize_thumbnailsBar_theme02));
set(layer[scrollAreaContainer_thumbnailsBar_theme02].y, get(layer[scrollAreaContainer_thumbnailsBar_theme02].marginY));
if(%1,
inc(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed, %1);
);
layer[thumbsScrollArea_thumbnailsBar_theme02].stopscrolling();
set(scrollLimit_thumbnailsBar_theme02, 0);
sub(scrollLimit_thumbnailsBar_theme02, get(layer[thumbsScrollArea_thumbnailsBar_theme02].height), get(layer[scrollAreaContainer_thumbnailsBar_theme02].height));
div(scrollLimit_thumbnailsBar_theme02, 2);
add(layer[thumbsScrollArea_thumbnailsBar_theme02].y, get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed));
if(layer[thumbsScrollArea_thumbnailsBar_theme02].y GE scrollLimit_thumbnailsBar_theme02,
set(layer[thumbsScrollArea_thumbnailsBar_theme02].y, get(scrollLimit_thumbnailsBar_theme02));
);
if(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed LT layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedMax,
inc(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed);
);
if(%1,
inc(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed, %1);
);
layer[thumbsScrollArea_thumbnailsBar_theme02].stopscrolling();
sub(scrollLimit_thumbnailsBar_theme02, get(layer[thumbsScrollArea_thumbnailsBar_theme02].height), get(layer[scrollAreaContainer_thumbnailsBar_theme02].height));
div(scrollLimit_thumbnailsBar_theme02, 2);
mul(scrollLimit_thumbnailsBar_theme02, -1);
sub(layer[thumbsScrollArea_thumbnailsBar_theme02].y, get(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed));
if(layer[thumbsScrollArea_thumbnailsBar_theme02].y LE scrollLimit_thumbnailsBar_theme02,
set(layer[thumbsScrollArea_thumbnailsBar_theme02].y, get(scrollLimit_thumbnailsBar_theme02));
);
if(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed LT layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeedMax,
inc(layer[scrollAreaContainer_thumbnailsBar_theme02].scrollSpeed);
);
for( set(j_thumbnailsBar_theme02, 0), j_thumbnailsBar_theme02 LT scene.count, inc(j_thumbnailsBar_theme02),
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, get(scene[get(j_thumbnailsBar_theme02)].name));
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
setupMouseBehavior_thumbnailsBar_theme02(get(scene[get(j_thumbnailsBar_theme02)].name), get(scene[get(j_thumbnailsBar_theme02)].titleid));
);
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '_thumbnailsBar_theme02');
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(layer[get(thumbBorderName)].crop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropDefault));
set(layer[get(thumbBorderName)].onovercrop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropHover));
set(layer[get(thumbBorderName)].ondowncrop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropHover));
set(layer[get(thumbBorderName)].tooltip, %2);
set(layer[get(thumbBorderName)].onhover, showTooltip('plugin', tooltipStyle_thumbnailsBar_theme02));
set(layer[get(thumbBorderName)].onout, hideTooltip());
,
set(layer[get(thumbBorderName)].bgcolor, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderColorDefault));
set(layer[get(thumbBorderName)].bgalpha, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderAlphaDefault));
set(layer[get(thumbName)].tooltip, %2);
set(layer[get(thumbName)].onhover, showTooltip('plugin', tooltipStyle_thumbnailsBar_theme02));
set(layer[get(thumbName)].onover,
set(layer[get(parent)].bgcolor, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderColorHover));
set(layer[get(parent)].bgalpha, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderAlphaHover));
);
set(layer[get(thumbName)].onout,
set(layer[get(parent)].bgcolor, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderColorDefault));
set(layer[get(parent)].bgalpha, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderAlphaDefault));
hideTooltip();
);
);
delayedcall(0.1,highlightThumb_thumbnailsBar_theme02(get(xml.scene)));
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
set(layer[get(thumbBorderName)].crop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropSelected));
set(layer[get(thumbBorderName)].onovercrop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropSelected));
set(layer[get(thumbBorderName)].ondowncrop, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].cropSelected));
,
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '_thumbnailsBar_theme02');
set(layer[get(thumbBorderName)].bgcolor, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderColorSelected));
set(layer[get(thumbBorderName)].bgalpha, get(layer[thumbnailBorderSource_thumbnailsBar_theme02].borderAlphaSelected));
set(layer[get(thumbName)].onover, "");
set(layer[get(thumbName)].onout, hideTooltip(););
);
scrollToThumb_thumbnailsBar_theme02(%1);
scrollToThumb_thumbnailsBar_theme02(get(xml.scene));
set(thumbName, 'thumb_');
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbName, %1);
txtadd(thumbName, '_thumbnailsBar_theme02');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '_thumbnailsBar_theme02');
set(posY_thumbnailsBar_theme02, 0);
if(layer[thumbnailBorderSource_thumbnailsBar_theme02].url,
div(halfThumbHeight_thumbnailsBar_theme02, get(layer[get(thumbName)].height), 2);
ifnot(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent,
add(posY_thumbnailsBar_theme02, get(layer[get(thumbName)].y), get(halfThumbHeight_thumbnailsBar_theme02));
);
if(layer[thumbsScrollArea_thumbnailsBar_theme02].scrolltocenter,
layer[thumbsScrollArea_thumbnailsBar_theme02].scrolltocenter(0, get(posY_thumbnailsBar_theme02));
);
,
div(halfThumbHeight_thumbnailsBar_theme02, get(layer[get(thumbBorderName)].height), 2);
ifnot(layer[scrollAreaContainer_thumbnailsBar_theme02].adjustToContent,
add(posY_thumbnailsBar_theme02, get(layer[get(thumbBorderName)].y), get(halfThumbHeight_thumbnailsBar_theme02));
);
if(layer[thumbsScrollArea_thumbnailsBar_theme02].scrolltocenter,
layer[thumbsScrollArea_thumbnailsBar_theme02].scrolltocenter(0, get(posY_thumbnailsBar_theme02));
);
);
set(layer[title].visible, false);
set(layer[title].visible, true );
updatetitle();
getmessage(layer[title].html, get(scene[get(xml.scene)].titleid));
escape(layer[title].html);
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);
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
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("byr_tapping_solo.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 OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, get(volume));
,
ifnot(device.ios,
js(kpanotour.Sounds.startVideosSounds(get(volume)));
);
);
,
if(device.flash OR (device.webgl AND !device.ios),
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 OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
);
);
);
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(true);
changeGyroscopeState(false);
events.dispatch(onsharetour);
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);