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 *lowerWindowpassword level / transfer explanation window, below heading
WINDOW *upperWindowthose menus' heading window
Uint8commandIcons [8]icon ids, also command names (MsgCommandName + id)
Sint16selectionthe icon chosen, 0 to count - 1
Sint16counticons in the row, up to 6
Sint16widthtiles
Sint16labelBasefirst label msg (+ selection), or 0 for command names
Sint16rowtiles
Sint16drawnSelectionselection explanation was last drawn for; -1 redraws

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(), mnPasswordLevelMenuDrawContents() and mnTransferMethodMenuDrawHelp().

Definition at line 27 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

password level / transfer explanation window, below heading

upperWindow

WINDOW *upperWindow

those menus' heading window

commandIcons

Uint8 commandIcons[8]

icon ids, also command names (MsgCommandName + id)

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

first label msg (+ selection), or 0 for command names

row

Sint16 row

tiles

drawnSelection

Sint16 drawnSelection

selection explanation was last drawn for; -1 redraws