Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "Pixelschupse" (Mar 3rd 2012, 5:06pm)
|
|
Source code |
1 2 3 4 |
set(intro, 0);
if (intro EQ 0,
playIntro();
);
|

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
<!-- build thumbnails when there is more than one scene (remove the line below to remove the thumbnails) -->
if(scene.count GT 1, buildthumbs(); );
</action>
<!-- thumbnail actions begin (remove the 'buildthumbs()' call in the onstart event to remove the thumbs) -->
<action name="buildthumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,'thumb_',get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, leftbottom);
set(plugin[get(thumbname)].width, 10);
set(plugin[get(thumbname)].height, 10);
mul(plugin[get(thumbname)].x, i,1);
mul(plugin[get(thumbname)].y, i,1);
add(plugin[get(thumbname)].x, 5);
add(plugin[get(thumbname)].y, 5);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect, glow(0xCC0066,1.0,2,10000));
set(plugin[get(thumbname)].jsborder, '1px solid #CC0066');
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, openthumbs() );
inc(i);
buildthumbs(NEXT);
);
</action>
<action name="openthumb">
if(%2 != NEXT,
set(pos,0);
copy(curpos, plugin[%1].thumbpos);
set(xdst, 5);
set(ydst, 5);
);
if(pos LT curpos,
inc(pos);
inc(ydst,90);
sub(ymax, stageheight, 220);
if(ydst GT ymax, inc(xdst,85);set(ydst,5); );
openthumb(%1,NEXT);
,
add(xdst,100);
add(ydst,100);
tween(plugin[%1].x, get(xdst) );
tween(plugin[%1].y, get(ydst) );
tween(plugin[%1].width, 80);
tween(plugin[%1].height, 80);
);
</action>
<action name="closethumb">
tween(plugin[%1].x, get(plugin[%1].xsmall));
tween(plugin[%1].y, get(plugin[%1].ysmall));
tween(plugin[%1].width, 10);
tween(plugin[%1].height, 10);
</action>
<action name="openthumbs">
if(%1 != NEXT,
set(i,0);
set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
);
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
openthumb(get(thumbname));
set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE, ZOOMBLEND(2,5)); );
inc(i);
openthumbs(NEXT);
);
</action>
<action name="closethumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
closethumb(get(thumbname));
set(plugin[get(thumbname)].onclick, openthumbs() );
inc(i);
closethumbs(NEXT);
);
</action>
<!-- thumbnail actions end -->
|
This post has been edited 1 times, last edit by "Pixelschupse" (Mar 3rd 2012, 5:06pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<action name="startPano"> if(statusStart != 1, tween(plugin[urheber].alpha, 1, 0.15); <!-- Local check --> if (islocal, set(plugin[ecardbtn].visible, false); set(plugin[ecard].visible, false); ); <!-- LPIntro Vorbereitungen --> set(view.hlookat, 38.03); set(view.vlookat, 90); set(view.fisheye, 1); set(view.stereographic, 1); set(view.fov, 180); set(view.fovtype, ""); action(setVars); action(rotateOff); action(hideHotspotsFast); wait(load); tweenContent(, info_zunftbaum, 2); checkAcc(2); action(lockClicks); action(showLPIntro); <!-- action(showHotspots); --> trace(Realisiert von Fotodesign Falko Müller - www.fotodesign-riesa.de); <!-- Start-Homeposition setzen --> set(homeATH, 329.26); set(homeATV, 4.86); set(homeFOV, 75); , <!-- Std. bei Wiederaufruf --> if (sceneStart == 0, tweenContent(get(lastInfocontent), info_zunftbaum, 2); set(sceneStart, 1); ); ); set(plugin[home].onclick, lookto(get(homeATH), get(homeATV), get(homeFOV))); </action> |