<container w='730' h='560' x='0' y='0' name="add_user_popup" visible="0">
  <state name="add_user" visible="1" on_end="setFocusByName:username_input"/>
  <state name="users" visible="0"/>


  <container w="730" h="560" 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='130' y='80' filename="data/gui/dialogue.png" />


    <text x="380" y="130" align="center" color="ffffffee" text="user_enter" font="data/fonts/dsgoose_26_simple.xml" />


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


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

    <button x="395" y="275" w="190" h="50" text="" on_click="MGUsersController addUser">
      <image name="default" x="0" y="0" filename="data/gui/buttons/m_addnew_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/m_addnew_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/m_addnew_a.png" visible="0" />
    </button>


    <button x="180" y="275" w="190" h="50" text="" on_click="setState:users">
      <image name="default" x="0" y="0" filename="data/gui/buttons/m_back_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/m_back_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/m_back_a.png" visible="0" />
    </button>

  </container>

</container>
