﻿<krpano >


	<compass
		open_start="true"
		editor="true"
	/>	
	
	
	
	<include url="compassSM_2.xml" />
	
		<!--  ***********************    COMPASS     ***************************  -->
			
	<!-- Стиль текста1 -->         		   
	<style name="text_comp1" type="text" keep="true" edge="center" enabled="false" css="font-family: Raleway, sans-serif; color:#FFFFFF; font-size:20px;"  
		    x="1" y="18" padding="3 3"  align="lefttop" background="false"  />
			
	<!-- Стиль текста2 -->         		   
	<style name="text_Com2" type="text" enabled="false" keep="true" edge="center" css="font-family: Raleway, sans-serif; color:#FFFFFF; font-size:12px;" 
		    x="2" y="19" padding="3 3"  align="lefttop" background="false"  />
	
   <!-- Риска длинная --> 
    <style name="riska_compas" type="container" keep="true" edge="top"  width="1" height="10" zorder="40" alpha="1" enabled="false"  
           bgcapture="true" bgcolor="0xFFFFFF" bgalpha="1" bgshadow="3 3 3 0x000000 0.8" 
		   parent="bg_compass_flpl" />	 
		 
	<!-- Риска короткая --> 
    <style name="riska_compas2" type="container" keep="true" edge="top"  width="1" height="5" zorder="40" alpha="1" enabled="false"  
            bgcapture="true" bgcolor="0xFFFFFF" bgalpha="1" bgshadow="3 3 3 0x000000 0.8" bgroundedge="0"
			parent="bg_compass_flpl" />	 
	
	<!-- compass button-->
	<layer name="compass_button"   keep="true" align="righttop"  x="10" y="50"  url="Compass.png" width="35" height="prop"  alpha="0.8" zorder="40" rotate="0"
		 onover="set(alpha,1);" onout="set(alpha,0.8);"
		 onclick="if(layer[bg_compass_flpl].height LT 2, hd_sh_compass(30,1),  hd_sh_compass(0,0) ); "
	/> 
	
	<!-- Фон под компас --> 	 
	<layer name="bg_compass_flpl"  type="container" keep="true" align="top"  alpha="0.01"   y="-1" x="0"  width="100%" height="1"  maskchildren="true"  enabled="false"
	       bgcapture="true"  bgcolor="0x555555"  bgalpha="0.7"  bgshadow="0 0 20 10 0x000000 0.3"   
		   ondown="draggingComp();" >
		   
		   <layer  name="target_comp"  type="container" keep="true"  bgcapture="true"  align="center" alpha="0.5" width="1" height="150"
				   bgcolor="0xFF0000" bgalpha="1" 
			/>	
	</layer>	
 
		
	<!-- N --> 
    <layer name="N" style="text_comp1" parent="compassm_1" html="[b]BẮC[/b]" css="font-family: Raleway, sans-serif; color:#FF6F68; font-size:20px;"  />	 
	<!-- E --> 
    <layer name="E" style="text_comp1" parent="compassm_19" html="[b]ĐÔNG[/b]" />	
	<!-- S --> 
    <layer name="S" style="text_comp1" parent="compassm_37" html="[b]NAM[/b]" css="font-family: Raleway, sans-serif; color:#267DFF; font-size:20px;" />	 
    <!-- W --> 
    <layer name="W" style="text_comp1" parent="compassm_55" html="[b]TÂY[/b]" />

	<!-- NE --> 
    <layer name="NE" style="text_Com2" parent="compassm_10" html="ĐÔNG BẮC" />	 
	<!-- SE --> 
    <layer name="SE" style="text_Com2" parent="compassm_28" html="ĐÔNG NAM" />	
	<!-- SW --> 
    <layer name="SW" style="text_Com2" parent="compassm_46" html="TÂY NAM" />	 
    <!-- NW --> 
    <layer name="NW" style="text_Com2" parent="compassm_64" html="TÂY BẮC" />	
	 
	

	
	<!-- show/hide compass-->	
	<action name="hd_sh_compass"> 
		tween(layer[bg_compass_flpl].height, %1); 
		tween(layer[bg_compass_flpl].alpha, %2);
	</action>
	
</krpano>



