MENUITEM.BIN
MENUITEM.BIN stores data about individual menu items for custom menus. This lump only contains data applicable to an individual item on a menu. Data about the menus into which these menuitems are grouped is stored in MENUS.BIN. The record size is stored in BINSIZE.BIN
Offset | Data | Meaning |
---|---|---|
0 | INT | Menu Membership (ID number +1 in MENUS.BIN that this item belongs to, 0 for orphaned) |
1-20 | VSTR(1i+38b=20i) | Menu item caption. If blank, it will be given a default based on type and subtype (menu width is automatically adjusted so all items fit) |
21 | INT | Sort order |
22 | INT | Menu type. See #Menu Item Types |
23 | INT | Menu subtype. See #Menu Item Types |
24 | INT | Tag conditional 1 |
25 | INT | Tag conditional 2 (logical AND with tag 1) |
26 | INT | Set tag (positive ON negative OFF) |
27 | INT | Toggle tag |
28 | INT | Bitsets. See #Menu Item Bitsets |
29 | INT | Extra 0 (For your own menu scripting purposes) |
30 | INT | Extra 1 |
31 | INT | Extra 2 |
Menu Item Types[edit]
Negative type numbers are reserved for engine-internal stuff. They are not permitted in user-defined menus.
- Type 0=Label
- Subtype 0=Selectable (change tags)
- Subtype 1=Not selectable
- Type 1=Special screen
- Subtype 0=Items
- Subtype 1=Spells
- Subtype 2=Status
- Subtype 3=Equip
- Subtype 4=Order
- Subtype 5=Team
- Subtype 6=Order/Team (depending on global bitset)
- Subtype 7=Map (if enabled on this map)
- Subtype 8=Save (if enabled on this map)
- Subtype 9=Load
- Subtype 10=Quit
- Subtype 11=Volume
- Subtype 12=Map (Always)
- Subtype 13=Save (Always)
- Subtype 14=Margins (if supported on current platform)
- Subtype 15=Purchases (if configured for current platform)
- Type 2=Go to menu
- Subtype = menu ID
- Type 3=Show text box
- Subtype = Text Box ID
- Type 4=Run Script
- Script ID
Menu Item Bitsets[edit]
- 0=Hide when disabled
- 1=Close menu when selected
- 2=Don't run on-close script
- 3-15=Unused
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