From af679d0c6a1f1bda7e10fb6518e88efe18c1b790 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Mon, 31 Dec 2018 13:38:35 +0000 Subject: [PATCH] Document Menu/*.mni files --- doc/formats/index.md | 5 +++-- doc/formats/mnu.md | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/formats/index.md b/doc/formats/index.md index d4bd81d..a76431b 100644 --- a/doc/formats/index.md +++ b/doc/formats/index.md @@ -70,8 +70,9 @@ remake. * [`Maps/`](maps.md) * `*.MAP` * `*.TXT` -* `Menu/` - * [`*.mnu`](mnu.md) # plain text, linked to .obj file, contains definitions +* [`Menu/`](mnu.md) - UI element definitions + * `*.mni` + * `*.mnu` * [`*.obj`](obj.md) * `Misc/` * `occlusio.lis` # plain text, presumably occlusion mappings? diff --git a/doc/formats/mnu.md b/doc/formats/mnu.md index 638f2f2..f55e009 100644 --- a/doc/formats/mnu.md +++ b/doc/formats/mnu.md @@ -122,3 +122,14 @@ Submenus also show a couple of unique values: | `SUBMENUID` | `1`, `2`, `3` | As `MENUID` | | `SUBMENUTYPE` | `0`, `1`, `2` | As `MENUTYPE` | +It seems .mnu files can also include other files, which have the extension +`.mni` (presumably for "Menu include"). Examples: + +``` +* +$GenDialog.mni +$GenLoad.mni +``` + +It looks like we just interpolate the named file into the text when we come +across one of these lines.