<krpano version="1.0.8">

	<!-- example pano image - a small cubestrip pano image -->
	<image type="CUBESTRIP">
		<cubestrip url="pano.jpg" />
	</image>

	<!-- view settings -->
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" fovmin="60" fovmax="120" />


	<!-- the button bar -->
	<plugin name="buttonbar"
	        url="bgbar.png"
	        handcursor="false"
	        align="bottom"
	        y="10"
	        scalechildren="true"
	        scale="0.5"
	        onover="tween(scale,1);"
	        onout="tween(scale,0.5);"
	        />

	<!-- a style element with predefined settings for the buttons -->
	<style name="barbutton" parent="buttonbar" align="leftop" y="5" url="buttons.png" />

	<!-- the buttons -->
	<plugin name="in"       style="barbutton" x="5"   crop="160|0|40|40" onovercrop="160|40|40|40" ondowncrop="160|80|40|40" ondown="set(fov_moveforce,-1);"      onup="set(fov_moveforce,0);"     />
	<plugin name="out"      style="barbutton" x="45"  crop="200|0|40|40" onovercrop="200|40|40|40" ondowncrop="200|80|40|40" ondown="set(fov_moveforce,+1);"      onup="set(fov_moveforce,0);"     />
	<plugin name="left"     style="barbutton" x="85"  crop=  "0|0|40|40" onovercrop=  "0|40|40|40" ondowncrop=  "0|80|40|40" ondown="set(hlookat_moveforce,-1);"  onup="set(hlookat_moveforce,0);" />
	<plugin name="right"    style="barbutton" x="125" crop= "40|0|40|40" onovercrop= "40|40|40|40" ondowncrop= "40|80|40|40" ondown="set(hlookat_moveforce,+1);"  onup="set(hlookat_moveforce,0);" />
	<plugin name="up"       style="barbutton" x="165" crop= "80|0|40|40" onovercrop= "80|40|40|40" ondowncrop= "80|80|40|40" ondown="set(vlookat_moveforce,-1);"  onup="set(vlookat_moveforce,0);" />
	<plugin name="down"     style="barbutton" x="205" crop="120|0|40|40" onovercrop="120|40|40|40" ondowncrop="120|80|40|40" ondown="set(vlookat_moveforce,+1);"  onup="set(vlookat_moveforce,0);" />
	<plugin name="dragmode" style="barbutton" x="245" crop="400|0|40|40" onovercrop="400|40|40|40" ondowncrop="400|80|40|40" onhover="showtext(Change Controlmode);"  onclick="action(dragcursor);"    visible="true"  />
	<plugin name="movemode" style="barbutton" x="245" crop="360|0|40|40" onovercrop="360|40|40|40" ondowncrop="360|80|40|40" onhover="showtext(Change Controlmode);"  onclick="action(qtvrcursor);"    visible="false" />
	<plugin name="openfs"   style="barbutton" x="285" crop="280|0|40|40" onovercrop="280|40|40|40" ondowncrop="280|80|40|40" onhover="showtext(Fullscreen);"          onclick="set(fullscreen,true);"  visible="true"  />
	<plugin name="closefs"  style="barbutton" x="285" crop="320|0|40|40" onovercrop="320|40|40|40" ondowncrop="320|80|40|40" onhover="showtext(Exit Fullscreen);"     onclick="set(fullscreen,false);" visible="false" />


	<!-- events - set the cursor image on start and add events for the fullscreen button change -->
	<events onxmlcomplete="action(qtvrcursor);"
	        onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);"
	        onexitfullscreen ="set(plugin[openfs].visible,true);  set(plugin[closefs].visible,false);"
	        />

<!-- actions to change the mouse cursor image -->
	<action name="dragcursor">
		set(plugin[dragmode].visible, false);
		set(plugin[movemode].visible, true);
		set(control.mousetype, drag2D);
		set(cursors.url, %CURRENTXML%/drag-cursors.png);
		set(cursors.type, drag);
		set(cursors.move,  2|0|30|32);
		set(cursors.drag, 37|0|30|32);
	</action>

	<action name="qtvrcursor">
		set(plugin[dragmode].visible, true);
		set(plugin[movemode].visible, false);
		set(control.mousetype, moveto);
		set(cursors.url, %CURRENTXML%/qtvr-cursors.png);
		set(cursors.type, 8way);
		set(cursors.move,       0|0|16|16);
		set(cursors.drag,      16|0|16|16);
		set(cursors.arrow_u,   32|0|16|16);
		set(cursors.arrow_d,   48|0|16|16);
		set(cursors.arrow_l,   64|0|16|16);
		set(cursors.arrow_r,   80|0|16|16);
		set(cursors.arrow_lu,  96|0|16|16);
		set(cursors.arrow_ru, 112|0|16|16);
		set(cursors.arrow_rd, 128|0|16|16);
		set(cursors.arrow_ld, 144|0|16|16);
	</action>

</krpano>
