<gos>
  <go name="menu" templs="/templs/ui/menu">
    <builderController />
    <focusGroup />
  </go>
  <go name="modeSelect" templs="menu">
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>Single Player</text>
      </uiText>
      <uiMenuItem>
        <value>sp</value>
        <nextControllerTempl>startVillage</nextControllerTempl>
      </uiMenuItem>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>Builder</text>
      </uiText>
      <uiMenuItem>
        <value>builder</value>
        <nextControllerTempl>spShipSelect</nextControllerTempl>
      </uiMenuItem>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>Enemy Builder</text>
      </uiText>
      <uiMenuItem>
        <value>enemyBuilder</value>
        <nextControllerTempl>enemyShipSelect</nextControllerTempl>
      </uiMenuItem>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>Level Default Builder</text>
      </uiText>
      <uiMenuItem>
        <value>levelDefaultBuilder</value>
        <nextControllerTempl>levelDefaultShipSelect</nextControllerTempl>
      </uiMenuItem>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>Multi Player</text>
      </uiText>
      <uiMenuItem>
        <value>mp</value>
        <nextControllerTempl>mp0ShipSelect</nextControllerTempl>
      </uiMenuItem>
    </go>
  </go>
  <go name="shipSelect" templs="menu">
    <folderSelectionMenu>
      <path>/playerShips</path>
    </folderSelectionMenu>
    <go name="preview">
      <placement>
        <transform>
          <translate>800.000000, 800.000000</translate>
        </transform>
      </placement>
      <folderSelectionPreview>
        <menu>parent</menu>
        <templName>ship</templName>
      </folderSelectionPreview>
    </go>
  </go>
  <go name="spShipSelect" templs="shipSelect">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Ship</text>
      </uiText>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>New Ship</text>
      </uiText>
      <uiMenuItem>
        <value>new</value>
        <nextControllerTempl>startBuilder</nextControllerTempl>
      </uiMenuItem>
      <newShipMenuItem />
    </go>
    <folderSelectionMenu>
      <configKey>ship.sp</configKey>
      <nextControllerTempl>spLevelSelect</nextControllerTempl>
    </folderSelectionMenu>
  </go>
  <go name="enemyShipSelect" templs="shipSelect">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Ship</text>
      </uiText>
    </go>
    <go templs="/templs/ui/menuItem">
      <uiText>
        <text>New Ship</text>
      </uiText>
      <uiMenuItem>
        <value>new</value>
        <nextControllerTempl>startBuilder</nextControllerTempl>
      </uiMenuItem>
      <newShipMenuItem />
    </go>
    <folderSelectionMenu>
      <configKey>ship.sp</configKey>
      <nextControllerTempl>spLevelSelect</nextControllerTempl>
      <path>/templs/enemyShips</path>
    </folderSelectionMenu>
  </go>
  <go name="levelDefaultShipSelect" templs="shipSelect">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Ship</text>
      </uiText>
    </go>
    <folderSelectionMenu>
      <configKey>ship.sp</configKey>
      <nextControllerTempl>spLevelSelect</nextControllerTempl>
      <path>/levelShips</path>
    </folderSelectionMenu>
  </go>
  <go name="mp0ShipSelect" templs="shipSelect">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Player 1 Ship</text>
      </uiText>
    </go>
    <folderSelectionMenu>
      <configKey>ship.mp0</configKey>
      <nextControllerTempl>mp1ShipSelect</nextControllerTempl>
    </folderSelectionMenu>
  </go>
  <go name="mp1ShipSelect" templs="shipSelect">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Player 2 Ship</text>
      </uiText>
    </go>
    <folderSelectionMenu>
      <configKey>ship.mp1</configKey>
      <nextControllerTempl>mpLevelSelect</nextControllerTempl>
    </folderSelectionMenu>
  </go>
  <go name="spLevelSelect" templs="menu">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Level</text>
      </uiText>
    </go>
    <folderSelectionMenu>
      <path>/levels/spLevels</path>
      <configKey>level.sp</configKey>
      <nextControllerTempl>startSpLevel</nextControllerTempl>
    </folderSelectionMenu>
  </go>
  <go name="mpLevelSelect" templs="menu">
    <go templs="/templs/ui/menuLabel2">
      <uiText>
        <text>Level</text>
      </uiText>
    </go>
    <folderSelectionMenu>
      <path>/levels/mpLevels</path>
      <configKey>level.mp</configKey>
      <nextControllerTempl>startMpLevel</nextControllerTempl>
    </folderSelectionMenu>
  </go>
  <go name="startBuilder">
    <builderController />
    <changeGameState>
      <funcName>startBuilder</funcName>
    </changeGameState>
  </go>
  <go name="startSpLevel">
    <builderController />
    <changeGameState>
      <funcName>startSpLevel</funcName>
    </changeGameState>
  </go>
  <go name="startMpLevel">
    <builderController />
    <changeGameState>
      <funcName>startMpLevel</funcName>
    </changeGameState>
  </go>
  <go name="startVillage">
    <builderController />
    <changeGameState>
      <funcName>startVillage</funcName>
    </changeGameState>
  </go>
</gos>
