hidepanospotsaction();
closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
tweennormalview();
showpanospotsaction();
if(plugin[data].firstPanoHasBeenPlayed==false,
setlittleplanet();
wait(load);
set(plugin[data].firstPanoHasBeenPlayed,true);
if (plugin[data].introImageHasBeenPlayed == true, startLittlePlanetIntroEffect(););
);
if(plugin[data].firstPanoHasBeenPlayed == true,
delayedcall(1.0,
fromlittleplanetintrotonormalview();
);
);
set(view.stereographic, true);
set(view.fisheye , 1.0);
set(view.limitview , lookat);
set(view.vlookatmin , -90);
set(view.vlookatmax , 90);
set(view.fov , 150);
set(view.fovmax , 150);
set(view.hlookat , 0);
set(view.vlookat , 90);
set(display.flash10 , off);
set(display.details , 14);
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
startLittlePlanetIntroEffect();
if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
set(plugin[data].introImageHasBeenPlayed,true););
set(plugin[slide].onclick,slide_action_out);
set(plugin[strap].onclick,slide_action_out);
set(plugin[strapArrow].rotate,0);
tween(plugin[thumbArray].x, 280, 1, easeOutQuint);
thumbsResizeEventHandler();
set(plugin[slide].onclick,slide_action_in);
set(plugin[strap].onclick,slide_action_in);
set(plugin[strapArrow].rotate,180);
tween(plugin[thumbArray].x, 0, 1, easeOutQuint);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);displayThumbsScrolls(false);,
if (plugin[slide].onclick == slide_action_out, displayThumbsScrolls(true););
);
set(plugin[helpScreen].visible,true);
set(plugin[thumb_build8].onclick,closeHelp();)
set(plugin[helpScreen].visible,false);
set(plugin[thumb_build8].onclick,displayHelp();)
inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
if(plugin[thumbnailsData].nbThumbnailsLoaded GE 2,
setThumbnailsVisible();
);
set(plugin[thumb_build0].visible, true);
set(plugin[thumb_build1].visible, true);
set(plugin[thumb_build2].visible, true);
set(plugin[thumb_build3].visible, true);
set(plugin[thumb_build4].visible, true);
set(plugin[thumb_build5].visible, true);
set(plugin[thumb_build6].visible, true);
set(plugin[thumb_build8].visible, true);
set(plugin[thumb_build9].visible, true);
set(plugin[thumb_build10].visible, true);
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);