<scene>
  <container content="data/partials/balls_preload.xml" />
  <container content="data/partials/preload.xml" />
  <container content="data/partials/effects_preload.xml" />

  <!--<image filename="data/backgrounds/back_0.jpg"/> -->

  <container name="scene" content="data/partials/scene.xml" state_stop="1"/>
  
  
  <container name="scene_buttons" content="data/partials/scene_buttons.xml" state_stop="1" visible="0" color="ffffff00">
    <state name="map" visible="1" color="ffffffff"/>
    <state name="upgrade" visible="1" color="ffffffff"/>
	<state name="hide" visible="0" color="ffffff00"/>
	<state name="tutorial" visible="1" color="ffffffff"/>
  </container>

  <container x="300" y="0" w="300" h="300"> 
    <state name="map" x="300" y="-500" w="300" h="300" />
    <state name="upgrade" x="300" y="-500" w="300" h="300" />
	<state name="tutorial" x="300" y="-500" w="300" h="300" />

    <image x="50" y="50"  filename="data/logo_for_main.png" />

	<text name="welcome_text2" x="180" y="200" align="center" color="ffffffaa" text="欢迎你" font="data/fonts/dsgoose_26_simple.xml" />

    <text name="welcome_text" x="215" y="200" align="center" color="ffffffaa" text="欢迎, Username" font="data/fonts/dsgoose_26_simple.xml" />

    <button x="110" y="225" w="215" h="25" on_click="setState:users">
      <image name="default" x="0" y="0" filename="data/gui/buttons/cu_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/cu_a.png" visible="0" />
      <image name="pressed" x="3" y="5" filename="data/gui/buttons/cu_a.png" visible="0" />
    </button>

  </container>


  <container y="620" w="120" h="120" name="moregames">
    
    <state name="map" x="-500" y="620" w="120" h="120"/>
    <state name="upgrade" x="-500" y="620" w="120" h="120"/>
    <state name="tutorial" x="-500" y="620" w="120" h="120"/>
    
    <container w="120" h="120" content="data/moregames/notus/button.xml" />
    <container w="120" h="120" content="data/moregames/iwin/button.xml" />
    
  </container>
	
	


  



  <container name="01t" w="350" h="100" x="145" y="535"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="145" y="535" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="180" y="25"  align="center" text="清理道路" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="180" y="50"  align="center" text="花费10硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
  
   <container name="02t"   w="350" h="100" x="360" y="430"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="360" y="430" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="房屋装饰" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费30硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
    <container name="03t" w="350" h="100" x="475" y="280"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="475" y="280" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="房屋彩灯" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费50硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
  
 <container name="04t" w="350" h="100" x="25" y="200"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="25" y="200" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="森林彩灯" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费70硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
 <container name="05t" w="350" h="100" x="650" y="200"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="650" y="200" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="森林照明" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费70硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>    
  
  
  
  
  
  <container w="350" h="100" x="625" y="475" name="06t" color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="625" y="475" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="130" y="25"  align="Center" text="雪人 " font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费20硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
  
    <container w="350" h="100" x="625" y="475" name="07t" color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="625" y="475" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="80" y="25"  align="Center" text="雪人衣服" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费90硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>  
  
  
  
  

    <container name="08t" w="350" h="100" x="175" y="525"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="175" y="525" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="100" y="25"  align="Center" text="绑在树上的玩具" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费100硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>    
  
  
  <container name="09t" w="350" h="100" x="175" y="525"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="175" y="525" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="树彩灯 " font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费110硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>    
  
  
  <container name="10t" w="350" h="100" x="175" y="525"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="175" y="525" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="绑在树上的礼物" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费120硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>   
  
  
  
  <container name="11t" w="350" h="100" x="100" y="525"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="100" y="525" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="道路彩灯" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费150硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>   
  
  
 <container name="12t" w="350" h="100" x="475" y="650"  color="ffffff00" visible="0">
    <state name="visible" color="ffffffff" x="475" y="650" visible="1"/>
    
    <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />

    <text x="70" y="25"  align="Center" text="灌木彩灯" font="data/fonts/dsgoose_26_simple.xml" />
    <text x="100" y="50"  align="Center" text="花费130硬币" font="data/fonts/dsgoose_20_simple.xml" />

  </container>   
  





  <container w="220" h="50" x="1024" y="7" name="2" color="ffffffff"  >
    
	<state name="hide" color="ffffffff" x="1024" y="7"/>
	
	<state name="map" color="ffffffff" x="670" y="7"/>
	
	<state name="tutorial" color="ffffffff" x="670" y="7"/>


        <image x="0" y="0" filename="data/gfx/upgrade_tooltip.png" />


		<text x="240" y="24"  align="right" name="level_name_label" text="当前关卡:" font="data/fonts/dsgoose_20_simple.xml" />
		<text x="245" y="20"  align="left"  name="level_name" text="ln" font="data/fonts/dsgoose_26_simple.xml" />
		<text x="190" y="24"  align="center" name="levels_complete_label" text="完成所有关卡." font="data/fonts/dsgoose_20_simple.xml"  visible="0"/>
			
		<text x="210" y="54"  align="right" text="硬币:" font="data/fonts/dsgoose_20_simple.xml" />
		<text x="215" y="50" name="tokens_count"   align="left" text="10" font="data/fonts/dsgoose_26_simple.xml" />
		 
		 <image x="120" y="43" w="30" h="30" filename="data/gfx/balls/l_coin/01.png" color="ffffffaf" />
  
  </container> 

  
  
  
  <!--container w="220" h="250" x="500" y="-200" name="2" color="ffffffff"  on_enter ="setState:map22" on_leave ="setState:map" >
    <state name="map" color="ffffffff" x="500" y="-200"/>
	<state name="map2" color="ffffffff" x="500" y="7"/>
	
   <button x="0" y="0" w="140" h="50" on_click="setState:levels" >
      <image name="default" x="0" y="0" filename="data/gui/buttons/change_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/change_a.png" visible="0" />
      <image name="pressed" x="5" y="5" filename="data/gui/buttons/change_a.png" visible="0" />
    </button>

  </container-->  






  <!--text x="525" y="15"  align="center" text="Game Progress" font="data/fonts/dsgoose_26_simple.xml" /-->

  <container w="1000" h="220" x="0" y="-300" name="levels2" color="ffffffff" on_leave ="setState:map2">
    <state name="levels" color="ffffffff" x="0" y="-2"/>
    <state name="map2" color="ffffffff" x="0" y="-300"/>

    <image x="0" y="0" filename="data/gfx/under_levels.png" />







    <button x="25" y="60" content="data/partials/map_point.xml" on_click="setLevel:00" name="lb0"/>

    <button x="50" y="30" content="data/partials/map_point.xml" on_click="setLevel:01" name="lb1"/>
    <button x="75" y="50" content="data/partials/map_point.xml" on_click="setLevel:02" name="lb2"/>

    <button x="100" y="30" content="data/partials/map_point.xml" on_click="setLevel:03"  name="lb3"/>
    <button x="125" y="50" content="data/partials/map_point.xml" on_click="setLevel:04"  name="lb4"/>
    <button x="150" y="30" content="data/partials/map_point.xml" on_click="setLevel:05"  name="lb5"/>
    <button x="175" y="50" content="data/partials/map_point.xml" on_click="setLevel:06"  name="lb6"/>
    <button x="200" y="30" content="data/partials/map_point.xml" on_click="setLevel:07"  name="lb7"/>
    <button x="225" y="50" content="data/partials/map_point.xml" on_click="setLevel:08"  name="lb8"/>
    <button x="250" y="30" content="data/partials/map_point.xml" on_click="setLevel:09"  name="lb9"/>
    <button x="275" y="50" content="data/partials/map_point.xml" on_click="setLevel:10"  name="lb10"/>
    <button x="300" y="30" content="data/partials/map_point.xml" on_click="setLevel:11"  name="lb11"/>
    <button x="325" y="50" content="data/partials/map_point.xml" on_click="setLevel:12"  name="lb12"/>


    <button x="350" y="30" content="data/partials/map_point.xml" on_click="setLevel:13"  name="lb13"/>
    <button x="375" y="50" content="data/partials/map_point.xml" on_click="setLevel:14"  name="lb14"/>

    <button x="400" y="30" content="data/partials/map_point.xml" on_click="setLevel:15"  name="lb15"/>
    <button x="425" y="50" content="data/partials/map_point.xml" on_click="setLevel:16"  name="lb16"/>
    <button x="450" y="30" content="data/partials/map_point.xml" on_click="setLevel:17"  name="lb17"/>
    <button x="475" y="50" content="data/partials/map_point.xml" on_click="setLevel:18"  name="lb18"/>

    <button x="500" y="30" content="data/partials/map_point.xml" on_click="setLevel:19"  name="lb19"/>
    <button x="525" y="50" content="data/partials/map_point.xml" on_click="setLevel:20"  name="lb20"/>
    <button x="550" y="30" content="data/partials/map_point.xml" on_click="setLevel:21"  name="lb21"/>

    <button x="580" y="40" content="data/partials/map_point.xml" on_click="setLevel:22"  name="lb22"/>
    <button x="580" y="70" content="data/partials/map_point.xml" on_click="setLevel:23"  name="lb23"/>
    <button x="580" y="100" content="data/partials/map_point.xml" on_click="setLevel:24"  name="lb24"/>

    <button x="550" y="90" content="data/partials/map_point.xml" on_click="setLevel:25"  name="lb25"/>

    <button x="525" y="110" content="data/partials/map_point.xml" on_click="setLevel:26"  name="lb26"/>

    <button x="500" y="90" content="data/partials/map_point.xml" on_click="setLevel:27"  name="lb27"/>


    <button x="475" y="110" content="data/partials/map_point.xml" on_click="setLevel:28"  name="lb28"/>

    <button x="450" y="90" content="data/partials/map_point.xml" on_click="setLevel:29"  name="lb29"/>
    <button x="425" y="110" content="data/partials/map_point.xml" on_click="setLevel:30"  name="lb30"/>

    <button x="400" y="90" content="data/partials/map_point.xml" on_click="setLevel:31"  name="lb31"/>

    <button x="375" y="110" content="data/partials/map_point.xml" on_click="setLevel:32"  name="lb32"/>
    <button x="350" y="90" content="data/partials/map_point.xml" on_click="setLevel:33"  name="lb33"/>

    <button x="325" y="110" content="data/partials/map_point.xml" on_click="setLevel:34"  name="lb34"/>

    <button x="300" y="90" content="data/partials/map_point.xml" on_click="setLevel:35"  name="lb35"/>

    <button x="275" y="110" content="data/partials/map_point.xml" on_click="setLevel:36"  name="lb36"/>

    <button x="250" y="90" content="data/partials/map_point.xml" on_click="setLevel:37"  name="lb37"/>
    <button x="225" y="110" content="data/partials/map_point.xml" on_click="setLevel:38"  name="lb38"/>

    <button x="200" y="90" content="data/partials/map_point.xml" on_click="setLevel:39"  name="lb39"/>
    <button x="175" y="110" content="data/partials/map_point.xml" on_click="setLevel:40"  name="lb40"/>
    <button x="140" y="100" content="data/partials/map_point.xml" on_click="setLevel:41"  name="lb41"/>

  </container>  







  <container x="675" y="550" w="340" h="300">
    <state name="map" x="1675" y="550" w="340" h="300" />
    <state name="upgrade" x="1675" y="550" w="340" h="300" />
	<state name="tutorial" x="1675" y="550" w="340" h="300" />

    <button x="20" w="300" h="80" on_click="showMap">
      <image name="default" x="0" y="0" filename="data/gui/buttons/mm_pg_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/mm_pg_a.png" visible="0" />
      <image name="pressed" x="0" y="0" filename="data/gui/buttons/mm_pg_p.png" visible="0" />
    </button>

    <button x="10" y="100" w="170" h="100" on_click="setState:options" on_enter ="" on_leave ="">
      <image name="default" x="0" y="0" filename="data/gui/buttons/mm_op_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/mm_op_a.png" visible="0" />
      <image name="pressed" x="0" y="0" filename="data/gui/buttons/mm_op_p.png" visible="0" />
    </button>

    <button x="170" y="100" w="170" h="100" on_click="setState:exit" on_enter ="" on_leave ="">
      <image name="default" x="0" y="0" filename="data/gui/buttons/mm_qu_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/mm_qu_a.png" visible="0" />
      <image name="pressed" x="0" y="0" filename="data/gui/buttons/mm_qu_p.png" visible="0" />
    </button>

