struct SCREEN_TRANSITION_STATE
The screen transition state (HEAP_SLOT_SCREEN_TRANSITION): two pages of window edges for every line, the dissolve's solid tile, and the transition's shape and progress.
Declared in display_transition.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | pages [2][2 + DISPLAY_HEIGHT * 2] | Window edges, two pages laid out as WINDOW_BUFFER: WININ and WINOUT, then a WIN0H and WIN1H pair, each (left << 8 | right), for each of the 160 lines. |
union { Uint32 | solidTile, solidTilePixels [8]; Uint8 solidTilePixels[32]; } | The dissolve's solid tile, one 8 |
Uint16 | mode | The window transition's shape, a WINDOW_TRANSITION_MODE, which fdScreenTransitionUpdateScanlineTable draws. |
Uint16 | value | The progress, moved from start to end over duration ticks: 0 is the screen covered, TRANSITION_OPEN fully open and TRANSITION_CLOSED covered again. |
FIXED | centerX | 16.16 fixed-point pixels: the centre of Reveal's rippling ellipse (WINDOW_TRANSITION_RIPPLE), the leader's place on the map. |
FIXED | centerY | As centerX: the leader's z less its height. |
Sint16 | insideLayers | The layers shown inside the window: WININ, or WINOUT in the modes that swap the two. |
Sint16 | outsideLayers | The layers shown outside it, BG0 alone when a |
Uint8 | unused | transition starts: WINOUT, or WININ in the modes that swap the two. |
Uint8 | page | The pages entry shown; the next is built in the other. |
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. |
Description
The screen transition state (HEAP_SLOT_SCREEN_TRANSITION): two pages of
window edges for every line, the dissolve's solid tile, and the transition's
shape and progress.
struct SCREEN_TRANSITION_STATE
Referenced by fdPsynergyEndReveal(), fdPsynergyReveal(), fdScreenTransitionAllocateAndClearState(), fdScreenTransitionFillTilemapAndColorTile(), fdScreenTransitionFinish(), fdScreenTransitionStart(), fdScreenTransitionStartDissolveHeld(), fdScreenTransitionStartHeldWindow(), fdScreenTransitionStartWindowHBlankDMA(), fdScreenTransitionUpdate(), fdScreenTransitionUpdateDissolve(), fdScreenTransitionUpdateFromCenter(), fdScreenTransitionUpdateScanlineTable(), fdWorldMapFreeze(), mnIconMenuDrawIcons(), scAltmillerCaveInitDarkness(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiPalaceWakeAfterFinals(), scFuchinFallsCaveEndRevealLighting(), scHeatGaugeDraw(), scInit() and scTretTreeBranchSetRevealWindow().
Definition at line 59 of file display_transition.h.
Fields in detail
pages
Uint16 pages[2][2 + DISPLAY_HEIGHT * 2]
Window edges, two pages laid out
as WINDOW_BUFFER: WININ and
WINOUT, then a WIN0H and WIN1H
pair, each (left << 8 | right),
for each of the 160 lines.
solidTile, solidTilePixels
union { Uint32 solidTile[8]; Uint8 solidTilePixels[32]; }
The dissolve's solid tile, one 8
by 8 tile of 4-bit pixels: as
words, or as bytes of two pixels
each, which the dissolve sets
two at a time.
mode
Uint16 mode
The window transition's shape, a
WINDOW_TRANSITION_MODE, which
fdScreenTransitionUpdateScanlineTable draws.
value
Uint16 value
The progress, moved from start to end over duration
ticks: 0 is the screen covered, TRANSITION_OPEN
fully open and TRANSITION_CLOSED covered again.
centerX
FIXED centerX
16.16 fixed-point pixels: the centre of Reveal's
rippling ellipse (WINDOW_TRANSITION_RIPPLE), the
leader's place on the map.
centerY
FIXED centerY
As centerX: the leader's z less its height.
insideLayers
Sint16 insideLayers
The layers shown inside the window: WININ, or WINOUT in the modes that swap the two.
outsideLayers
Sint16 outsideLayers
The layers shown outside it, BG0 alone when a
unused
Uint8 unused
transition starts: WINOUT, or WININ in the modes that swap the two.
page
Uint8 page
The pages entry shown; the next is built in the other.
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.