<gos>
  <go name="shipBuilder">
    <shipBuilder />
    <builderHistory />
    <go name="hud" templs="/templs/ui/builderHud/hud" />
  </go>
  <go name="controller">
    <focusGroup>
      <fake>true</fake>
    </focusGroup>
    <builderController />
  </go>
  <!--<go name="grabController" templs="controller">
    <grabController />
    <go name="cursor" templs="/templs/ui/grabCursor">
      <buildCursor>
        <snapFilter>lambda i: not i.coBuilderSelectable.jointedToSelected</snapFilter>
      </buildCursor>
    </go>
  </go>
  <go name="mainSelectController" templs="controller">
    <mainSelectController />
    <exitToMenuController />
    <go name="cursor" templs="/templs/ui/arrowCursor" />
  </go>
  <go name="weldController" templs="controller">
    <weldController />
    <go name="cursor" templs="/templs/ui/rivetCursor">
      <buildCursor>
        <snapFilter>lambda i: i.coBuilderSelectable.selected</snapFilter>
      </buildCursor>
    </go>
  </go>
  <go name="renameController" templs="/templs/ui/textEntry">
    <builderController />
    <go name="text">
      <focusGroup />
    </go>
  </go>
  <go name="newPieceMenuItem" templs="/templs/ui/ringMenuItem">
    <go name="selectedSprite">
      <spriteSource>
        <sprite>/vfx/empty.png</sprite>
      </spriteSource>
      <renderLayer>
        <layer>-2</layer>
      </renderLayer>
    </go>
    <go name="disabledSprite">
      <spriteSource>
        <sprite>/newPieceDisabled.png</sprite>
      </spriteSource>
    </go>
    <go name="backgroundSprite">
      <placement>
        <spaceName>ui</spaceName>
      </placement>
      <transformAttach>
        <targetGo>parent</targetGo>
      </transformAttach>
      <renderLayer>
        <layer>-1</layer>
      </renderLayer>
      <spriteSource>
        <sprite>/uiTest/iconBackground.png</sprite>
      </spriteSource>
      <spriteRender />
    </go>
  </go>
  <go name="newPieceDirMenuItem" templs="/templs/ui/ringMenuItem">
    <spriteSource>
      <sprite>/dirMenuItem.32x32.png</sprite>
    </spriteSource>
    <go name="selectedSprite">
      <spriteSource>
        <sprite>/vfx/empty.png</sprite>
      </spriteSource>
      <renderLayer>
        <layer>-1</layer>
      </renderLayer>
    </go>
    <go name="label">
      <placement>
        <spaceName>ui</spaceName>
      </placement>
      <transformAttach>
        <targetGo>parent</targetGo>
      </transformAttach>
      <textRender>
        <font>
          <face>/cour.ttf</face>
          <size>12</size>
          <antialiased>false</antialiased>
        </font>
        <text>dirName</text>
      </textRender>
      <renderLayer>
        <layer>20</layer>
      </renderLayer>
    </go>
    <go name="backgroundSprite">
      <placement>
        <spaceName>ui</spaceName>
      </placement>
      <transformAttach>
        <targetGo>parent</targetGo>
      </transformAttach>
      <spriteSource>
        <sprite>/uiTest/folderBackground.png</sprite>
      </spriteSource>
      <spriteRender />
      <renderLayer>
        <layer>-2</layer>
      </renderLayer>
    </go>
  </go>
  <go name="emptyNewPieceMenuItem" templs="newPieceMenuItem">
    <uiMenuItem>
      <value>empty</value>
    </uiMenuItem>
    <spriteSource>
      <sprite>/emptyPieceMenuItem.64x64.png</sprite>
    </spriteSource>
  </go>
  <go name="newPieceController" templs="/templs/ui/ringMenu controller">
    <uiMenu>
      <memoryName>newPiece</memoryName>
    </uiMenu>
    <uiNewPieceMenu />
    <go name="amonoDisplay" templs="/templs/ui/text1">
      <transformAttach>
        <targetGo>parent</targetGo>
        <offset>
          <translate>10,-50</translate>
        </offset>
      </transformAttach>
      <textRender>
        <text>pieceCostHere</text>
      </textRender>
      <go name="amonoIcon" templs="/templs/ui/text1">
        <renderLayer />
        <placement>
          <spaceName>ui</spaceName>
        </placement>
        <transformAttach>
          <targetGo>parent</targetGo>
          <offset>
            <translate>-30,24</translate>
          </offset>
        </transformAttach>
        <spriteRender />
        <spriteSource>
          <sprite>/uiTest/muscle.png</sprite>
        </spriteSource>
      </go>
    </go>
    <go name="bmonoDisplay" templs="/templs/ui/text1">
      <transformAttach>
        <targetGo>parent</targetGo>
        <offset>
          <translate>10,0</translate>
        </offset>
      </transformAttach>
      <textRender>
        <text>pieceCostHere</text>
      </textRender>
      <go name="bmonoIcon" templs="/templs/ui/text1">
        <renderLayer />
        <placement>
          <spaceName>ui</spaceName>
        </placement>
        <transformAttach>
          <targetGo>parent</targetGo>
          <offset>
            <translate>-30,24</translate>
          </offset>
        </transformAttach>
        <spriteRender />
        <spriteSource>
          <sprite>/uiTest/lightBulb.png</sprite>
        </spriteSource>
      </go>
    </go>
    <go name="cursor" templs="/templs/ui/arrowCursor" />
  </go>
  <go name="pieceLayerController" templs="controller">
    <layerController />
  </go>
  --><!-- Menu Chunks --><!--
  <go name="menuChunkItem" templs="/templs/ui/ringMenuItem">
    <go name="backgroundSprite">
      <placement>
        <spaceName>ui</spaceName>
      </placement>
      <transformAttach>
        <targetGo>parent</targetGo>
      </transformAttach>
      <spriteSource>
        <sprite>/uiTest/iconBackground.png</sprite>
      </spriteSource>
      <spriteRender />
      <renderLayer>
        <layer>-1</layer>
      </renderLayer>
    </go>
  </go>
  <go name="newMC">
    <go name="newPieceMenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>new</value>
        <nextControllerTempl>/templs/ui/newPieceMenu/player/menu</nextControllerTempl>
        <label>Add Piece</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/newPiece.png</sprite>
      </spriteSource>
    </go>
  </go>
  <go name="deleteMC">
    <go name="deleteMenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>delete</value>
        <label>Delete</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/delete.png</sprite>
      </spriteSource>
    </go>
    <deletableActionMenu />
  </go>
  <go name="flipMC">
    <go name="flipMenuItem" templs="menuChunkItem">
      <uiMenuItem>
        --><!--value>flip</value--><!--
      </uiMenuItem>
    </go>
    <flipActionMenu />
  </go>
  <go name="depthMC">
    <go name="depthMenuItem" templs="menuChunkItem">
      <uiMenuItem>
        --><!--value>changeLayer</value--><!--
        <nextControllerTempl>pieceLayerController</nextControllerTempl>
      </uiMenuItem>
    </go>
  </go>
  <go name="rivetMC">
    <go name="rivetMenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>rivet</value>
        <nextControllerTempl>weldController</nextControllerTempl>
        <label>Rivet</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/rivet.png</sprite>
      </spriteSource>
    </go>
  </go>
  <go name="toMotorMC">
    <weldActionMenu />
    <go name="convert0MenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>/templs/ship/motor</value>
        <label>To Motor</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/toMotor.png</sprite>
      </spriteSource>
    </go>
  </go>
  <go name="toPegMC">
    <weldActionMenu />
    <go name="convert1MenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>/templs/ship/peg</value>
        <label>To Peg</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/toPeg.png</sprite>
      </spriteSource>
    </go>
  </go>
  <go name="toWeldMC">
    <weldActionMenu />
    <go name="convert2MenuItem" templs="menuChunkItem">
      <uiMenuItem>
        <value>/templs/ship/weld</value>
        <label>To Weld</label>
      </uiMenuItem>
      <spriteSource>
        <sprite>/builder/toWeld.png</sprite>
      </spriteSource>
    </go>
  </go>
  --><!-- Action Menus --><!--
  <go name="actionMenu" templs="/templs/ui/ringMenu">
    <uiMenu>
      <memoryName>actionMenus</memoryName>
    </uiMenu>
    <go name="cursor" templs="/templs/ui/arrowCursor" />
  </go>
  <go name="noneActionController" templs="newMC actionMenu controller" />
  <go name="rootActionController" templs="newMC rivetMC actionMenu controller" />
  <go name="pieceActionController" templs="newMC rivetMC deleteMC actionMenu controller" />
  <go name="powerPlantActionController" templs="newMC rivetMC deleteMC actionMenu controller" />
  <go name="weldActionController" templs="toMotorMC toPegMC deleteMC actionMenu controller" />
  <go name="pegActionController" templs="toMotorMC toWeldMC deleteMC actionMenu controller" />
  <go name="motorActionController" templs="toWeldMC toPegMC deleteMC actionMenu controller" />
  <go name="startMenuController" templs="/templs/ui/menu controller">
    <go name="cursor" templs="/templs/ui/arrowCursor" />
    <startActionMenu />
    <go name="startAction" templs="/templs/ui/menuItem">
      <uiMenuItem>
        <value>startAction</value>
      </uiMenuItem>
      <uiText>
        <text>GO!</text>
      </uiText>
    </go>
    <go name="crewSelection" templs="/templs/ui/menuItem">
      <uiMenuItem>
        <value>crewSelection</value>
        <nextControllerTempl>/templs/ui/builder/crewSelection/crewSelection</nextControllerTempl>
      </uiMenuItem>
      <uiText>
        <text>Select Crew</text>
      </uiText>
    </go>
    <go name="renameMenuItem" templs="/templs/ui/menuItem">
      <uiMenuItem>
        <value>rename</value>
      </uiMenuItem>
      <uiText>
        <text>rename</text>
      </uiText>
    </go>
    <nameShipActionMenu />
    <go name="returnToMap" templs="/templs/ui/menuItem">
      <uiMenuItem>
        <value>returnAction</value>
      </uiMenuItem>
      <uiText>
        <text>Return to map</text>
      </uiText>
    </go>
  </go>
  <go name="resourceDisplay" templs="/templs/ui/box2">
    <uiWidget>
      <relAnchorPos>0.500000, 0.000000</relAnchorPos>
      <relPos>0.500000, 0.000000</relPos>
      <pixelPos>0.000000, 10.000000</pixelPos>
      <pixelMinSize>350.000000, 0.000000</pixelMinSize>
    </uiWidget>
    <uiPackBox>
      <isVertical>false</isVertical>
    </uiPackBox>
    <go name="rivetMode" templs="/templs/ui/menuLabel4">
      <uiText>
        <text>Auto</text>
      </uiText>
    </go>
    <go name="amonoLabel" templs="/templs/ui/menuLabel4">
      <uiText>
        <text>amono:</text>
      </uiText>
    </go>
    <go name="amono" templs="/templs/ui/menuLabel4" />
    <go name="bmonoLabel" templs="/templs/ui/menuLabel4">
      <uiText>
        <text>bmono:</text>
      </uiText>
    </go>
    <go name="bmono" templs="/templs/ui/menuLabel4" />
    <resourceDisplay />
  </go>
  <go name="testDot">
    <placement />
    <spriteSource>
      <sprite>/hud/marble.png</sprite>
    </spriteSource>
    <spriteRender />
    <renderLayer>
      <layer>10000</layer>
    </renderLayer>
    <shapeSource />
    <shapeRender>
      <lineColor>1, 1, 0, 1</lineColor>
    </shapeRender>
  </go>
  <go name="shipMoveCheat" templs="controller">
    <shipMoveCheat />
    <go name="cursor" templs="/templs/ui/grabCursor" />
  </go>-->
</gos>