</container>


<container x="1800" y="600" w="340" h="300">

 <state name="hide" x="1800" y="600" w="340" h="300" />

 <state name="map" x="800" y="600" w="340" h="300" />
 <state name="upgrade" x="800" y="600" w="340" h="300" />

  <state name="tutorial" x="800" y="600" w="340" h="300" />

  <button x="50" y="20" w="170" h="100" on_click="startGame">
    <image name="default" x="0" y="0" filename="data/gui/buttons/m_play_d.png" visible="1" />
    <image name="active" x="0" y="0" filename="data/gui/buttons/m_play_a.png" visible="0" />
    <image name="pressed" x="5" y="5" filename="data/gui/buttons/m_play_p.png" visible="0" />
  </button>

  <button x="65" y="110" w="140" h="50" on_click="setState:upgrade">
    <image name="default" x="0" y="0" filename="data/gui/buttons/upgrade_d.png" visible="1" />
    <image name="active" x="0" y="0" filename="data/gui/buttons/upgrade_a.png" visible="0" />
    <image name="pressed" x="5" y="5" filename="data/gui/buttons/upgrade_a.png" visible="0" />
  </button>


</container>





<container x="-800" y="650" w="200" h="300">
  
  <state name="hide" x="-800" y="650" w="200" h="300" />
  <state name="map" x="0" y="650" w="200" h="300" />
  <state name="upgrade" x="0" y="650" w="200" h="300" />
  
  <state name="tutorial" x="0" y="650" w="340" h="300" />


  <button x="5" y="15" w="140" h="50" on_click="setState:default">
    <image name="default" x="0" y="0" filename="data/gui/buttons/back_d.png" visible="1" />
    <image name="active" x="0" y="0" filename="data/gui/buttons/back_a.png" visible="0" />
    <image name="pressed" x="5" y="5" filename="data/gui/buttons/back_p.png" visible="0" />
  </button>
  
    <button x="5" y="65" w="140" h="50" on_click="setState:hide">
    <image name="default" x="0" y="0" filename="data/gui/buttons/hide_d.png" visible="1" />
    <image name="active" x="0" y="0" filename="data/gui/buttons/hide_a.png" visible="0" />
    <image name="pressed" x="5" y="5" filename="data/gui/buttons/hide_a.png" visible="0" />
  </button>



