<container w='730' h='768' x='0' y='0'>
  
  <container w="730" h="460" x="0" y="0">
    <state name="initial" color="ffffff00" />
    <state name="closing" color="ffffff00" />    
    <image w="1024" h="768" filename="data/gui/popap_shade.png" />
  </container>
  
  <container w="730" h="500" x="150" y="130">
    
    <state name="initial" w="450" h="500" x='150' y='-460'/>
	<state name="pauseM" w="450" h="500" x='150' y='130'/>
	<state name="settings" w="450" h="500" x='150' y='-460'/>
    <state name="closing" w="450" h="500" x='150' y='-460' on_end="removePopup"/>
    
    
    <image  x='145' y='80' filename="data/gui/popap_frame2.png" />
    <image w="295" h="64" x='224' y='75' filename="data/gui/game_paused.png" />

    <button x="292" y="170" w="150" h="50" on_click="exit">
      <image name="default" x="0" y="0" filename="data/gui/buttons/quit_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/quit_a.png" visible="0" />
      <image name="pressed" x="5" y="5" filename="data/gui/buttons/quit_a.png" visible="0" />
    </button>

    <button x="292" y="220" w="150" h="50" 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="5" y="5" filename="data/gui/buttons/restart_a.png" visible="0" />
    </button>

	
	
		    <button x="290" y="270" w="150" h="50" text="" on_click="setState:settings">
      <image name="default" x="0" y="0" filename="data/gui/buttons/settings_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/settings_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/settings_a.png" visible="0" />
    </button>
	
	

    <button x="292" y="320" w="150" h="50" text="" on_click="closePopup">
      <image name="default" x="0" y="0" filename="data/gui/buttons/resume_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/resume_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/resume_a.png" visible="0" />
    </button>
	
	
	

  </container>
  
  
  
   <container w="730" h="500" x="150" y="-460">
   
   
			<state name="settings" w="450" h="500" x='150' y='130'/>    
			<state name="pauseM" w="450" h="500" x='150' y='-460'/>
					 <image  x='145' y='80' filename="data/gui/popap_frame2.png" />
					<image w="295" h="64" x='230' y='80' filename="data/gui/settings.png" />


					<text x="390" y="174" align="center" color="fffeddf0" text="Fullscreen" font="data/fonts/calibri21.xml" />

					<checkbox x="300" 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="378" y="216" align="center" color="fffeddf0" text="Sound Volume" font="data/fonts/calibri21.xml" />

					<container name="sound_volume" x="278" 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_value2" key_filename="data/gui/SoundSliderDefault.png" on_change="setVolume:"/>
					</container>
					
						    <text x="378" y="266" align="center" color="fffeddf0" text="Music Volume" font="data/fonts/calibri21.xml" />

    <container name="Music_volume" x="278" 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="300" y="330" w="150" h="50" text="" on_click="setState:pauseM">
					<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>