MENUS.BIN
MENUS.BIN stores data about custom menus. This lump only contains data applicable to an entire menu. Data about individual menu items is located in MENUITEM.BIN. The record size is stored in BINSIZE.BIN
Offset | Data | Meaning |
---|---|---|
0-10 | VSTR(1i+20b=11i) | Menu name |
11 | INT | Box style (same as text box background color) |
12 | INT | Default text color |
13 | INT | Max rows to show at a time (0=default, cannot exceed screen height) |
14 | INT | Bitsets 0=Transparent box |
15 | INT | Offset X (positive or negative) |
16 | INT | Offset Y (positive or negative) |
17 | INT | Anchor X (-1=left, 0=center, 1=right) |
18 | INT | Anchor Y (-1=top, 0=center, 1=bottom) |
19 | INT | Text align (-1=left, 0=center, 1=right) |
20 | INT | Minimum width (in text chars, default=0) |
21 | INT | Maximum width (in text chars, 0=none, >=1 crops strings) |
22 | INT | Border thickness (in pixels, can be negative) |
23 | INT | On-close script trigger |
24 | INT | Menu ID -1 to open when pressing ESC (or 0 for none) |
25 | INT | Garbage (do not repurpose) |
26 | INT | Item spacing, in pixels to be added to the default. Negative makes the items closer together, positive stretches them apart. This value alters the vertical size of the whole menu |
See Also[edit]
ARCHINYM.LMP . ATTACK.BIN . BINSIZE.BIN . BROWSE.TXT . DEFPAL#.BIN . DEFPASS.BIN . distrib.reld . FIXBITS.BIN . heroes.reld . heroform.reld . LOOKUP1.BIN . MENUS.BIN . MENUITEM.BIN . PALETTES.BIN . PLOTSCR.LST . SFXDATA.BIN . slicetree_#_#.reld . SLICELOOKUP.TXT . SONGDATA.BIN . UICOLORS.BIN . GEN . general.reld . BAM . Map Format . T . P . E . D . L . N . Z . DOR . DOX . DT0 . DT1 . DT6 . EFS . FOR . FNT . HSP . HSZ . ITM . MAP . MAS . MN . MXS . PAL . PT0 . PT1 . PT2 . PT3 . PT4 . PT5 . PT6 . PT7 . PT8 . SAY . SHO . SNG . STF . STT . TAP . TIL . TMN . VEH