Skip to Content
The Alchemy Project

struct WINDOW_SPR

A window sprite: a sprite in a window's sprite list (a character, an icon or a portrait), with its VRAM cache slot and OAM attributes.

Declared in window_sprite.h.

Fields

NameDescription
struct WINDOW_SPR *nextthe next sprite in its list
Sint8kinda WINDOW_SPR_KIND
Sint8motionits WINDOW_SPRITE_MOTION_ motion; 0 while free
Uint16xscreen pixels
Uint16yscreen pixels
Uint16unused
Uint16animationStepstep of its motion's animation
Sint8indexVRAM cache slot, or a glyph's tile after glyphTiles
Uint8depthdepth slot (syOAMAddSpriteAtDepth); higher draws in front
QUEUED_SPRspritequeued at its depth each tick

Description

A window sprite: a sprite in a window's sprite list (a character, an icon or a portrait), with its VRAM cache slot and OAM attributes.

struct WINDOW_SPR

Referenced by fdWindowSpriteListMove(), mnBattleDjinnMenuShowChangePreview(), mnCommandIconCreate(), mnCursorAdvance(), mnCursorCreate(), mnCursorMoveTowardTarget(), mnCursorPos(), mnCursorSet(), mnCursorSetPosImmediate(), mnCursorSlide(), mnDjinnMenuRunScreen(), mnForgeRun(), mnGlyphAddBlankSprite(), mnGlyphDraw(), mnGlyphDrawAsSprite(), mnHideEntryIcons(), mnIconCreateDjinnArrow(), mnIconCreateStatChangeArrow(), mnIconShow(), mnItemMenuArrangeCategoryItemIcons(), mnItemMenuClose(), mnItemMenuDrawIcons(), mnItemMenuHideAllIcons(), mnItemMenuHideTradedIcons(), mnItemMenuPlaceIcon(), mnItemMenuPlaceIcons(), mnItemMenuRunList(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnItemPickerRun(), mnNameEntryEditMemberName(), mnOpenBackdropScreen(), mnPauseMenuChoose(), mnPlaceEntryIconInGrid(), mnPlaceEntryIconsInGrid(), mnPortraitCloseWindow(), mnPortraitCreate(), mnPsynergyMenuDrawPsynergyIcons(), mnPsynergyMenuPlaceEntryIcon(), mnPsynergyMenuPlaceEntryIcons(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectPartySlot(), mnPsynergyMenuSelectTarget(), mnSanctumAskYesNo(), mnSanctumHighlightMembers(), mnSanctumRun(), mnSanctumShowKeeperMessageHidingCursor(), mnSetPageArrowsLeftRight(), mnSetPageArrowsUpDown() and 36 more.

Definition at line 79 of file window_sprite.h.

Fields in detail

next

struct WINDOW_SPR *next

the next sprite in its list

kind

Sint8 kind

a WINDOW_SPR_KIND

motion

Sint8 motion

its WINDOW_SPRITE_MOTION_ motion; 0 while free

x

Uint16 x

screen pixels

y

Uint16 y

screen pixels

unused

Uint16 unused

animationStep

Uint16 animationStep

step of its motion's animation

index

Sint8 index

VRAM cache slot, or a glyph's tile after glyphTiles

depth

Uint8 depth

depth slot (syOAMAddSpriteAtDepth); higher draws in front

sprite

QUEUED_SPR sprite

queued at its depth each tick