How a builder's pages are made
A builder's build menu is its GUI pages, filled in by download records and aexmenus files, exactly as TA reads them.
A builder's build menu is a set of pages of buttons. AEX makes them from the
same files TA does, in the same way, then adds its own aexmenus/ entries.
Read this before changing what a builder offers.
The worked example
The Arm Kbot Lab's first page is guis/ARMLAB1.GUI. One of its buttons:
[GADGET4]
{
[COMMON]
{
id=1;
name=ARMCK;
xpos=0;
ypos=27;
width=64;
height=64;
attribs=32;
commonattribs=4;
}
status=0;
quickkey=0;
}
id=1 makes it a button, commonattribs=4 makes it a unit-build button, and
name=ARMCK is the unit it builds (the Construction Kbot). xpos and ypos
place it on the page. A whole page example with keys:
build-keys example.
Where the pages come from
- GUI pages.
guis/<BUILDER>1.GUI,<BUILDER>2.GUI, ... up to the first missing number. - Download records may raise the page count: a record with
MENU=4gives the builder at least 3 pages (download records). - A page with no GUI file of its own uses the side's download page,
<prefix>DL.GUI(ARMDL.GUI,CORDL.GUI), whose blank buttons (IGPATCH) the records fill. The prefix is the side'snameprefixingamedata/sidedata.tdf. aexmenus/files add units after the last button (aexmenus files).
A button sits where its gadget's box is. A page keeps its gaps, and a button larger than one cell covers the cells under it.
What does not make a menu
| File | What it does instead |
|---|---|
FBI buildoption1 ... |
Feeds the game's build checks and the AI; never a menu |
FBI buildmenu1 ... |
Nothing; TA never reads it |
sidedata.tdf [CANBUILD] |
TA's build list for the AI; never a menu |
Rules AEX keeps
- One button per unit. A unit on two buttons of one builder keeps the first. A page left with no button shows nothing and the later pages move up.
- Greyed buttons. A button naming a unit that is not loaded is shown greyed and builds nothing.
- A zero-byte GUI page switches that page off: no download record fills it, and it does not fall back to the side's download page.
- Renamed folders. A mod that renames TA's folders, as Escalation reads
guiE,downloadsEandunitsE, replaces the stock folders: stock pages and records stay out of its games.
TA and AEX looks
In the Classic TA look the buttons are drawn from the page's own art,
anims/<PAGE>.GAF. The AEX looks draw their own tiles with the unit's
picture. Either way the pages and buttons are the same; the
layout setting decides how they are paged.
What goes wrong
- A page you added does not show: its number is not the next after the last
page.
ARMLAB3.GUIwith noARMLAB2.GUIis read only when a download record for the builder reaches page 3. Build-menu page ARMLAB1.GUI unreadable: <reason>inaex.log: the GUI file is damaged.