<scene>
  
  <container name="background" />
  
  
    <image x="0" y="0" filename="data/gfx/f_left.png" />
  <image x="15" y="0" filename="data/gfx/f_top.png" />
  <image x="15" y="763" filename="data/gfx/f_bottom.png" />
  <image x="1009" y="0" filename="data/gfx/f_right.png" />
  
  

  <container w='1024' h='300' x='0' y='568' name="hud">
    <state name="start"       x='0' y='770' w='1024' h='300' />
    <transition from="start" to="default" time="1.5"/>
  </container> 






  <container x="55" y="10" w="918" h="648" name="board">
    <state name="pause" color="ffffff00" x="55" y="10" w="918" h="648"/>
    <state name="win" color="ffffff00" x="55" y="10" w="918" h="648"/>
    <state name="lose" color="ffffff00" x="55" y="10" w="918" h="648"/>
    <state name="start" color="ffffff00" x="55" y="10" w="918" h="648"/>
    <transition from="start" to="default" time="1.5"/>
  </container>
  <container x="55" y="10" w="918" h="648" name="turns" enabled="0"/>
  <container x="55" y="10" w="918" h="648" name="highlights" enabled="0"/>
  <image name="selection_marker" filename="data/gfx/board/selection_marker.png" visible="0" enabled="0"/>





  <image x="-238" y="0" filename="data/gfx/left_add.png" />
  <image x="1024" y="0" filename="data/gfx/right_add.png" />




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

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="win" 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="win" x="140" y="150"/>

      <image x='165' y='80' filename="data/gfx/menu_smaller.png" />
      <image w="330" h="70" x='230' y='80' filename="data/gui/popap_lvl_compl.png" />


      <text x="398" y="180" align="right" color="ffffff" text="分数:" font="data/fonts/dsgoose_26.xml" />
      <text x="398" y="200" align="right" color="ffffff" text="时间:" font="data/fonts/dsgoose_26.xml" />

      <text x="400" y="185" align="left" color="fffedd" name="final_score" text="0000" font="data/fonts/dsgoose_20_simple.xml" />
      <text x="400" y="205" align="left" color="fffedd" name="final_time" text="00:00" font="data/fonts/dsgoose_20_simple.xml" />

      <button x="320" y="265" w="150" h="50" on_click="puzzleMap">
        <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 w='1024' h='768' x='0' y='0' name="pause_menu" visible="0">
    <state name="pause" visible="1"/>

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="pause" color="ffffffff"/>
      <image filename="data/gfx/menu_shade.png" />
    </container>
  </container>

  <container w="1024" h="768" x="130" y="-768">
    <state name="pause" x="130" y="200"/>
    <state name="options" x="130" y="768"/>
	<state name="restart_question" x="130" y="768"/>
	<state name="exit_question" x="130" y="768"/>
    <image x='145' y='40' filename="data/gfx/menu_smaller2.png" />
    <image w="295" h="64" x='240' y='80' filename="data/gui/game_paused.png" />

    <button x="310" y="160" w="150" h="50" on_click="setState:exit_question">
      <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="5" y="5" filename="data/gui/buttons/exit_a.png" visible="0" />
    </button>

    <button x="310" y="210" w="150" h="50" on_click="setState:restart_question">
      <image name="default" x="0" y="0" filename="data/gui/buttons/restart_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/restart_a.png" visible="0" />
      <image name="pressed" x="5" y="5" filename="data/gui/buttons/restart_a.png" visible="0" />
    </button>


    <button x="310" y="260" w="150" h="50" text="" on_click="setState:options">
      <image name="default" x="0" y="0" filename="data/gui/buttons/options_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/options_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/options_a.png" visible="0" />
    </button>

    <button x="310" y="310" w="150" h="50" text="" on_click="continue">
      <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>



    <button x="310" y="420" w="150" h="50" text="" on_click="edit" visible="0">
      <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="730" h="460" x="140" y="-460">
        
		 <state name="pause" x="140" y="-460"/>
		<state name="options" x="140" y="180"/>
        
		
		<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="320" y="330" w="150" h="50" text="" on_click="setState:pause">
          <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='730' h='470' x='0' y='0' name="restart_question" visible="0">
    <state name="restart_question" visible="1"/>
	 <state name="pause" visible="0"/>


    <container w="730" h="470" x="130" y="-460">
      <state name="restart_question" x="130" y="170"/>
	  <state name="pause" 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_20_simple.xml" />
	     <text x="395" y="210" align="center" color="ffffffaa" text="已有级别将丢失." font="data/fonts/dsgoose_20_simple.xml" />


	     <button x="250" y="260" w="150" h="50" text="" on_click="setState:pause">
        <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_a.png" visible="0" />
      </button>
	  
	  
      <button x="390" y="260" w="150" h="50" text="" on_click="restart">
        <image name="default" x="0" y="0" filename="data/gui/buttons/restart_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/restart_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/restart_a.png" visible="0" />
      </button>

    </container>

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


    <container w="730" h="470" x="130" y="-460">
      <state name="exit_question" x="130" y="170"/>
	  <state name="pause" 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_20_simple.xml" />
	     <text x="395" y="210" align="center" color="ffffffaa" text="已有级别将丢失." font="data/fonts/dsgoose_20_simple.xml" />


	     <button x="250" y="260" w="150" h="50" text="" on_click="setState:pause">
        <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_a.png" visible="0" />
      </button>
	  
	  
      <button x="390" y="260" w="150" h="50" text="" on_click="puzzleMap">
        <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' visible="0">
    <state name="tutorial" visible="1"/>

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="tutorial" color="ffffffff"/>
      <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"/>

      <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" />

      <button x="150" y="240" w="150" h="50" text="" on_click="continue">
        <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>


  <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>
