<container w='1024' h='768' x='0' y='0' >
  
  <container w="1024" h="768" 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="460" x="150" y="150">
    
    <state name="initial" w="730" h="460" x='150' y='-460'/>
    <state name="closing" w="730" h="460" x='150' y='-460' on_end="removeLosePopup"/>
    
    <image w="420" h="300" x='165' y='80' filename="data/gui/popap_frame.png" />
    <image w="265" h="111" x='245' y='120' filename="data/gui/level_failed.png" />

    <button x="295" y="230" w="150" h="50" on_click="upgradesScreen">
      <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="295" y="280" w="150" h="50" on_click="closePopup">
      <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>
  </container>

</container>