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, depth slot (syOAMAddSpriteAtDepth: higher draws in front; glyphs use 254) and OAM attributes.

Declared in window_sprite.h.

Fields

NameDescription
struct WINDOW_SPR *nextthe next sprite in its list
Uint8kindan WINDOW_SPR_KIND
Uint8motionits WINDOW_SPRITE_MOTION_ motion; 0 while free
Uint16xscreen pixels
Uint16yscreen pixels
Uint16unused
Uint16animationStepstep of its motion's animation
Uint8indexVRAM cache slot, or a glyph's tile after glyphTiles
Uint8depthdepth slot (higher in front; glyphs use 254)
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, depth slot (syOAMAddSpriteAtDepth: higher draws in front; glyphs use 254) and OAM attributes.

struct WINDOW_SPR

Referenced by mnBattleDjinnMenuShowChangePreview(), mnCommandIconCreate(), mnCursorAdvance(), mnCursorCreate(), mnCursorMoveTowardTarget(), mnCursorPos(), mnCursorSet(), mnCursorSlide(), mnDebugSelectShortcuts(), mnDjinnMenuRunScreen(), mnFileListSelectFile(), mnGlyphDraw(), mnHideEntryIcons(), mnIconCreateDjinnArrow(), mnIconCreateStatChangeArrow(), mnIconShow(), mnItemMenuClose(), mnItemMenuDrawIcons(), mnItemMenuHideAllIcons(), mnItemMenuHidePageIcons(), mnItemMenuPlaceEquippedIcons(), mnItemMenuPlaceIcon(), mnItemMenuPlaceIcons(), mnItemMenuRunList(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnItemPickerRun(), mnNameEntryEditMemberName(), mnPauseMenuChoose(), mnPlaceEntryIconInGrid(), mnPlaceEntryIconsInGrid(), mnPortraitCloseWindow(), mnPortraitCreate(), mnPsynergyMenuCreateEntryGrid(), mnPsynergyMenuDrawPsynergyIcons(), mnPsynergyMenuPlaceEntryIcon(), mnPsynergyMenuPlaceEntryIcons(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectPartySlot(), mnPsynergyMenuSelectTarget(), mnSanctumAskYesNo(), mnSanctumRun(), mnSetPageIcons(), mnSettingsMenuOpen(), mnSettingsMenuRun(), mnShopAskYesNo(), mnShopCreatePriceSprite(), mnShopDrawCarriedItem(), mnShopDrawMemberItems() and 32 more.

Definition at line 88 of file window_sprite.h.

Fields in detail

next

struct WINDOW_SPR *next

the next sprite in its list

kind

Uint8 kind

an WINDOW_SPR_KIND

motion

Uint8 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

Uint8 index

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

depth

Uint8 depth

depth slot (higher in front; glyphs use 254)

sprite

QUEUED_SPR sprite

queued at its depth each tick