The game's own menus: buttons in its style, pages, the game's buttons hidden or moved, menu events.
The game's own menus, for mods: buttons that look and behave like the game's in its menus, the game's buttons
hidden or moved, whole pages drawn with the game's backgrounds, fonts and buttons (no ImGui), and the menu actions
as events. The Menus and pages guide walks through it; Ice Age and Dinosaur Hunter work the
same, on PC and on Android (the game's touch handling drives the buttons).
Menus (the where of menu.button, menu.hide ...): main (the main menu), more (MORE), hunt_area,
hunt_species, hunt_weapon (the three hunt menu pages), game (the hunt's menu: ESCAPE / RESTART / OPTIONS), or the
id of one of your pages.
Units: game units, as the game lays out its menus: the screen is 320 units high (480 wide on screens narrower than
3:2; menu.screen() gives the size), x from the left, y from the top. An item's x, y is its centre (texts: x by
align, y the top). Left out, items are placed in their menu: the main menu's grid continues below the game's rows,
MORE's column below its buttons, the hunt pages stack them in the right column, the hunt's menu gets cells around the
game's, a page has one centred column from the top.
The game's buttons by name: main: hunt, survive (Dinosaur Hunter), trophy, more, mods, quit. more: options,
switch, about, back. hunt_area: back, next, dawn, day, night, observer. hunt_species: back, next. hunt_weapon:
back, hunt, camouflage, cover_scent, tranquilizer, radar. game: escape, restart, options (hidden only).
Items (what menu.button, menu.text, menu.image, menu.list and the page's functions return) have methods:
item:setText(text), item:text(), item:setVisible(on), item:setEnabled(on), item:move(x, y) (no
arguments: back to its automatic place), item:position() (its centre this frame), item:setSprite(name),
item:setColor(color [, textColor]), item:remove(), item:valid(); lists also item:setRows(rows),
item:select(i), item:selected() (index, text). Pages (menu.page) have page:button / text / image / list
(as menu.* with the page as where), page:open([{fade = false}]), page:close(), page:isOpen(),
page:clear() (removes its items) and page:remove().
Options every item takes: x, y, scale, textScale, color, textColor, font (the game's: lith18
(the buttons' stone letters, no digits in Ice Age), ofs15, ofs13, ccra14), order, visible, enabled,
sound (a .wav played on a click, e.g. "menugo.wav"). Texts are UTF-8; the game's fonts show Latin-1, other
characters as ?, and # (the game's colour codes) as a space.
While the mods load the game's GUI does not exist yet: items can be made then, but sizes, sprites and fonts are known
from the menu_ready event on.