Skip to Content
The Alchemy Project

struct SCREEN_TRANSITION_STATE

The screen transition state: two pages of window edges for every line, the dissolve's solid tile, and the transition's mode and progress.

Declared in display_transition.h.

Fields

NameDescription
Uint16pages [2][SCREEN_TRANSITION_PAGE_LENGTH]Window edges, two pages, each WIN0H and WIN1H value (left << 8 | right): one page is built while the HBlank DMA copies the other.
Uint32solidTile [8]The dissolve's solid tile, one 8 by 8 tile of 4-bit pixels.
Uint16modeThe window transition's shape, a WINDOW_TRANSITION_MODE, or the dissolve's mode.
Uint16valueThe progress, moved from start to end over duration ticks.
FIXEDcenterX16.16 fixed-point pixels: the centre of the ellipse around a point, set by the Reveal effect.
FIXEDcenterYAs centerX: the target's z less its y.
Sint16insideLayersWININ for the inside of the shape: both windows show every layer.
Sint16outsideLayersWINOUT for the outside:
Uint8unusedBG0 alone, with the sprite window's layers kept.
Uint8pageThe pages entry the HBlank DMA copies from.
Sint8startThe value's first step.
Sint8endThe value's last step.
Sint8durationTicks; 0 when the value is not moving.
Sint8stepTicks.
Sint8nextModeThe mode taken when the value reaches its end; 0 ends the transition.
Sint8centreLineSet by the fade out to the centre line (fdScreenTransitionFinish); while it is set the icon menus leave window 1's lines alone.

Description

The screen transition state: two pages of window edges for every line, the dissolve's solid tile, and the transition's mode and progress.

struct SCREEN_TRANSITION_STATE

Referenced by fdEffectStartWindowHBlankDMA(), fdPsynergyEndReveal(), fdPsynergyReveal(), fdScreenTransitionAllocateAndClearState(), fdScreenTransitionFillTilemapAndColorTile(), fdScreenTransitionFinish(), fdScreenTransitionStart(), fdScreenTransitionStartDissolveHeld(), fdScreenTransitionStartWindowHeld(), fdScreenTransitionUpdate(), fdScreenTransitionUpdateFromCenter(), fdScreenTransitionUpdateScanlineTable(), fdWorldMapFreeze(), mnIconMenuDrawIcons() and mnStatusScreenRun().

Definition at line 53 of file display_transition.h.

Fields in detail

pages

Uint16 pages[2][SCREEN_TRANSITION_PAGE_LENGTH]

Window edges, two pages, each WIN0H and WIN1H value (left << 8 | right): one page is built while the HBlank DMA copies the other.

solidTile

Uint32 solidTile[8]

The dissolve's solid tile, one 8 by 8 tile of 4-bit pixels.

mode

Uint16 mode

The window transition's shape, a WINDOW_TRANSITION_MODE, or the dissolve's mode.

value

Uint16 value

The progress, moved from start to end over duration ticks.

centerX

FIXED centerX

16.16 fixed-point pixels: the centre of the ellipse around a point, set by the Reveal effect.

centerY

FIXED centerY

As centerX: the target's z less its y.

insideLayers

Sint16 insideLayers

WININ for the inside of the shape: both windows show every layer.

outsideLayers

Sint16 outsideLayers

WINOUT for the outside:

unused

Uint8 unused

BG0 alone, with the sprite window's layers kept. A mode that inverts its shape writes the two the other way round.

page

Uint8 page

The pages entry the HBlank DMA copies from.

start

Sint8 start

The value's first step.

end

Sint8 end

The value's last step.

duration

Sint8 duration

Ticks; 0 when the value is not moving.

step

Sint8 step

Ticks.

nextMode

Sint8 nextMode

The mode taken when the value reaches its end; 0 ends the transition.

centreLine

Sint8 centreLine

Set by the fade out to the centre line (fdScreenTransitionFinish); while it is set the icon menus leave window 1's lines alone.