</container>
	
	
	
	
	
	
	
    <!--container w="200" h="170" x="525" y="340" name="classic_hint" color="ffffff00">
      <state name="classic_hint" color="ffffffff" x="525" y="340"/>
	 
	 <image9 w="200" h="120" filename="data/gui/big_cb_composit3.png" corner="38"/>
	 
	 <text x="10" y="10" align="left" color="fffeddf0" text="得到最高分" font="data/fonts/dsgoose_20_simple.xml" />
	 <text x="10" y="25" align="left" color="fffeddf0" text="能达成 " font="data/fonts/dsgoose_20_simple.xml" />
	 <text x="10" y="40" align="left" color="fffeddf0" text="经典" font="data/fonts/dsgoose_20_simple.xml" />
	 <text x="10" y="55" align="left" color="fffeddf0" text="级别" font="data/fonts/dsgoose_20_simple.xml" />
   <text x="10" y="70" align="left" color="fffeddf0" name="best_endless_score" text="" font="data/fonts/dsgoose_20_simple.xml" />
	 
    </container-->
    
	
	  <!--container w="200" h="170" x="525" y="260" name="puzzle_hint" color="ffffff00">
      <state name="puzzle_hint" color="ffffffff" x="525" y="260"/>
	 
	 <image9 w="200" h="85" filename="data/gui/big_cb_composit3.png" corner="38"/>
	 
	 <text x="10" y="10" align="left" color="fffeddf0" text="完成当前" font="data/fonts/dsgoose_20_simple.xml" />
	 <text x="10" y="25" align="left" color="fffeddf0" text="关卡的谜题" font="data/fonts/dsgoose_20_simple.xml" />
	 
	 
    </container-->
	
	
		<container w='1024' h='768' x='0' y='0' name="exit_popup" visible="0">
      <state name="exit" visible="1"/>

      <container w="1024" h="768" x="0" y="0" color="ffffff00">
        <state name="exit" color="ffffffff"/>
        <image w="1024" h="768" filename="data/gui/popap_shade.png" />
		
      </container>
      
	  <container w="730" h="460" x="120" y="-460">
        <state name="exit" x="120" y="140"/>
        
		<image x='165' y='80' filename="data/gfx/menu_smaller.png" />
        
        <text x="400" y="160" align="center" color="fffeddf0" text="你真的想" font="data/fonts/dsgoose_20_simple.xml" />
        <text x="400" y="180" align="center" color="fffeddf0" text="退出吗?" font="data/fonts/dsgoose_20_simple.xml" />
		
		
        <button x="320" y="220" w="150" h="50" text="" on_click="setState:default">
          <image name="default" x="0" y="0" filename="data/gui/buttons/back_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/back_a.png" visible="0" />
          <image name="pressed" x="1" y="1" filename="data/gui/buttons/back_p.png" visible="0" />
        </button>

        <button x="320" y="270" w="150" h="50" text="" on_click="exit">
          <image name="default" x="0" y="0" filename="data/gui/buttons/exit_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/exit_a.png" visible="0" />
          <image name="pressed" x="1" y="1" filename="data/gui/buttons/exit_a.png" visible="0" />
        </button>
      </container>

    </container>
	
	
	
