162 lines
11 KiB
XML
162 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- for xml compliance -->
|
|
<!-- Generated By Kolor Panotour 1.8.0 -->
|
|
<krpano version="1.0.8.14" logkey="false" onstart="startaction">
|
|
<action name="startaction">
|
|
hidepanospotsaction();
|
|
</action>
|
|
<action name="mainloadpano">
|
|
closepanoobjects();
|
|
ifnot(stopSequence === undefined,interruptAnimation(););
|
|
loadpano(%1,NULL,NULL,BLEND(1));
|
|
</action>
|
|
<plugin name="gyro" url="builddata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
|
|
<!--************** Pluginy i dane KRPano ******************************************************-->
|
|
<plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
|
|
<!--************** Otwórz pierwszą panoramę ***************************************************-->
|
|
<include url="build0.xml"/>
|
|
<autorotate enabled="false"/>
|
|
<!--************** Czcionki *******************************************************************-->
|
|
<textstyle name="DEFAULT" background="false" bold="false" border="false" effect="dropshadow(0,45,0xffffff,4,2);" font="Franklin Gothic Medium" fontsize="20" italic="false" textcolor="0xff000000"/>
|
|
<!--************** Obrazek startowy ***********************************************************-->
|
|
<action name="fromlittleplanetintrotonormalview">
|
|
tweennormalview();
|
|
showpanospotsaction();
|
|
</action>
|
|
<action name="firstloadcompleteaction">
|
|
if(plugin[data].firstPanoHasBeenPlayed==false,
|
|
setlittleplanet();
|
|
wait(load);
|
|
set(plugin[data].firstPanoHasBeenPlayed,true);
|
|
if (plugin[data].introImageHasBeenPlayed == true, startLittlePlanetIntroEffect(););
|
|
);
|
|
</action>
|
|
<action name="startLittlePlanetIntroEffect">
|
|
if(plugin[data].firstPanoHasBeenPlayed == true,
|
|
delayedcall(1.0,
|
|
fromlittleplanetintrotonormalview();
|
|
);
|
|
);
|
|
</action>
|
|
<action name="setlittleplanet">
|
|
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);
|
|
</action>
|
|
<plugin name="introimage" url="builddata/graphics/introImage.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();"/>
|
|
<action name="hideintroimage">
|
|
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
|
|
startLittlePlanetIntroEffect();
|
|
</action>
|
|
<action name="autohideintroimage">
|
|
if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
|
|
set(plugin[data].introImageHasBeenPlayed,true););
|
|
</action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--************** Menu ***********************************************************************-->
|
|
<events name="thumbnailsResizeEvent" onresize="thumbsResizeEventHandler();"/>
|
|
<!-- otwórz miniaturkę -->
|
|
<action name="slide_action_in">
|
|
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();
|
|
</action>
|
|
<!-- zamknij miniaturkę -->
|
|
<action name="slide_action_out">
|
|
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);
|
|
|
|
</action>
|
|
<action name="thumbsResizeEventHandler">
|
|
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););
|
|
);
|
|
</action>
|
|
|
|
<plugin name="thumbArray" keep="true" zorder="1" url="builddata/graphics/transparent.png" handcursor="false" capture="false" children="true" alpha="1" blendmode="normal" smoothing="true" x="0%" y="0" scale="1" align="rightbottom" edge="left" width="140" height="prop"/>
|
|
<plugin name="thumbBgLayout" keep="true" zorder="1" url="builddata/graphics/transparent.png" handcursor="false" capture="false" x="0" y="0" align="center" edge="center" width="100%" height="prop" parent="thumbArray"/>
|
|
<plugin name="slide" parent="thumbArray" keep="true" zorder="0" url="builddata/graphics/slide.png" handcursor="false" capture="false" children="true" alpha="1" blendmode="normal" smoothing="true" x="0" y="0" align="lefttop" edge="left" width="280" height="40" onclick="slide_action_in"/>
|
|
<plugin name="strap" keep="true" zorder="0" url="builddata/graphics/strap.png" parent="thumbArray" alpha="1" align="lefttop" edge="right" handcursor="true" onclick="slide_action_in"/>
|
|
<plugin name="strapArrow" keep="true" parent="strap" zorder="0" url="builddata/graphics/arrow.png" align="top" x="0" y="10" edge="center" capture="false" enabled="false" rotate="180"/>
|
|
<!-- thumbs pictures -->
|
|
<plugin name="thumb_build0" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu0.png" width="20.3333%" height="prop" align="topright" edge="left" x="135" y="0" alpha="1" ondown="set(fov_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(fov_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build1" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu1.png" width="20.3333%" height="prop" align="topright" edge="left" x="110" y="0" alpha="1" ondown="set(fov_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(fov_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build2" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu2.png" width="20.3333%" height="prop" align="topright" edge="left" x="85" y="0" alpha="1" ondown="set(hlookat_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(hlookat_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build3" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu3.png" width="20.3333%" height="prop" align="topright" edge="left" x="60" y="0" alpha="1" ondown="set(hlookat_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(hlookat_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build4" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu4.png" width="20.3333%" height="prop" align="topright" edge="left" x="35" y="0" alpha="1" ondown="set(vlookat_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(vlookat_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build5" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu5.png" width="20.3333%" height="prop" align="topright" edge="left" x="10" y="0" alpha="1" ondown="set(vlookat_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(vlookat_moveforce,0);" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build6" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu6.png" width="20.3333%" height="prop" align="topright" edge="left" x="-15" y="0" alpha="1" onclick="set(fullscreen,true);" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build7" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu7.png" width="20.3333%" height="prop" align="topright" edge="left" x="-15" y="0" alpha="1" onclick="set(fullscreen,false);" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build8" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu8.png" width="20.3333%" height="prop" align="topright" edge="left" x="-40" y="0" alpha="1" onclick="displayHelp();" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build9" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu9.png" width="65%" height="prop" align="righttop" edge="left" x="-73" y="0" alpha="1" onclick="openurl(http://zwiedzajlubelskie.pl/)" crop="0|0|200|65" onout="" onover="" onovercrop="0|65|200|65" visible="false" onloaded="thumbloaded();"/>
|
|
<plugin name="thumb_build10" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/menu/menu10.png" width="20.3333%" height="prop" align="righttop" edge="left" x="-108" y="0" alpha="1" onclick="openurl(http://www.facebook.com/ZwiedzajLubelskie)" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="false" onloaded="thumbloaded();"/>
|
|
|
|
<plugin name="helpScreen" align="center" customColor="true" keep="true" onclick="closeHelp();" url="builddata/graphics/menu/help.png" visible="false"/>
|
|
<action name="displayHelp">
|
|
set(plugin[helpScreen].visible,true);
|
|
set(plugin[thumb_build8].onclick,closeHelp();)
|
|
</action>
|
|
<action name="closeHelp">
|
|
set(plugin[helpScreen].visible,false);
|
|
set(plugin[thumb_build8].onclick,displayHelp();)
|
|
</action>
|
|
<events onenterfullscreen="set(plugin[thumb_build6].visible,false); set(plugin[thumb_build7].visible,true);" onexitfullscreen="set(plugin[thumb_build6].visible,true); set(plugin[thumb_build7].visible,false);"/>
|
|
|
|
<plugin name="thumbnailsData" keep="true" nbThumbnailsLoaded="0"/>
|
|
<action name="thumbloaded">
|
|
inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
|
|
if(plugin[thumbnailsData].nbThumbnailsLoaded GE 2,
|
|
setThumbnailsVisible();
|
|
);
|
|
</action>
|
|
<action name="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);
|
|
|
|
</action>
|
|
|
|
<!--************** Menu kontekstowe ***********************************************************-->
|
|
<contextmenu>
|
|
<item name="item_0" caption="www.tellogistic.pl"/>
|
|
<item name="item_1" caption="Autor: Jacek Scherer"/>
|
|
</contextmenu>
|
|
|
|
|
|
<!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
|
|
<action name="interruptAnimation">
|
|
ifnot (stopSequence === undefined,
|
|
set(stopSequence, true);
|
|
wait(0);
|
|
);
|
|
</action>
|
|
</krpano> |