﻿<krpano version="1.19" title="Virtual Tour">

	<include url="skin/vtourskin.xml" />

	<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
	<skin_settings maps="false"
	               maps_type="google"
	               maps_bing_api_key=""
	               maps_google_api_key=""
	               maps_zoombuttons="false"
	               gyro="true"
	               webvr="true"
	               webvr_gyro_keeplookingdirection="false"
	               webvr_prev_next_hotspots="true"
	               littleplanetintro="false"
	               title="true"
	               thumbs="true"
	               thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
	               thumbs_opened="true"
	               thumbs_text="false"
	               thumbs_dragging="true"
	               thumbs_onhoverscrolling="false"
	               thumbs_scrollbuttons="false"
	               thumbs_scrollindicator="false"
	               thumbs_loop="false"
	               tooltips_buttons="false"
	               tooltips_thumbs="false"
	               tooltips_hotspots="false"
	               tooltips_mapspots="false"
	               deeplinking="false"
	               loadscene_flags="MERGE"
	               loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
	               loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
	               loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)"
	               loadingtext="loading..."
	               layout_width="100%"
	               layout_maxwidth="814"
	               controlbar_width="-24"
	               controlbar_height="40"
	               controlbar_offset="20"
	               controlbar_offset_closed="-40"
	               controlbar_overlap.no-fractionalscaling="10"
	               controlbar_overlap.fractionalscaling="0"
	               design_skin_images="vtourskin.png"
	               design_bgcolor="0x2D3E50"
	               design_bgalpha="0.8"
	               design_bgborder="0"
	               design_bgroundedge="1"
	               design_bgshadow="0 4 10 0x000000 0.3"
	               design_thumbborder_bgborder="3 0xFFFFFF 1.0"
	               design_thumbborder_padding="2"
	               design_thumbborder_bgroundedge="0"
	               design_text_css="color:#FFFFFF; font-family:Arial;"
	               design_text_shadow="1"
	               />

	<!--
	    For an alternative skin design either change the <skin_settings> values 
	    from above or optionally include one of the predefined designs from below.
	-->
	<!-- <include url="skin/vtourskin_design_flat_light.xml"  /> -->
	<!-- <include url="skin/vtourskin_design_glass.xml"       /> -->
	<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
	<!-- <include url="skin/vtourskin_design_117.xml"         /> -->
	<!-- <include url="skin/vtourskin_design_117round.xml"    /> -->
	<!-- <include url="skin/vtourskin_design_black.xml"       /> -->


	<!-- startup action - load the first scene -->
	<action name="startup" autorun="onstart">
		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
		loadscene(get(startscene), null, MERGE);
		if(startactions !== null, startactions() );
	</action>

 
 <plugin name="soundinterface"
        url.flash="%SWFPATH%/plugins/soundinterface.swf"
        url.html5="%SWFPATH%/plugins/soundinterface.js"
        rootpath=""
        preload="true"
        keep="true"
        />

        <action name="bgsnd_action" autorun="onstart">
   playsound(bgsnd, 'sounds/Zelda.mp3', 0);