<container w='1024' h='768' x='0' y='0' name="options_popup" visible="0">
      <state name="options" visible="1"/>

      <container w="1024" h="768" x="0" y="0" color="ffffff00">
        <state name="options" color="ffffffff"/>
        <image w="1024" h="768" filename="data/gui/popap_shade.png" />
		
      </container>
      
	  <container w="730" h="460" x="140" y="-460">
        <state name="options" x="140" y="180"/>
		<state name="credits" x="140" y="-460"/>
        <image x='150' y='60' filename="data/gfx/menu_smaller2.png" />
        <image w="295" h="64" x='250' y='80' filename="data/gui/settings.png" />
        
		
		<text x="360" y="178" align="left" color="fffeddf0" text="全屏" font="data/fonts/dsgoose_20_simple.xml" />
		
        <checkbox x="320" y="170" w="32" h="32" name="fullscreen_checkbox" on_check="setFullscreen" on_uncheck="setWindow">
            <image name="default" visible="1" x="0" y="0" filename="data/gui/checkbox_normal.png" />
            <image name="active" visible="0" x="0" y="0" filename="data/gui/checkbox_active.png" />
            <image name="pressed" visible="0" x="0" y="0" filename="data/gui/checkbox_active.png" />
            <image name="mark" visible="0" x="0" y="0" filename="data/gui/checkbox_checked.png" />
        </checkbox>

		<text x="330" y="220" align="left" color="fffeddf0" text="音效" font="data/fonts/dsgoose_20_simple.xml" />
		
        <container name="sound_volume" x="298" y="240" w="191" h="34">
          <image x="10" y="2" filename="data/gui/Sound_track.png" />
          <slider x="10" w="155" h="19" name="sound_volume_value" key_filename="data/gui/SoundSliderDefault.png" on_change="setVolume:"/>
        </container>
		
			<text x="330" y="270" align="left" color="fffeddf0" text="音乐" font="data/fonts/dsgoose_20_simple.xml" />
		
        <container name="music_volume" x="298" y="290" w="191" h="34">
          <image x="10" y="2" filename="data/gui/Sound_track.png" />
          <slider x="10" w="155" h="19" name="music_volume_value" key_filename="data/gui/SoundSliderDefault.png" on_change="setMusicVolume:"/>
        </container>
		
		
		

        <button x="250" y="330" w="140" h="50" text="" on_click="setState:credits">
          <image name="default" x="0" y="0" filename="data/gui/buttons/credits_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/credits_a.png" visible="0" />
          <image name="pressed" x="1" y="1" filename="data/gui/buttons/credits_a.png" visible="0" />
        </button>
		
		
		

        <button x="390" y="330" w="140" h="50" text="" on_click="setState:default">
          <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
          <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
        </button>
      </container>

    </container>
	
	
	
	
	
	
	
	
	
	
	

 




  <container w='1024' h='768' x='0' y='0' name="users_popup" visible="0">
    <state name="users" visible="1"/>

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="users" color="ffffffff"/>
      <image w="1024" h="768" filename="data/gui/popap_shade.png" />
      <image w="1024" h="768" filename="data/gui/popap_shade.png" />
    </container>

    <container w="730" h="490" x="120" y="-460">
      <state name="users" x="120" y="140"/>
	  <state name="add_user" x="120" y="-460"/>
      <state name="too_many_users" x="120" y="-460"/>
	   <state name="username_used" x="120" y="-460"/>
      <image  x='165' y='80' filename="data/gui/users_back.png" />

            
      <list name="userlist" x="273" y="190" font="data/fonts/dsgoose_20_simple.xml" 
        w="124" h="250" on_select="selectUser:" selection_color="fff3cf" 
        item_height="24" item_padding_left="7" item_padding_top="5"/>

      <button x="415" y="183" w="150" h="50" text="" on_click="showAddUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/add_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/add_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/add_a.png" visible="0" />
      </button>



      <button x="415" y="235" w="150" h="50" text="" on_click="showDeleteSelectedUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/delete_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/delete_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/delete_a.png" visible="0" />
      </button>




      <button x="415" y="350" w="150" h="50" text="" on_click="setState:default">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
      </button>

    </container>

  </container>

  <container w='730' h='460' x='0' y='0' name="add_user_popup" visible="0">
    <state name="add_user" visible="1"/>
    <state name="users" visible="0"/>
	

    <container w="730" h="460" x="130" y="-460">
      <state name="add_user" x="130" y="140"/>
      <state name="users" x="130" y="-460"/>
	  <state name="username_used" x="130" y="-460"/>

      
	  <image x='165' y='80' filename="data/gfx/menu_smaller.png" />


      <text x="395" y="150" align="center" color="ffffffaa" text="输入你的用户名" font="data/fonts/dsgoose_20_simple.xml" />


      <image  x='285' y='190' filename="data/gui/text_input.png" />


      <edit name='username_input' x="355" y="200" w='80' h="24" align="center" limit="10"  color="ffffffaa" font="data/fonts/dsgoose_26_simple.xml" on_return="addUser">
        
        <container name="cursor" affine_animation="data/gui/animations/blink.anim.xml">
          <image filename="data/gui/cursor.png"/>  
        </container>
      </edit>

      <button x="390" y="260" w="150" h="50" text="" on_click="addUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/add_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/add_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/add_a.png" visible="0" />
      </button>


      <button x="245" y="260" w="150" h="50" text="" on_click="cancelAddUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/back_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/back_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/back_p.png" visible="0" />
      </button>

    </container>

  </container>
  
  
  
   <container w='730' h='470' x='0' y='0' name="too_many_users" visible="0">
    <state name="too_many_users" visible="1"/>
    <state name="users" visible="0"/>

    <container w="730" h="470" x="130" y="-460">
      <state name="too_many_users" x="130" y="170"/>
      <state name="users" x="130" y="-460"/>

      
	  <image x='165' y='80' filename="data/gfx/menu_smaller.png" />


      <text x="395" y="190" align="center" color="ffffffaa" text="显示全部用户." font="data/fonts/dsgoose_26_simple.xml" />


      <button x="315" y="240" w="150" h="50" text="" on_click="setState:users">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_p.png" visible="0" />
      </button>

    </container>

  </container>
  
  
  
  
  <container w='730' h='470' x='0' y='0' name="username_used" visible="0">
    <state name="username_used" visible="1"/>
    <state name="users" visible="0"/>
    <state name="add_user" visible="0"/>

    <container w="730" h="470" x="130" y="-460">
      <state name="username_used" x="130" y="170"/>
      <state name="users" x="130" y="-460"/>
      <state name="add_user" x="130" y="-460"/>


      <image x='165' y='80' filename="data/gfx/menu_smaller.png" />


      <text x="395" y="190" align="center" color="ffffffaa" text="此用户已经存在." font="data/fonts/dsgoose_26_simple.xml" />


      <button x="315" y="240" w="150" h="50" text="" on_click="showAddUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_p.png" visible="0" />
      </button>

    </container>

  </container>

  <container w='730' h='470' x='0' y='0' name="delete_user" visible="0">
    <state name="delete_user" visible="1"/>
    <state name="users" visible="0"/>
    <state name="add_user" visible="0"/>

    <container w="730" h="470" x="130" y="-460">
      <state name="delete_user" x="130" y="170"/>
      <state name="users" x="130" y="-460"/>

      <image x='165' y='80' filename="data/gfx/menu_smaller.png" />


      <text x="395" y="190" align="center" color="ffffffaa" text="确定删除这个用户吗?" font="data/fonts/dsgoose_26_simple.xml" />

      <button x="240" y="260" w="140" h="50" on_click="cancelDeleteSelectedUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/back_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/back_a.png" visible="0" />
        <image name="pressed" x="5" y="5" filename="data/gui/buttons/back_p.png" visible="0" />
      </button>


      <button name="final_delete_user_button" x="405" y="260" w="150" h="50" text="" on_click="deleteSelectedUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/delete_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/delete_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/delete_a.png" visible="0" />
      </button>
      

    </container>

  </container>
   	
	
  <image filename="data/backgrounds/loading_sm.jpg" w="1024" h="768"  color="ffffff00" visible="0" enabled="0">
    <state name="start" color="ffffffff" visible="1" w="1024" h="768"/>
    <transition from="start" to="default" time="2.5"/>
  </image>



  <container w='1024' h='768' x='0' y='0' name="add_first_user_popup" visible="0">
    <state name="add_first_user" visible="1"/>


    <container w="1024" h="768" x="120" y="-460">
      <state name="add_first_user" x="120" y="140"/>



      <image x='165' y='80' filename="data/gfx/menu_smaller.png" />


      <text x="395" y="160" align="center" color="ffffffaa" text="输入你的用户名" font="data/fonts/dsgoose_20_simple.xml" />


      <image  x='285' y='200' filename="data/gui/text_input.png" />


      <edit name='first_username_input' x="355" y="210" w='80' h="24" align="center" limit="10" color="ffffffaa" font="data/fonts/dsgoose_26_simple.xml" on_return="addFirstUser">
        <container name="cursor" affine_animation="data/gui/animations/blink.anim.xml">
          <image filename="data/gui/cursor.png"/>  
        </container>
      </edit>

      <button x="320" y="260" w="150" h="50" text="" on_click="addFirstUser">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
      </button>


    </container>

  </container>
  
  <container w='1024' h='768' x='0' y='0' visible="0">
    <state name="tutorial" visible="1"/>
    <state name="map" visible="0"/>

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="tutorial" color="ffffffff"/>
      <state name="map" color="ffffff00"/>
      <image w="1024" h="768" filename="data/gui/popap_shade.png" />
    </container>

    <container w="450" h="330"           x='270' y='-400'>
      <state name="tutorial" visible="1" x='270' y='200' w="450" h="330"/>
      <state name="map" visible="1" w="450" h="330" x='270' y='-400'/>

      <image9 x='3' y='3' w="448" h="328" filename="data/gui/big_cb_composit_h.png" corner="30"/>

      <container name="tutorial_box" w="420" h="280" x="0" y="0" />
	    
		<text x="120" y="40" align="left" color="ffffffff" text="关于游戏" font="data/fonts/dsgoose_30.xml" />
		
		
	   <text x="50" y="100" align="left" color="fffedd" text="在圣诞节前完成所有谜题" font="data/fonts/dsgoose_20_simple.xml" />
	   <text x="50" y="120" align="left" color="fffedd" text="并得到所有房屋的装饰" font="data/fonts/dsgoose_20_simple.xml" />
       <text x="50" y="140" align="left" color="fffedd" text="基本每一级你都会得到硬币" font="data/fonts/dsgoose_20_simple.xml" />
       <text x="50" y="160" align="left" color="fffedd" text="你都会得到硬币" font="data/fonts/dsgoose_20_simple.xml" />
       <text x="50" y="180" align="left" color="fffedd" text="买装饰品和彩灯." font="data/fonts/dsgoose_20_simple.xml" />
   
   

      <button x="150" y="240" w="150" h="50" text="" on_click="setState:map">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
      </button>
    </container>
  </container>
  
  
  
  


    <container w="450" h="450"  name="credits"         x='200' y='-600'>
      <state name="credits" visible="1" x='200' y='200' w="450" h="450"/>
      

      <image9 x='3' y='3' w="600" h="450" filename="data/gui/big_cb_composit_h.png" corner="30"/>

      
		<text x="250" y="40" align="left" color="ffffffff" text="监督" font="data/fonts/dsgoose_30.xml" />
		
	    <text x="150" y="90" align="left" color="fffedd" text="NotusGames" font="data/fonts/dsgoose_26_simple.xml" /> 	
		
	   <text x="50" y="140" align="left" color="fffedd" text="程序" font="data/fonts/dsgoose_20_simple.xml" />
	   <text x="50" y="160" align="left" color="fffedd" text="Oleksandr Movchan" font="data/fonts/dsgoose_26_simple.xml" />
       
	   <text x="50" y="200" align="left" color="fffedd" text="设计" font="data/fonts/dsgoose_20_simple.xml" />
       <text x="50" y="220" align="left" color="fffedd" text="Bogdan Movchan" font="data/fonts/dsgoose_26_simple.xml" />
	   
	  
	   
       <text x="50" y="260" align="left" color="fffedd" text="音效" font="data/fonts/dsgoose_20_simple.xml" />
	   <text x="50" y="280" align="left" color="fffedd" text="Konstantin Elgazin" font="data/fonts/dsgoose_26_simple.xml" />
	   <text x="50" y="300" align="left" color="fffedd" text="Alexander Prokhorenko" font="data/fonts/dsgoose_26_simple.xml" />
	   
       <text x="320" y="140" align="left" color="fffedd" text="背景" font="data/fonts/dsgoose_20_simple.xml" />
       <text x="320" y="160" align="left" color="fffedd" text="Sergey Samarsky" font="data/fonts/dsgoose_26_simple.xml" />
   
    	<text x="320" y="200" align="left" color="fffedd" text="级别" font="data/fonts/dsgoose_20_simple.xml" />
	   <text x="320" y="220" align="left" color="fffedd" text="Bogdan Movchan" font="data/fonts/dsgoose_26_simple.xml" />
	   
   
   

      <button x="230" y="360" w="150" h="50" text="" on_click="setState:default">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
      </button>
    </container>

  
  
  




    <container w='1024' h='768' name="all_levels_complete" visible="0" >
      <state name="all_levels_complete" visible="1"/>
      <state name="map" visible="0"/>

      <container w="1024" h="768" x="0" y="0" color="ffffff00">
        <state name="all_levels_complete" color="ffffffff"/>
        <state name="map" color="ffffff00"/>
        <image w="1024" h="768" filename="data/gui/popap_shade.png" />
      </container>

      <container w="730" h="460" x="140" y="-460">
        <state name="all_levels_complete" x="140" y="150"/>
        <state name="map" x="140" y="-460"/>


        <image x='165' y='80' filename="data/gfx/menu_smaller.png" />



        <text x="398" y="160" align="center" color="ffffff" text="恭喜你!" font="data/fonts/dsgoose_26_simple.xml" />
        <text x="398" y="210" align="center" color="ffffff" text="你已经完成了" font="data/fonts/dsgoose_20_simple.xml" />
        <text x="398" y="230" align="center" color="ffffff" text="所有关卡." font="data/fonts/dsgoose_20_simple.xml" />




        <button x="320" y="265" w="150" h="50" on_click="setState:map">
          <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
          <image name="pressed" x="5" y="5" filename="data/gui/buttons/continue_a.png" visible="0" />
        </button>
      </container>

    </container>


    <container x="-1024" y="0" w="1024" h="768">

      <state name="hide" x="0" y="0" w="1024" h="768" />
      <state name="map" x="-1024" y="0" w="1024" h="768" />
      <state name="upgrade" x="-1024" y="0" w="1024" h="768" />




      <button x="0" y="0" w="1024" h="768" on_click="setState:map">
        <image name="default" x="0" y="0"  visible="1" />
        <image name="active" x="0" y="0"  visible="0" />
        <image name="pressed" x="5" y="5"  visible="0" />
      </button>


    </container>
    
    
    <container w='1024' h='768' x='0' y='0' visible="0">
      <state name="upgrade" visible="1"/>
      <state name="map" visible="0"/>

      <container w="1024" h="768" x="0" y="0" color="ffffff00">
        <state name="upgrade" color="ffffffff"/>
        <state name="map" color="ffffff00"/>
        <image w="1024" h="768" filename="data/gui/popap_shade.png" />
      </container>

      <container w="740" h="620" x='142' y='-800'>
        <state name="upgrade" visible="1" x='142' y='94' />
        <state name="map" visible="1" x='142' y='-800'/>

        <image9 x='3' y='3' w="740" h="640" filename="data/gui/big_cb_composit_h.png" corner="30"/>

        <container name="upgrades" w="740" h="620" content="data/partials/upgrades.xml" />

        <button x="300" y="550" w="140" h="50" text="" on_click="setState:map">
          <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
          <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
          <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
        </button>
        
        
      </container>
    </container>
    
    <container w='1024' h='768' x='0' y='0' visible="0">
       <state name="upgrade_popup" visible="1"/>
       <state name="upgrade" visible="0"/>
       <state name="map" visible="0"/>

       <container w="1024" h="768" x="0" y="0" color="ffffff00">
         <state name="upgrade_popup" color="ffffffff"/>
         <state name="upgrade" color="ffffff00"/>
         <state name="map" color="ffffff00"/>
         <image w="1024" h="768" filename="data/gui/popap_shade.png" />
       </container>

       <container w="740" h="620" x='250' y='-800'>
         <state name="upgrade_popup" visible="1" x='250' y='200' />
         <state name="upgrade" visible="1" x='250' y='-800'/>
         <state name="map" visible="1" x='250' y='-800'/>

         <image9 x='3' y='3' w="540" h="350" filename="data/gui/big_cb_composit_h.png" corner="30"/>

         <container x='210' y='100' name="upgrade_popup_content" w="600" h="620" />
		 
		    <text x="45" y="45"  align="Center" text="你确定要升级吗?" font="data/fonts/dsgoose_26_simple.xml" />
           
		 
		<button x="110" y="260" w="140" h="50" on_click="cancelBuyItem">
           <image name="default" x="0" y="0" filename="data/gui/buttons/back_d.png" visible="1" />
           <image name="active" x="0" y="0" filename="data/gui/buttons/back_a.png" visible="0" />
           <image name="pressed" x="5" y="5" filename="data/gui/buttons/back_p.png" visible="0" />
         </button>
		 
		 

         <button x="290" y="260" w="140" h="50" text="" on_click="completeBuyItem">
           <image name="default" x="0" y="0" filename="data/gui/buttons/upgrade_d.png" visible="1" />
           <image name="active" x="0" y="0" filename="data/gui/buttons/upgrade_a.png" visible="0" />
           <image name="pressed" x="1" y="1" filename="data/gui/buttons/upgrade_a.png" visible="0" />
         </button>
         
      
         
       </container>
     </container>
	
	   <image x="0" y="0" filename="data/gfx/f_left.png" />
  <image x="15" y="-1" filename="data/gfx/f_top.png" />
  <image x="15" y="764" filename="data/gfx/f_bottom.png" />
  <image x="1009" y="0" filename="data/gfx/f_right.png" />
	
	
 <image x="-238" y="0" filename="data/gfx/left_add.png" />
 <image x="1024" y="0" filename="data/gfx/right_add.png" />
 <image y="-100" w="1024" h="100" color="000000"/>
 <image y="768" w="1024" h="100" color="000000"/>
 
     
</scene>
