Alchemy
Loading...
Searching...
No Matches

SelectionNode Struct Reference

An icon of the selection screen: its list links, the entry it shows, its place and its slide toward a target, its zoom and its sprite. More...

#include <menu/select.h>

Data Fields

struct SelectionNode * prev
 the icon before it in its row
struct SelectionNode * next
 the icon after it in its row
u16 base
 the entry's id, as listed in SelectionScreen.bases
u16 kind
 the entry's kind, as listed in SelectionScreen.kinds; 0 free
u16 slot
 VRAM cache slot of its picture.
u16 tile
 first sprite tile of its picture
s16 x
 screen pixels
s16 y
 screen pixels
s16 dx
 pixels a frame
s16 dy
 pixels a frame
s16 targetX
 screen pixels
s16 targetY
 screen pixels
s16 homeX
 screen pixels, where it stood when chosen
s16 homeY
 screen pixels, where it stood when chosen
u16 message
 its name, shown in the screen's window
s16 scale
 8.8 fixed point, 0x100 full size
s16 scaleStep
 8.8 fixed point a frame
s16 scaleEnd
 8.8 fixed point, 0x100 full size
struct SelectionSprite sprite

Detailed Description

An icon of the selection screen: its list links, the entry it shows, its place and its slide toward a target, its zoom and its sprite.

Definition at line 31 of file select.h.

Field Documentation

◆ prev

struct SelectionNode* SelectionNode::prev

the icon before it in its row

Definition at line 32 of file select.h.

Referenced by Menu_ConfirmSelection(), Menu_ScrollSelectionList(), and MenuSelection_BuildEntries().

◆ next

◆ base

◆ kind

◆ slot

◆ tile

◆ x

◆ y

◆ dx

◆ dy

s16 SelectionNode::dy

pixels a frame

Definition at line 41 of file select.h.

Referenced by Menu_ConfirmSelection(), MenuSelection_BuildEntries(), and SelectionScreen_Draw().

◆ targetX

◆ targetY

◆ homeX

s16 SelectionNode::homeX

screen pixels, where it stood when chosen

Definition at line 44 of file select.h.

Referenced by Menu_ConfirmSelection().

◆ homeY

s16 SelectionNode::homeY

screen pixels, where it stood when chosen

Definition at line 45 of file select.h.

Referenced by Menu_ConfirmSelection().

◆ message

u16 SelectionNode::message

its name, shown in the screen's window

Definition at line 46 of file select.h.

Referenced by Menu_ConfirmSelection(), Menu_OpenSelectionWindow(), SelectionScreen_HighlightIcon(), SelectionScreen_RedrawIcon(), and SelectionScreen_SetupIcon().

◆ scale

s16 SelectionNode::scale

◆ scaleStep

s16 SelectionNode::scaleStep

8.8 fixed point a frame

Definition at line 48 of file select.h.

Referenced by Menu_ScrollSelectionList(), SelectionScreen_Draw(), and SelectionScreen_LoadLargeIcon().

◆ scaleEnd

s16 SelectionNode::scaleEnd

◆ sprite