1. //--- OBJECT WRITE BEGIN ---
  2. new GuiRTSTSCtrl(PlayGui) {
  3.    profile = "GuiRTSContentProfile";
  4.    horizSizing = "right";
  5.    vertSizing = "bottom";
  6.    position = "0 0";
  7.    extent = "800 600";
  8.    minExtent = "8 8";
  9.    visible = "1";
  10.    cameraZRot = "0";
  11.    forceFOV = "0";
  12.    renderMissionArea = "0";
  13.    missionAreaFillColor = "255 0 0 20";
  14.    missionAreaFrameColor = "255 0 0 128";
  15.    consoleFrameColor = "255 0 0 255";
  16.    consoleFillColor = "255 255 255 120";
  17.    consoleSphereLevel = "1";
  18.    consoleCircleSegments = "32";
  19.    consoleLineWidth = "1";
  20.    selectionLocked = "0";
  21.    selectionIncludesTeam = "1";
  22.    dragSelectionIncludesTeam = "0";
  23.       helpTag = "0";
  24.       firstResponder = "1";
  25.       tooltipprofile = "tooltipprofile";
  26.  
  27.    new GuiBitmapCtrl(LagIcon) {
  28.       profile = "GuiDefaultProfile";
  29.       horizSizing = "right";
  30.       vertSizing = "bottom";
  31.       position = "572 3";
  32.       extent = "32 32";
  33.       minExtent = "8 8";
  34.       visible = "0";
  35.       bitmap = "./lagIcon.png";
  36.       wrap = "0";
  37.          helpTag = "0";
  38.    };
  39.    new GuiBitmapCtrl(centerPrintDlg) {
  40.       profile = "CenterPrintProfile";
  41.       horizSizing = "center";
  42.       vertSizing = "center";
  43.       position = "125 290";
  44.       extent = "550 20";
  45.       minExtent = "8 8";
  46.       visible = "0";
  47.       bitmap = "./hudfill.png";
  48.       wrap = "0";
  49.  
  50.       new GuiMLTextCtrl(CenterPrintText) {
  51.          profile = "CenterPrintTextProfile";
  52.          horizSizing = "center";
  53.          vertSizing = "center";
  54.          position = "0 0";
  55.          extent = "546 12";
  56.          minExtent = "8 8";
  57.          visible = "1";
  58.          lineSpacing = "2";
  59.          allowColorChars = "0";
  60.          maxChars = "-1";
  61.       };
  62.    };
  63.    new GuiBitmapCtrl(bottomPrintDlg) {
  64.       profile = "CenterPrintProfile";
  65.       horizSizing = "center";
  66.       vertSizing = "top";
  67.       position = "125 350";
  68.       extent = "550 36";
  69.       minExtent = "8 8";
  70.       visible = "0";
  71.       bitmap = "./hudfill.png";
  72.       wrap = "0";
  73.          tooltipprofile = "CenterPrintProfile";
  74.  
  75.       new GuiMLTextCtrl(bottomPrintText) {
  76.          profile = "CenterPrintTextProfile";
  77.          horizSizing = "center";
  78.          vertSizing = "center";
  79.          position = "0 0";
  80.          extent = "546 12";
  81.          minExtent = "8 8";
  82.          visible = "1";
  83.          lineSpacing = "2";
  84.          allowColorChars = "0";
  85.          maxChars = "-1";
  86.             tooltipprofile = "CenterPrintTextProfile";
  87.       };
  88.    };
  89.    new GuiControl(CommandMenu) {
  90.       profile = "GuiDefaultProfile";
  91.       horizSizing = "left";
  92.       vertSizing = "top";
  93.       position = "650 520";
  94.       extent = "150 80";
  95.       minExtent = "8 2";
  96.       visible = "1";
  97.  
  98.       new GuiBitmapCtrl(CM_Background) {
  99.          profile = "GuiDefaultProfile";
  100.          horizSizing = "right";
  101.          vertSizing = "bottom";
  102.          position = "0 0";
  103.          extent = "148 80";
  104.          minExtent = "8 2";
  105.          visible = "1";
  106.          bitmap = "./commands/background";
  107.          wrap = "0";
  108.       };
  109.       new GuiBitmapButtonCtrl(CM_Move) {
  110.          profile = "GuiDefaultProfile";
  111.          horizSizing = "left";
  112.          vertSizing = "top";
  113.          position = "7 7";
  114.          extent = "32 32";
  115.          minExtent = "8 2";
  116.          visible = "1";
  117.          command = "CommandMenu::onMoveClick();";
  118.          text = "Move";
  119.          groupNum = "-1";
  120.          buttonType = "PushButton";
  121.          bitmap = "./commands/move";
  122.             tooltipprofile = "GuiButtonProfile";
  123.             ToolTip = "Move";
  124.       };
  125.       new GuiBitmapButtonCtrl(CM_Stop) {
  126.          profile = "GuiDefaultProfile";
  127.          horizSizing = "left";
  128.          vertSizing = "top";
  129.          position = "42 7";
  130.          extent = "32 32";
  131.          minExtent = "8 2";
  132.          visible = "1";
  133.          command = "CommandMenu::onStopClick();";
  134.          text = "Stop";
  135.          groupNum = "-1";
  136.          buttonType = "PushButton";
  137.          bitmap = "./commands/stop";
  138.             tooltipprofile = "GuiButtonProfile";
  139.             ToolTip = "stop";
  140.       };
  141.       new GuiBitmapButtonCtrl(CM_BuffMinus) {
  142.          profile = "GuiDefaultProfile";
  143.          horizSizing = "left";
  144.          vertSizing = "top";
  145.          position = "109 42";
  146.          extent = "32 32";
  147.          minExtent = "8 2";
  148.          visible = "1";
  149.          command = "CommandMenu::onBuffMinusClick();";
  150.          text = "BuffMinus";
  151.          groupNum = "-1";
  152.          buttonType = "PushButton";
  153.          bitmap = "./commands/buffminus";
  154.             tooltipprofile = "GuiButtonProfile";
  155.             ToolTip = "Debuff";
  156.       };
  157.       new GuiBitmapButtonCtrl(CM_BuffPlus) {
  158.          profile = "GuiDefaultProfile";
  159.          horizSizing = "left";
  160.          vertSizing = "top";
  161.          position = "109 7";
  162.          extent = "32 32";
  163.          minExtent = "8 2";
  164.          visible = "1";
  165.          command = "CommandMenu::onBuffPlusClick();";
  166.          text = "BuffPlus";
  167.          groupNum = "-1";
  168.          buttonType = "PushButton";
  169.          bitmap = "./commands/buffplus";
  170.             tooltipprofile = "GuiButtonProfile";
  171.             ToolTip = "Buff";
  172.       };
  173.       new GuiBitmapButtonCtrl(CM_Attack) {
  174.          profile = "GuiDefaultProfile";
  175.          horizSizing = "left";
  176.          vertSizing = "top";
  177.          position = "7 42";
  178.          extent = "32 32";
  179.          minExtent = "8 2";
  180.          visible = "1";
  181.          command = "CommandMenu::onAttackClick();";
  182.          text = "Attack";
  183.          groupNum = "-1";
  184.          buttonType = "PushButton";
  185.          bitmap = "./commands/attack";
  186.             tooltipprofile = "GuiButtonProfile";
  187.             ToolTip = "Attack";
  188.       };
  189.       new GuiBitmapButtonCtrl(CM_Hold) {
  190.          profile = "GuiDefaultProfile";
  191.          horizSizing = "left";
  192.          vertSizing = "top";
  193.          position = "42 42";
  194.          extent = "32 32";
  195.          minExtent = "8 2";
  196.          visible = "1";
  197.          command = "CommandMenu::onHoldClick();";
  198.          text = "Hold";
  199.          groupNum = "-1";
  200.          buttonType = "PushButton";
  201.          bitmap = "./commands/hold";
  202.             tooltipprofile = "GuiButtonProfile";
  203.             ToolTip = "Hold";
  204.       };
  205.    };
  206.    new GuiControl(MapDisplay) {
  207.       profile = "GuiDefaultProfile";
  208.       horizSizing = "right";
  209.       vertSizing = "top";
  210.       position = "0 390";
  211.       extent = "210 210";
  212.       minExtent = "8 2";
  213.       visible = "1";
  214.  
  215.       new GuiBitmapCtrl(MapDisplay_Background) {
  216.          profile = "GuiDefaultProfile";
  217.          horizSizing = "left";
  218.          vertSizing = "top";
  219.          position = "0 0";
  220.          extent = "210 210";
  221.          minExtent = "8 2";
  222.          visible = "1";
  223.          bitmap = "./mapHud_Background";
  224.          wrap = "0";
  225.             tooltipprofile = "GuiDefaultProfile";
  226.       };
  227.       new GuiMapHud(MapHud) {
  228.          profile = "GuiDefaultProfile";
  229.          horizSizing = "right";
  230.          vertSizing = "top";
  231.          position = "5 5";
  232.          extent = "200 200";
  233.          minExtent = "8 2";
  234.          visible = "1";
  235.          cameraZRot = "0";
  236.          forceFOV = "0";
  237.          textureSize = "200";
  238.          pingTexture = "./ring_white";
  239.             tooltipprofile = "GuiDefaultProfile";
  240.       };
  241.    };
  242.    new GuiControl(SelectionDisplay) {
  243.       profile = "GuiDefaultProfile";
  244.       horizSizing = "left";
  245.       vertSizing = "top";
  246.       position = "418 520";
  247.       extent = "232 80";
  248.       minExtent = "8 2";
  249.       visible = "1";
  250.  
  251.       new GuiBitmapCtrl(SD_Background) {
  252.          profile = "GuiDefaultProfile";
  253.          horizSizing = "right";
  254.          vertSizing = "bottom";
  255.          position = "0 0";
  256.          extent = "237 80";
  257.          minExtent = "8 2";
  258.          visible = "1";
  259.          bitmap = "./SD_Background";
  260.          wrap = "0";
  261.             tooltipprofile = "GuiDefaultProfile";
  262.       };
  263.       new GuiBitmapCtrl(SD_Portrait_0) {
  264.          profile = "GuiDefaultProfile";
  265.          horizSizing = "right";
  266.          vertSizing = "bottom";
  267.          position = "10 10";
  268.          extent = "32 32";
  269.          minExtent = "8 2";
  270.          visible = "0";
  271.          bitmap = "./selectionDisplay/warriorPortrait";
  272.          wrap = "0";
  273.       };
  274.       new GuiBitmapCtrl(SD_Portrait_1) {
  275.          profile = "GuiDefaultProfile";
  276.          horizSizing = "right";
  277.          vertSizing = "bottom";
  278.          position = "47 10";
  279.          extent = "32 32";
  280.          minExtent = "8 2";
  281.          visible = "0";
  282.          bitmap = "./selectionDisplay/knightressPortrait";
  283.          wrap = "0";
  284.       };
  285.       new GuiBitmapCtrl(SD_Portrait_2) {
  286.          profile = "GuiDefaultProfile";
  287.          horizSizing = "right";
  288.          vertSizing = "bottom";
  289.          position = "84 10";
  290.          extent = "32 32";
  291.          minExtent = "8 2";
  292.          visible = "0";
  293.          bitmap = "./selectionDisplay/archerPortrait";
  294.          wrap = "0";
  295.       };
  296.       new GuiBitmapCtrl(SD_Portrait_3) {
  297.          profile = "GuiDefaultProfile";
  298.          horizSizing = "right";
  299.          vertSizing = "bottom";
  300.          position = "121 10";
  301.          extent = "32 32";
  302.          minExtent = "8 2";
  303.          visible = "0";
  304.          bitmap = "./selectionDisplay/villagerPortrait";
  305.          wrap = "0";
  306.       };
  307.       new GuiBitmapCtrl(SD_Portrait_4) {
  308.          profile = "GuiDefaultProfile";
  309.          horizSizing = "right";
  310.          vertSizing = "bottom";
  311.          position = "158 10";
  312.          extent = "32 32";
  313.          minExtent = "8 2";
  314.          visible = "0";
  315.          bitmap = "./selectionDisplay/beastPortrait";
  316.          wrap = "0";
  317.       };
  318.       new GuiBitmapCtrl(SD_Portrait_5) {
  319.          profile = "GuiDefaultProfile";
  320.          horizSizing = "right";
  321.          vertSizing = "bottom";
  322.          position = "195 10";
  323.          extent = "32 32";
  324.          minExtent = "8 2";
  325.          visible = "0";
  326.          bitmap = "./selectionDisplay/goblinPortrait";
  327.          wrap = "0";
  328.       };
  329.       new GuiBitmapCtrl(SD_Portrait_6) {
  330.          profile = "GuiDefaultProfile";
  331.          horizSizing = "right";
  332.          vertSizing = "bottom";
  333.          position = "195 10";
  334.          extent = "32 32";
  335.          minExtent = "8 2";
  336.          visible = "0";
  337.          bitmap = "./selectionDisplay/stonemanPortrait";
  338.          wrap = "0";
  339.       };      
  340.       new GuiBitmapCtrl(SD_Portrait_7) {
  341.          profile = "GuiDefaultProfile";
  342.          horizSizing = "right";
  343.          vertSizing = "bottom";
  344.          position = "195 10";
  345.          extent = "32 32";
  346.          minExtent = "8 2";
  347.          visible = "0";
  348.          bitmap = "./selectionDisplay/guardianPortrait";
  349.          wrap = "0";
  350.       };            
  351.       new GuiBitmapCtrl(SD_Portrait_8) {
  352.          profile = "GuiDefaultProfile";
  353.          horizSizing = "right";
  354.          vertSizing = "bottom";
  355.          position = "195 10";
  356.          extent = "32 32";
  357.          minExtent = "8 2";
  358.          visible = "0";
  359.          bitmap = "./selectionDisplay/shamanPortrait";
  360.          wrap = "0";
  361.       };        
  362.       new GuiTextListCtrl(SD_Selection) {
  363.          profile = "GuiTextArrayProfile";
  364.          horizSizing = "right";
  365.          vertSizing = "bottom";
  366.          position = "10 42";
  367.          extent = "11 34";
  368.          minExtent = "8 8";
  369.          visible = "1";
  370.          enumerate = "0";
  371.          resizeCell = "0";
  372.          columns = "3 40 77 114 151 188";
  373.          fitParentWidth = "0";
  374.          clipColumnText = "0";
  375.             tooltipprofile = "GuiTextArrayProfile";
  376.       };
  377.    };
  378.    new GuiControl(WorkingOrders) {
  379.       profile = "GuiDefaultProfile";
  380.       horizSizing = "left";
  381.       vertSizing = "top";
  382.       position = "650 520";
  383.       extent = "150 80";
  384.       minExtent = "8 2";
  385.       visible = "0";
  386.  
  387.       new GuiBitmapCtrl(WO_Background) {
  388.          profile = "GuiDefaultProfile";
  389.          horizSizing = "right";
  390.          vertSizing = "bottom";
  391.          position = "0 0";
  392.          extent = "148 80";
  393.          minExtent = "8 2";
  394.          visible = "1";
  395.          bitmap = "./commands/background";
  396.          wrap = "0";
  397.       };
  398.       new GuiBitmapButtonCtrl(WO_TownCenter) {
  399.          profile = "GuiDefaultProfile";
  400.          horizSizing = "left";
  401.          vertSizing = "top";
  402.          position = "7 7";
  403.          extent = "32 32";
  404.          minExtent = "8 2";
  405.          visible = "1";
  406.          command = "startPlaceBuilding(\"townCenter\");";
  407.          text = "TownCenter";
  408.          groupNum = "-1";
  409.          buttonType = "PushButton";
  410.          bitmap = "./buildingDisplay/icon_townCenter";
  411.             tooltipprofile = "GuiButtonProfile";
  412.             ToolTip = "TownCenter";
  413.       };
  414.       new GuiBitmapButtonCtrl(WO_Barracks) {
  415.          profile = "GuiDefaultProfile";
  416.          horizSizing = "left";
  417.          vertSizing = "top";
  418.          position = "42 7";
  419.          extent = "32 32";
  420.          minExtent = "8 2";
  421.          visible = "1";
  422.          command = "startPlaceBuilding(\"barracks\");";
  423.          text = "Barracks";
  424.          groupNum = "-1";
  425.          buttonType = "PushButton";
  426.          bitmap = "./buildingDisplay/icon_barracks";
  427.             tooltipprofile = "GuiButtonProfile";
  428.             ToolTip = "Barracks";
  429.       };
  430.       new GuiBitmapButtonCtrl(WO_Foundry) {
  431.          profile = "GuiDefaultProfile";
  432.          horizSizing = "left";
  433.          vertSizing = "top";
  434.          position = "109 42";
  435.          extent = "32 32";
  436.          minExtent = "8 2";
  437.          visible = "1";
  438.          command = "startPlaceBuilding(\"foundry\");";
  439.          text = "Foundry";
  440.          groupNum = "-1";
  441.          buttonType = "PushButton";
  442.          bitmap = "./buildingDisplay/icon_foundry";
  443.             tooltipprofile = "GuiButtonProfile";
  444.             ToolTip = "Foundry";
  445.       };
  446.       new GuiBitmapButtonCtrl(WO_Shop) {
  447.          profile = "GuiDefaultProfile";
  448.          horizSizing = "left";
  449.          vertSizing = "top";
  450.          position = "109 7";
  451.          extent = "32 32";
  452.          minExtent = "8 2";
  453.          visible = "1";
  454.          command = "startPlaceBuilding(\"shop\");";
  455.          text = "Shop";
  456.          groupNum = "-1";
  457.          buttonType = "PushButton";
  458.          bitmap = "./buildingDisplay/icon_shop";
  459.             tooltipprofile = "GuiButtonProfile";
  460.             ToolTip = "Shop";
  461.       };
  462.       new GuiBitmapButtonCtrl(WO_Factory) {
  463.          profile = "GuiDefaultProfile";
  464.          horizSizing = "left";
  465.          vertSizing = "top";
  466.          position = "7 42";
  467.          extent = "32 32";
  468.          minExtent = "8 2";
  469.          visible = "1";
  470.          command = "startPlaceBuilding(\"factory\");";
  471.          text = "Factory";
  472.          groupNum = "-1";
  473.          buttonType = "PushButton";
  474.          bitmap = "./buildingDisplay/icon_factory";
  475.             tooltipprofile = "GuiButtonProfile";
  476.             ToolTip = "Factory";
  477.       };
  478.       new GuiBitmapButtonCtrl(WO_Farm) {
  479.          profile = "GuiDefaultProfile";
  480.          horizSizing = "left";
  481.          vertSizing = "top";
  482.          position = "42 42";
  483.          extent = "32 32";
  484.          minExtent = "8 2";
  485.          visible = "1";
  486.          command = "startPlaceBuilding(\"farm\");";
  487.          text = "Farm";
  488.          groupNum = "-1";
  489.          buttonType = "PushButton";
  490.          bitmap = "./buildingDisplay/icon_farm";
  491.             tooltipprofile = "GuiButtonProfile";
  492.             ToolTip = "Farm";
  493.       };
  494.    };
  495.    new GuiControl(MainChatHud) {
  496.       profile = "GuiModelessDialogProfile";
  497.       horizSizing = "width";
  498.       vertSizing = "height";
  499.       position = "211 561";
  500.       extent = "205 128";
  501.       minExtent = "8 8";
  502.       visible = "1";
  503.          helpTag = "0";
  504.  
  505.       new GuiControl(ChatHud) {
  506.          profile = "GuiDefaultProfile";
  507.          horizSizing = "left";
  508.          vertSizing = "top";
  509.          position = "-224 -167";
  510.          extent = "427 188";
  511.          minExtent = "8 8";
  512.          visible = "1";
  513.             helpTag = "0";
  514.             tooltipprofile = "GuiDefaultProfile";
  515.  
  516.          new GuiBitmapBorderCtrl(OuterChatHud) {
  517.             profile = "ChatHudBorderProfile";
  518.             horizSizing = "width";
  519.             vertSizing = "bottom";
  520.             position = "0 0";
  521.             extent = "428 72";
  522.             minExtent = "8 8";
  523.             visible = "1";
  524.                helpTag = "0";
  525.                useVariable = "0";
  526.                tooltipprofile = "ChatHudBorderProfile";
  527.                tile = "0";
  528.  
  529.             new GuiBitmapCtrl() {
  530.                profile = "GuiDefaultProfile";
  531.                horizSizing = "width";
  532.                vertSizing = "height";
  533.                position = "8 8";
  534.                extent = "412 56";
  535.                minExtent = "8 8";
  536.                visible = "1";
  537.                bitmap = "./hudfill.png";
  538.                wrap = "0";
  539.                   helpTag = "0";
  540.             };
  541.             new GuiButtonCtrl(ChatPageDown) {
  542.                profile = "GuiButtonProfile";
  543.                horizSizing = "left";
  544.                vertSizing = "top";
  545.                position = "376 42";
  546.                extent = "36 14";
  547.                minExtent = "8 8";
  548.                visible = "0";
  549.                text = "Dwn";
  550.                groupNum = "-1";
  551.                buttonType = "PushButton";
  552.                   helpTag = "0";
  553.             };
  554.             new GuiScrollCtrl(ChatScrollHud) {
  555.                profile = "ChatHudScrollProfile";
  556.                horizSizing = "width";
  557.                vertSizing = "height";
  558.                position = "8 8";
  559.                extent = "412 56";
  560.                minExtent = "8 8";
  561.                visible = "1";
  562.                willFirstRespond = "1";
  563.                hScrollBar = "alwaysOff";
  564.                vScrollBar = "alwaysOff";
  565.                constantThumbHeight = "0";
  566.                childMargin = "0 0";
  567.                   helpTag = "0";
  568.                   tooltipprofile = "ChatHudScrollProfile";
  569.  
  570.                new GuiMessageVectorCtrl(ChatHud) {
  571.                   profile = "ChatHudMessageProfile";
  572.                   horizSizing = "width";
  573.                   vertSizing = "height";
  574.                   position = "1 1";
  575.                   extent = "408 16";
  576.                   minExtent = "8 8";
  577.                   visible = "1";
  578.                   lineSpacing = "0";
  579.                   lineContinuedIndex = "10";
  580.                   allowedMatches[0] = "http";
  581.                   allowedMatches[1] = "tgeserver";
  582.                   matchColor = "0 0 255 255";
  583.                   maxColorIndex = "5";
  584.                      helpTag = "0";
  585.                      tooltipprofile = "ChatHudMessageProfile";
  586.                };
  587.             };
  588.          };
  589.       };
  590.    };
  591.    new GuiControl(SupplyDisplay) {
  592.       profile = "GuiDefaultProfile";
  593.       horizSizing = "left";
  594.       vertSizing = "top";
  595.       position = "601 440";
  596.       extent = "189 76";
  597.       minExtent = "8 2";
  598.       visible = "1";
  599.          tooltipprofile = "GuiDefaultProfile";
  600.  
  601.       new GuiBitmapCtrl(SUP_Gold) {
  602.          profile = "GuiDefaultProfile";
  603.          horizSizing = "left";
  604.          vertSizing = "top";
  605.          position = "10 10";
  606.          extent = "32 32";
  607.          minExtent = "8 2";
  608.          visible = "1";
  609.          bitmap = "./resourceDisplay/icon_gold";
  610.          wrap = "0";
  611.             tooltipprofile = "GuiDefaultProfile";
  612.             ToolTip = "Gold";
  613.       };
  614.       new GuiBitmapCtrl(SUP_Wood) {
  615.          profile = "GuiDefaultProfile";
  616.          horizSizing = "left";
  617.          vertSizing = "top";
  618.          position = "48 10";
  619.          extent = "32 32";
  620.          minExtent = "8 2";
  621.          visible = "1";
  622.          bitmap = "./resourceDisplay/icon_wood";
  623.          wrap = "0";
  624.             tooltipprofile = "GuiDefaultProfile";
  625.             ToolTip = "Wood";
  626.       };
  627.       new GuiBitmapCtrl(SUP_Food) {
  628.          profile = "GuiDefaultProfile";
  629.          horizSizing = "left";
  630.          vertSizing = "top";
  631.          position = "84 10";
  632.          extent = "32 32";
  633.          minExtent = "8 2";
  634.          visible = "1";
  635.          bitmap = "./resourceDisplay/icon_food";
  636.          wrap = "0";
  637.             tooltipprofile = "GuiDefaultProfile";
  638.             ToolTip = "Food";
  639.       };
  640.       new GuiBitmapCtrl(SUP_Stone) {
  641.          profile = "GuiDefaultProfile";
  642.          horizSizing = "left";
  643.          vertSizing = "top";
  644.          position = "122 10";
  645.          extent = "32 32";
  646.          minExtent = "8 2";
  647.          visible = "1";
  648.          bitmap = "./resourceDisplay/icon_stone";
  649.          wrap = "0";
  650.             tooltipprofile = "GuiDefaultProfile";
  651.             ToolTip = "Stone";
  652.       };
  653.       new GuiTextCtrl(SUP_Gold_Count) {
  654.          profile = "NormalTextProfile";
  655.          horizSizing = "left";
  656.          vertSizing = "top";
  657.          position = "12 48";
  658.          extent = "24 18";
  659.          minExtent = "8 18";
  660.          visible = "1";
  661.          maxLength = "5";
  662.             tooltipprofile = "GuiDefaultProfile";
  663.       };
  664.       new GuiTextCtrl(SUP_Wood_Count) {
  665.          profile = "NormalTextProfile";
  666.          horizSizing = "left";
  667.          vertSizing = "top";
  668.          position = "55 48";
  669.          extent = "18 18";
  670.          minExtent = "8 18";
  671.          visible = "1";
  672.          maxLength = "5";
  673.             tooltipprofile = "GuiDefaultProfile";
  674.       };
  675.       new GuiTextCtrl(SUP_Food_count) {
  676.          profile = "GettingLowTextProfile";
  677.          horizSizing = "left";
  678.          vertSizing = "top";
  679.          position = "94 48";
  680.          extent = "12 18";
  681.          minExtent = "8 18";
  682.          visible = "1";
  683.          maxLength = "5";
  684.             tooltipprofile = "GuiDefaultProfile";
  685.       };
  686.       new GuiTextCtrl(SUP_Stone_count) {
  687.          profile = "NormalTextProfile";
  688.          horizSizing = "left";
  689.          vertSizing = "top";
  690.          position = "125 48";
  691.          extent = "18 18";
  692.          minExtent = "8 18";
  693.          visible = "1";
  694.          maxLength = "5";
  695.       };
  696.    };
  697.    new GuiControl(BuildingDisplay) {
  698.       profile = "GuiDefaultProfile";
  699.       horizSizing = "left";
  700.       vertSizing = "top";
  701.       position = "650 520";
  702.       extent = "150 80";
  703.       minExtent = "8 2";
  704.       visible = "0";
  705.          tooltipprofile = "GuiDefaultProfile";
  706.  
  707.       new GuiBitmapCtrl(Building_Background) {
  708.          profile = "GuiDefaultProfile";
  709.          horizSizing = "right";
  710.          vertSizing = "bottom";
  711.          position = "0 0";
  712.          extent = "148 80";
  713.          minExtent = "8 2";
  714.          visible = "1";
  715.          bitmap = "./commands/background";
  716.          wrap = "0";
  717.             tooltipprofile = "GuiDefaultProfile";
  718.       };
  719.       new GuiBitmapCtrl(BD_Selected_Image) {
  720.          profile = "GuiDefaultProfile";
  721.          horizSizing = "right";
  722.          vertSizing = "bottom";
  723.          position = "7 8";
  724.          extent = "138 75";
  725.          minExtent = "8 2";
  726.          visible = "1";
  727.          wrap = "0";
  728.             tooltipprofile = "GuiDefaultProfile";
  729.       };
  730.    };
  731.    new GuiControl(BuildingMenu) {
  732.       profile = "GuiDefaultProfile";
  733.       horizSizing = "left";
  734.       vertSizing = "top";
  735.       position = "418 520";
  736.       extent = "232 80";
  737.       minExtent = "8 2";
  738.       visible = "0";
  739.          tooltipprofile = "GuiDefaultProfile";
  740.  
  741.       new GuiBitmapCtrl(BM_Background) {
  742.          profile = "GuiDefaultProfile";
  743.          horizSizing = "right";
  744.          vertSizing = "bottom";
  745.          position = "0 0";
  746.          extent = "237 80";
  747.          minExtent = "8 2";
  748.          visible = "1";
  749.          bitmap = "./SD_Background";
  750.          wrap = "0";
  751.             tooltipprofile = "GuiDefaultProfile";
  752.       };
  753.       new GuiBitmapButtonCtrl(BM_Action_0) {
  754.          profile = "GuiDefaultProfile";
  755.          horizSizing = "right";
  756.          vertSizing = "bottom";
  757.          position = "10 10";
  758.          extent = "32 32";
  759.          minExtent = "8 2";
  760.          visible = "1";
  761.          command = "BuildingMenu::onTrain0Click();";
  762.          text = "Button";
  763.          groupNum = "-1";
  764.          buttonType = "PushButton";
  765.          bitmap = "./buildingDisplay/train_0";
  766.             wrap = "0";
  767.             tooltipprofile = "GuiDefaultProfile";
  768.             ToolTip = "Train Warrior";
  769.       };
  770.       new GuiBitmapButtonCtrl(BM_Action_1) {
  771.          profile = "GuiDefaultProfile";
  772.          horizSizing = "right";
  773.          vertSizing = "bottom";
  774.          position = "47 10";
  775.          extent = "32 32";
  776.          minExtent = "8 2";
  777.          visible = "1";
  778.          command = "BuildingMenu::onTrain1Click();";
  779.          text = "Button";
  780.          groupNum = "-1";
  781.          buttonType = "PushButton";
  782.          bitmap = "./buildingDisplay/train_1";
  783.             wrap = "0";
  784.             tooltipprofile = "GuiDefaultProfile";
  785.             ToolTip = "Train Knightress";
  786.       };
  787.       new GuiBitmapButtonCtrl(BM_Action_2) {
  788.          profile = "GuiDefaultProfile";
  789.          horizSizing = "right";
  790.          vertSizing = "bottom";
  791.          position = "84 10";
  792.          extent = "32 32";
  793.          minExtent = "8 2";
  794.          visible = "1";
  795.          command = "BuildingMenu::onTrain2Click();";
  796.          text = "Button";
  797.          groupNum = "-1";
  798.          buttonType = "PushButton";
  799.          bitmap = "./buildingDisplay/train_2";
  800.             wrap = "0";
  801.             tooltipprofile = "GuiDefaultProfile";
  802.             ToolTip = "Train archer";
  803.       };
  804.       new GuiProgressCtrl(BM_CurActionStatus) {
  805.          profile = "GuiTextProfile";
  806.          horizSizing = "left";
  807.          vertSizing = "top";
  808.          position = "45 55";
  809.          extent = "70 8";
  810.          minExtent = "70 8";
  811.          visible = "0";
  812.             maxLength = "255";
  813.             tooltipprofile = "GuiTextProfile";
  814.       };
  815.       new GuiBitmapCtrl(BM_CurActionPortrait) {
  816.          profile = "GuiDefaultProfile";
  817.          horizSizing = "right";
  818.          vertSizing = "bottom";
  819.          position = "10 43";
  820.          extent = "32 32";
  821.          minExtent = "8 2";
  822.          visible = "0";
  823.          bitmap = "./selectionDisplay/warriorPortrait";
  824.          wrap = "0";
  825.             tooltipprofile = "GuiDefaultProfile";
  826.       };
  827.    };
  828. };
  829. //--- OBJECT WRITE END ---
  830. $CommandMenu::currentCommand = "None";
  831.  
  832. function CommandMenu::onMoveClick()
  833. {
  834.    PlayGui.setCommandState("Move");
  835. }
  836.  
  837. function CommandMenu::onStopClick()
  838. {
  839.    commandToServer('IssueStop');
  840. }
  841.  
  842. function CommandMenu::onHoldClick()
  843. {
  844.    PlayGui.setCommandState("Hold");
  845.    commandToServer('IssueStop');
  846. }
  847.  
  848. function CommandMenu::onBuffPlusClick()
  849. {
  850.    PlayGui.setCommandState("BuffPlus");
  851. }
  852.  
  853. function CommandMenu::onAttackClick()
  854. {
  855.    PlayGui.setCommandState("Attack");
  856. }
  857.  
  858.  
  859. function CommandMenu::onCancelClick()
  860. {
  861.    PlayGui.setCommandState("None");
  862. }
  863.  
  864. function CommandMenu::onBuffMinusClick()
  865. {
  866.    PlayGui.setCommandState("BuffMinus");
  867. }
  868. function CommandMenu::onFormSquareClick()
  869. {
  870.   $Player::CurSquadFormation = "FormSquare";
  871. }
  872.  
  873. function CommandMenu::onFormDoubleLineClick()
  874. {
  875.   $Player::CurSquadFormation = "FormDoubleLine";
  876. }
  877.  
  878. // dispatch functions for Building menu clicks
  879.  
  880. function BuildingMenu::onTrain0Click()
  881. {
  882.   if (isObject($BuildingMenu::CurrentSelectedBuilding) )
  883.   {
  884.     %buildingIndex = getBuildingTypeID($BuildingMenu::CurrentSelectedBuilding);
  885.     echo("BuildingMenu::onTrain0Click: building action type is (" @ getWord($BD_ActionType[%buildingIndex], 0)
  886.          @ ") unit type is (" @ getWord($BD_ActionType[%buildingIndex],1) @ ")"  );
  887. //    if ( $BD_ActionType[%buildingIndex] $= "Hire" )
  888.     switch$(getWord($BD_ActionType[%buildingIndex],0))
  889.     {
  890.       case "Hire" :
  891.         PlayGui.setBuildCommandState(getWord($BD_ActionType[%buildingIndex], 1));
  892. // echo("BuildingMenu::onTrain0Click()--setting building (" @ %buildingIndex @ ") to state Hire" SPC
  893. //     $BD_ActionType[%buildingIndex] @ ")");      
  894.       case "Harvest" :
  895.         return;
  896.       default :
  897.         return;
  898.     }
  899.   }    
  900. }
  901. function BuildingMenu::onTrain1Click()
  902. {
  903.   if (isObject($BuildingMenu::CurrentSelectedBuilding) )
  904.   {
  905.     %buildingIndex = getBuildingTypeID($BuildingMenu::CurrentSelectedBuilding);
  906.     echo(getWord($BD_ActionType[%buildingIndex], 2));
  907. //    if ( $BD_ActionType[%buildingIndex] $= "Hire" )
  908.     switch$(getWord($BD_ActionType[%buildingIndex],0))
  909.     {
  910.       case "Hire" :
  911.         PlayGui.setBuildCommandState(getWord($BD_ActionType[%buildingIndex], 2));
  912.       case "Harvest" :
  913.         return;
  914.       default :
  915.         return;
  916.     }
  917.   }   }
  918. function BuildingMenu::onTrain2Click()
  919. {
  920.   if (isObject($BuildingMenu::CurrentSelectedBuilding) )
  921.   {
  922.     %buildingIndex = getBuildingTypeID($BuildingMenu::CurrentSelectedBuilding);
  923.     echo(getWord($BD_ActionType[%buildingIndex], 3));
  924. //    if ( $BD_ActionType[%buildingIndex] $= "Hire" )
  925.     switch$(getWord($BD_ActionType[%buildingIndex],0))
  926.     {
  927.       case "Hire" :
  928.        PlayGui.setBuildCommandState(getWord($BD_ActionType[%buildingIndex], 3));
  929.       case "Harvest" :
  930.         return;
  931.       default :
  932.         return;
  933.     }
  934.   }  
  935. }