Skip to Content
The Alchemy Project

struct SELECTION_NODE

An icon of the selection screen: its list links, the entry it shows (kind/base from SELECTION_MENU_STATE.kinds and .bases; for an arrow, kind is TRUE while shown and base is the ticks left of its nudge after a scroll), its place and its slide toward a target, its zoom and its sprite.

Declared in select.h.

Fields

NameDescription
struct SELECTION_NODE *prevthe icon before it in its row
struct SELECTION_NODE *nextthe icon after it in its row
Uint16baseentry number in kind (arrow: scroll-nudge ticks left)
Uint16kindentry kind, ICON_KIND_NONE if free (arrow: TRUE shown)
Uint16slotVRAM cache slot of its picture
Uint16tilefirst sprite tile of its picture
Sint16xscreen pixels
Sint16yscreen pixels
Sint16dxpixels a tick
Sint16dypixels a tick
Sint16targetXscreen pixels
Sint16targetYscreen pixels
Sint16homeXscreen pixels, where it stood when chosen
Sint16homeYscreen pixels, where it stood when chosen
Uint16msgits name, shown in the screen's window
Sint16scale8.8 fixed point, Q_8_8(1) full size
Sint16scaleStep8.8 fixed point a tick
Sint16scaleEnd8.8 fixed point, Q_8_8(1) full size
SELECTION_SPRsprite

Description

An icon of the selection screen: its list links, the entry it shows (kind/base from SELECTION_MENU_STATE.kinds and .bases; for an arrow, kind is TRUE while shown and base is the ticks left of its nudge after a scroll), its place and its slide toward a target, its zoom and its sprite.

struct SELECTION_NODE

Referenced by mnClearBattleHighlight(), mnConfirmSelection(), mnNodeChainGetNodeAtIndex(), mnSelectionMenuBuildEntries(), mnSelectionMenuClose(), mnSelectionMenuDraw(), mnSelectionMenuFindFreeIcon(), mnSelectionMenuFreeLargeIcon(), mnSelectionMenuGetCursorNode(), mnSelectionMenuHighlightIcon(), mnSelectionMenuLoadLargeIcon(), mnSelectionMenuOpenNameWindow(), mnSelectionMenuRedrawIcon(), mnSelectionMenuScroll(), mnSelectionMenuSetPos(), mnSelectionMenuSetupIcon(), mnSelectionMenuStepLeft() and mnSelectionMenuStepRight().

Definition at line 35 of file select.h.

Fields in detail

prev

struct SELECTION_NODE *prev

the icon before it in its row

next

struct SELECTION_NODE *next

the icon after it in its row

base

Uint16 base

entry number in kind (arrow: scroll-nudge ticks left)

kind

Uint16 kind

entry kind, ICON_KIND_NONE if free (arrow: TRUE shown)

slot

Uint16 slot

VRAM cache slot of its picture

tile

Uint16 tile

first sprite tile of its picture

x

Sint16 x

screen pixels

y

Sint16 y

screen pixels

dx

Sint16 dx

pixels a tick

dy

Sint16 dy

pixels a tick

targetX

Sint16 targetX

screen pixels

targetY

Sint16 targetY

screen pixels

homeX

Sint16 homeX

screen pixels, where it stood when chosen

homeY

Sint16 homeY

screen pixels, where it stood when chosen

msg

Uint16 msg

its name, shown in the screen's window

scale

Sint16 scale

8.8 fixed point, Q_8_8(1) full size

scaleStep

Sint16 scaleStep

8.8 fixed point a tick

scaleEnd

Sint16 scaleEnd

8.8 fixed point, Q_8_8(1) full size

sprite

SELECTION_SPR sprite