Skip to Content
The Alchemy Project

struct SELECTION_SPR

A selection screen sprite: a list link and its OAM attributes.

Declared in select.h.

Fields

NameDescription
struct SELECTION_SPR *nextthe sprite queue's link
Uint8yscreen pixels
Uint8affine : 20 plain, 1 affine, 3 affine at double size
Uint8mode : 20 normal, 1 semi-transparent, 2 OBJ
Uint8mosaic : 1window
Uint8colors : 11 for 256 colours
Uint8shape : 20 square, 1 wide, 2 tall
Uint16x : 9screen pixels
Uint16matrix : 5the affine matrix
Uint16size : 2with shape, the sprite's size
Uint16tile : 10first sprite tile in VRAM
Uint16priority : 2
Uint16palette : 416-colour palette

Description

A selection screen sprite: a list link and its OAM attributes.

struct SELECTION_SPR

Referenced by mnBattleTargetRunSelection(), mnConfirmSelection(), mnSelectionMenuCreate(), mnSelectionMenuDraw(), mnSelectionMenuDrawArrow(), mnSelectionMenuSetupArrow() and mnSelectionMenuSetupIcon().

Definition at line 12 of file select.h.

Fields in detail

next

struct SELECTION_SPR *next

the sprite queue's link

y

Uint8 y

screen pixels

affine

Uint8 affine : 2

0 plain, 1 affine, 3 affine at double size

mode

Uint8 mode : 2

0 normal, 1 semi-transparent, 2 OBJ

mosaic

Uint8 mosaic : 1

window

colors

Uint8 colors : 1

1 for 256 colours

shape

Uint8 shape : 2

0 square, 1 wide, 2 tall

x

Uint16 x : 9

screen pixels

matrix

Uint16 matrix : 5

the affine matrix

size

Uint16 size : 2

with shape, the sprite's size

tile

Uint16 tile : 10

first sprite tile in VRAM

priority

Uint16 priority : 2

palette

Uint16 palette : 4

16-colour palette