MENUITEM.BIN
From OHRRPGCE-Wiki
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 |
[edit] Menu Item Types
- 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)
- Type 2=Go to menu
- Subtype = menu ID
- Type 3=Show text box
- Subtype = Text Box ID
- Type 4=Run Script
- Script ID
[edit] Menu Item Bitsets
- 0=Hide when disabled
- 1=Close menu when selected
- 2-15=Unused
[edit] See Also
ARCHINYM.LMP . BROWSE.TXT . ATTACK.BIN . BINSIZE.BIN . DEFPAL#.BIN . DEFPASS.BIN . FIXBITS.BIN . LOOKUP.BIN . MENUS.BIN . MENUITEM.BIN . PALETTES.BIN . PLOTSCR.LST . SFXDATA.BIN . SONGDATA.BIN . UICOLORS.BIN . GEN . BAM . Map Format . T . P . E . D . L . N . 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
