<container w='730' h='660' x='188' 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="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='74' y='80' filename="data/gui/menu_mini.png" />

    <text x="375" y="170" align="center" color="ffffffff" text="Enter your name" font="data/fonts/dsgoose_20_simple.xml" />


    <image  x='265' y='210' filename="data/gui/text_input.png" />


    <edit name='username_input' x="335" y="220" w='80' h="24" align="center" limit="10"  color="ffffffff" 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="385" y="290" w="170" h="80" text="" on_click="MGUsersController addUser">
      <image name="default" x="0" y="0" filename="data/gui/buttons/menu_add_new_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/menu_add_new_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/menu_add_new_a.png" visible="0" />
    </button>


    <button x="220" y="290" w="170" h="80" text="" on_click="setState:users">
      <image name="default" x="0" y="0" filename="data/gui/buttons/menu_back_d.png" visible="1" />
      <image name="active" x="0" y="0" filename="data/gui/buttons/menu_back_a.png" visible="0" />
      <image name="pressed" x="1" y="1" filename="data/gui/buttons/menu_back_a.png" visible="0" />
    </button>

  </container>

</container>
