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
| Name | Description | |
|---|---|---|
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. |
Uint32 | solidTile [8] | The dissolve's solid tile, one 8 by 8 tile of 4-bit pixels. |
Uint16 | mode | The window transition's shape, a WINDOW_TRANSITION_MODE, or the dissolve's mode. |
Uint16 | value | The progress, moved from start to end over duration ticks. |
FIXED | centerX | 16.16 fixed-point pixels: the centre of the ellipse around a point, set by the Reveal effect. |
FIXED | centerY | As centerX: the target's z less its y. |
Sint16 | insideLayers | WININ for the inside of the shape: both windows show every layer. |
Sint16 | outsideLayers | WINOUT for the outside: |
Uint8 | unused | BG0 alone, with the sprite window's layers kept. |
Uint8 | page | The pages entry the HBlank DMA copies from. |
Sint8 | start | The value's first step. |
Sint8 | end | The value's last step. |
Sint8 | duration | Ticks; 0 when the value is not moving. |
Sint8 | step | Ticks. |
Sint8 | nextMode | The mode taken when the value reaches its end; 0 ends the transition. |
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. |
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.