</action>



	<action name="do_crop_animation" scope="local" args="framewidth, frameheight, framerate">
	<!-- 定义局部变量 -->
	calc(local.xframes, (caller.imagewidth /framewidth) BOR 0);
	calc(local.frames, xframes * ((caller.imageheight / frameheight) BOR 0));
	def(local.frame, integer, 0);
	
	<!-- 设置第一帧 -->
	calc(caller.crop, '0|0|' + framewidth + '|' + frameheight);
	
	<!-- 动画部分 -->
	setinterval(calc('crop_anim_' + caller.name), calc(1.0 / framerate),
		if(caller.loaded,
			inc(frame);
			if(frame GE frames, if(caller.onlastframe !== null, callwith(caller, onlastframe() ) ); set(frame,0); );
			mod(xpos, frame, xframes);
			div(ypos, frame, xframes);
			Math.floor(ypos);
			mul(xpos, framewidth);
			mul(ypos, frameheight);
			calc(caller.crop, xpos + '|' + ypos + '|' + framewidth + '|' + frameheight);
		  ,
			<!-- 当热点移除时停止动画 -->
			clearinterval(calc('crop_anim_' + caller.name));
		);
	);
    </action>

    <action name="add_all_the_time_tooltip_for_VR">
	
	 txtadd(tooltipname, 'vrtooltip_', get(name));
	 addhotspot(get(tooltipname)); 
	 set(hotspot[get(tooltipname)],
		type=text,
		edge=get(hotspot[get(name)].edge),
		distorted=get(hotspot[get(name)].distorted),
		ath=get(hotspot[get(name)].ath),
		atv=get(hotspot[get(name)].atv),
		oy=-50,
		ox=0,
		vcenter=true,
		padding=10,
		mipmapping=true,
		oversampling=2,
		bg=true,
		bgcolor=0x000000,
		bgroundedge=5,
		bgalpha=0.65,
		bgborder=0,
		bgshadow='0 0 0 0x000000 0',
		css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-weight:bold; font-size:24px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:24px;'),
		txtshadow='0 0 0 0x000000 0';
		enabled=true,
        );
         txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)');  
	 if(text == '' OR text === null,
 
		 copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title),
		 copy(hotspot[get(tooltipname)].html,text);
 
	 ); 
	 if(lp_running == false,
	 	set(hotspot[get(tooltipname)].visible,true); 
	 	, 	
	 	if(!webvr.isenabled,
	 	  if(lp_running == true,
		 	set(hotspot[get(tooltipname)].visible,false); 
		 	set(hotspot[get(tooltipname)].mark2,true);
	 	   );
	 	  );
	 	);
	 if(hotspot[get(name)].normal == false, 
 
		set(hotspot[get(tooltipname)].normal,false);
		set(hotspot[get(tooltipname)].onloaded,
			if(webvr.isenabled,
				set(visible,false);
				,	
				if(lp_running == false OR lp_running == null OR lp_running === null,  
					set(visible,true);
					);
				);
	       );
 
	 	);
    </action>


	
	<scene name="scene_100031535700461728" title="100031535700461728" onstart="" thumburl="panos/100031535700461728.tiles/thumb.jpg" lat="" lng="" heading="">
	


		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/100031535700461728.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="640" tiledimageheight="640">
				<cube url="panos/100031535700461728.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
		</image>
		
		 <!--<hotspot name="animation1"   style="skin_hotspotstyle_tittle"    ath="-108.585" atv="12.988" linkedscene="scene_100031535700522814"  onclick="loadscene(get(linkedscene))" text="123"  />-->
        
         
         
	</scene>

	<scene name="scene_100031535700501094" title="100031535700501094" onstart="" thumburl="panos/100031535700501094.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/100031535700501094.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="256" tiledimageheight="256">
				<cube url="panos/100031535700501094.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
		</image>

	</scene>

	<scene name="scene_100031535700522814" title="100031535700522814" onstart="" thumburl="panos/100031535700522814.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/100031535700522814.tiles/preview.jpg" />

		<image type="CUBE" prealign="0|0.0|0" multires="true" tilesize="512">
			<level tiledimagewidth="1664" tiledimageheight="1664">
				<cube url="panos/100031535700522814.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="768" tiledimageheight="768">
				<cube url="panos/100031535700522814.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
		</image>

	</scene>

	<scene name="scene_100031535701828515" title="100031535701828515" onstart="" thumburl="panos/100031535701828515.tiles/thumb.jpg" lat="" lng="" heading="">

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/100031535701828515.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512">
			<level tiledimagewidth="256" tiledimageheight="256">
				<cube url="panos/100031535701828515.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
		</image>

	</scene>


</krpano>
