Skip to Content
The Alchemy Project

struct ICON_MENU_STATE

The icon menu: up to six command icons in a row, the windows of their labels, the icons' resource ids, the selection and the layout.

Declared in icon_menu.h.

Fields

NameDescription
ICON_MENU_ENTRYentries [6]
WINDOW *windowThe label window naming the selected icon.
WINDOW *lowerWindowThe password level and transfer menus' explanation window, below the heading.
WINDOW *upperWindowThose menus' heading window.
Uint8commandIcons [8]Each icon's number (ResourceIdCommandIcons), which is also its command name's: MsgCommandName plus it.
Sint16selectionThe icon chosen, 0 to count - 1.
Sint16countIcons in the row, up to 6.
Sint16widthTiles.
Sint16labelBaseA nonzero first label message, the selection added to it; 0 labels each icon by its command name.
Sint16rowTiles.
Sint16drawnSelectionThe selection the explanation was last drawn for; -1 draws it anew.

Description

The icon menu: up to six command icons in a row, the windows of their labels, the icons' resource ids, the selection and the layout.

struct ICON_MENU_STATE

Referenced by mnIconMenuAddIcon(), mnIconMenuAnimateTo(), mnIconMenuCenter(), mnIconMenuChooseSendOption(), mnIconMenuClose(), mnIconMenuDrawIcons(), mnIconMenuLayoutIcons(), mnIconMenuOpen(), mnIconMenuRun(), mnPasswordLevelDrawHelp() and mnTransferMethodDrawHelp().

Definition at line 25 of file icon_menu.h.

Fields in detail

entries

ICON_MENU_ENTRY entries[6]

window

WINDOW *window

The label window naming the selected icon.

lowerWindow

WINDOW *lowerWindow

The password level and transfer menus' explanation window, below the heading.

upperWindow

WINDOW *upperWindow

Those menus' heading window.

commandIcons

Uint8 commandIcons[8]

Each icon's number (ResourceIdCommandIcons), which is also its command name's: MsgCommandName plus it.

selection

Sint16 selection

The icon chosen, 0 to count - 1.

count

Sint16 count

Icons in the row, up to 6.

width

Sint16 width

Tiles.

labelBase

Sint16 labelBase

A nonzero first label message, the selection added to it; 0 labels each icon by its command name.

row

Sint16 row

Tiles.

drawnSelection

Sint16 drawnSelection

The selection the explanation was last drawn for; -1 draws it anew.