//--- OBJECT WRITE BEGIN ---
new GuiControl(ui_overlayLobby) {
   profile = "GuiModelessDialogProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 8";
   visible = "1";
   
   new GuiWindowCtrl(LobbyWindow) {
      profile = "GuiMPWindowProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 -700";
      extent = "770 435";
      minExtent = "300 200";
      visible = "1";
      helpTag = "0";
      text = "Join a game or click 'play now' to auto join:";
      maxLength = "255";
      resizeWidth = "0";
      resizeHeight = "0";
      canMove = "0";
      canClose = "0";
      canMinimize = "0";
      canMaximize = "0";
      minSize = "50 50";
      closeCommand = "ommLogoff(\"LOG_OFF\");";
      
      new GuiBitmapCtrl() {
         profile = "GuiDefaultProfile";
         position = "12 11";
         extent = "16 16";
         bitmap = "pool/gui/images/ico_downRight";
      };
      new GuiScrollCtrl(ui_tableListScroll) {
         profile = "GuiMPScrollProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "10 35";
         extent = "724 324";
         minExtent = "8 2";
         visible = "1";
         willFirstRespond = "1";
         hScrollBar = "alwaysOff";
         vScrollBar = "alwaysOn";
         constantThumbHeight = "0";
         childMargin = "3 14";
         
         new GuiPoolTableListCtrl(ui_tableList) {
            profile = "GuiMPTableListProfile";
            horizSizing = "relative";
            vertSizing = "relative";
            position = "2 2";
            extent = "719 2";
            minExtent = "8 2";
            visible = "1";
            dividerWidth = "32";
            cellHeight = "34";
            btnProfile = "GuiMPButtonProfile";
            rowColor[0] = "33 73 142 255";
            rowColor[1] = "40 89 173 255";
         };
      };
      new GuiButtonCtrl() {
         profile = "GuiMPButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "658 364";
         extent = "72 35";
         minExtent = "8 8";
         visible = "1";
         command = "ui_tableList.refreshList();";
         text = "Refresh";
         groupNum = "-1";
         buttonType = "PushButton";
         simpleStyle = "0";
         helpTag = "0";
      };
   };
   new GuiPoolDialogCtrl(LobbyChat) {
      profile = "GuiMPChatDialogProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "50 958";
      extent = "660 250";
      minExtent = "8 8";
      visible = "1";
      
      new GuiBitmapCtrl() {
          profile = "GuiDefaultProfile";
          horizSizing = "right";
          vertSizing = "bottom";
          position = "-5 0";
          extent = "100 100";
          minExtent = "8 8";
          visible = "1";
          helpTag = "0";
          bitmap = "./images/btnOverlayMultiplayer";
          wrap = "0";
      };
      new GuiPoolDialogCtrl() {
         profile = "GuiMPScrollFrameProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "85 16";
         extent = "338 185";
         minExtent = "8 8";
         visible = "1";
         
         new GuiTextCtrl() {
            profile = "GuiMPSmallTextProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "12 2";
            extent = "44 18";
            minExtent = "8 2";
            visible = "1";
            text = "Chat";
            maxLength = "255";
         };
         new GuiControl() {
            profile = "GuiMPSolidGreenProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "5 24";
            extent = "305 124";
            minExtent = "8 8";
            visible = "1";
         };
         new GuiScrollCtrl(ui_chatListScroll) {
            profile = "GuiMPScrollProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "5 20";
            extent = "331 131";
            minExtent = "8 2";
            visible = "1";
            willFirstRespond = "1";
            hScrollBar = "alwaysOff";
            vScrollBar = "alwaysOn";
            constantThumbHeight = "0";
            childMargin = "3 14";
            
            new GuiMessageVectorCtrl(ui_chatList) {
               profile = "GuiMPChatListProfile";
               horizSizing = "relative";
               vertSizing = "relative";
               position = "2 2";
               extent = "300 2";
               minExtent = "8 2";
               visible = "1";
               enumerate = "0";
               resizeCell = "1";
               columns = "0";
               lineSpacing = "2";
               fitParentWidth = "1";
               clipColumnText = "0";
            };
         };
         new GuiTextEditCtrl(ui_chatBox) {
            profile = "GuiMPChatEditProfile";
            position = "5 152";
            extent = "260 26";
            horizSizing = "right";
            vertSizing = "bottom";
            canKeyFocus = "true";
            tab = "true";
            validate = "ommSendLobbyChat(ui_chatBox.getText());ui_chatBox.setText(\"\");";
         };
         new GuiButtonCtrl() {
            profile = "GuiMPButtonProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "264 149";
            extent = "72 35";
            minExtent = "8 8";
            visible = "1";
            command = "ommSendLobbyChat(ui_chatBox.getText());ui_chatBox.setText(\"\");";
            text = "Send";
            groupNum = "-1";
            buttonType = "PushButton";
            simpleStyle = "0";
            helpTag = "0";
         };
      };
      new GuiPoolDialogCtrl() {
         profile = "GuiMPScrollFrameProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "430 16";
         extent = "185 185";
         minExtent = "8 8";
         visible = "1";
         
         new GuiTextCtrl() {
            profile = "GuiMPSmallTextProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "12 2";
            extent = "44 18";
            minExtent = "8 2";
            visible = "1";
            text = "Players in the Lobby";
            maxLength = "255";
         };
         new GuiControl() {
            profile = "GuiMPSolidGreenProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "6 24";
            extent = "151 153";
            minExtent = "8 8";
            visible = "1";
         };
         new GuiScrollCtrl(ui_playerListScroll) {
            profile = "GuiMPScrollProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "5 20";
            extent = "178 160";
            minExtent = "8 2";
            visible = "1";
            willFirstRespond = "1";
            hScrollBar = "alwaysOff";
            vScrollBar = "alwaysOn";
            constantThumbHeight = "0";
            childMargin = "3 14";
            
            new GuiTextListCtrl(ui_playerList) {
               profile = "GuiMPTextListProfile";
               horizSizing = "relative";
               vertSizing = "relative";
               position = "2 2";
               extent = "173 2";
               minExtent = "8 2";
               visible = "1";
               enumerate = "0";
               resizeCell = "1";
               columns = "0";
               fitParentWidth = "1";
               clipColumnText = "0";
            };
         };
      };
   };
};
//--- OBJECT WRITE END ---
