include/field/screen_transition.h
What the field engine's parts share with the files that define their tables: the field effects' scripts and colour curves, and the screen transitions' shapes and window values.
Included by field_effect_scripts.c, field_engine_item_display.c and screen_transition_shapes.c.
Structures
| Name | Description | |
|---|---|---|
struct | TRANSITION_SPAN | A run of lines of a window transition's shape (TRANSITION_SHAPE): its count of lines and its WIN_RANGE, or when that is 0 the window edges it moves between. |
struct | TRANSITION_SHAPE | A shape of WINDOW_TRANSITION_SHAPE: WINOUT and WININ while opening (swapped while closing), then up to three runs of lines down the screen, each a count of lines and either a WIN_RANGE for all of them or, when 0, the window edges from (x0, y0) on the first line toward (x1, y1) on the last. |
Macros
| Name | Description | |
|---|---|---|
#define | TRANSITION_SHOW_ALL 0x7f7f | WININ or WINOUT showing every layer in both windows (bits 6 and 14 set too). |
#define | TRANSITION_SHOW_LOW_BYTE 0x007f | WININ or WINOUT showing every layer in its low byte (window 0, or outside both windows; bit 6 set too) and nothing in its high byte. |
Functions
| Name | Description | |
|---|---|---|
Bool | fdIsRevealActive (struct ACTOR *interpreter) | Returns 1 while Reveal is active, else 0. |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 | ItemDisplayGrowInScript [] | The found item's picture over the leader: growing in from half size, then pulsing to 1.5 times its size and resting, over and over. |
extern const Sint32 | ItemDisplayPulseScript [] | Pulses twice, to 1.5 times full size, then rests, over and over: the found item's picture held over the leader (field_engine_item_display.c). |
extern const Sint32 | RevealMarkerScript [] | A Reveal marker's script, which releases it once fdIsRevealActive returns 0, Reveal having ended. |
extern Uint16 | FieldEffectChannelCurve [] | The palette tints' colour channel curves: each maps a 5-bit channel to a palette fade channel, shifted up 10 bits. |
extern Uint16 | FieldEffectChannelCurveLight [] | |
extern Uint16 | FieldEffectChannelCurveContrast [] | |
extern const Uint8 | ScreenTransitionBarWidths [] | The width of the bars of WINDOW_TRANSITION_BARS, by progress. |
extern const Sint8 | ScreenTransitionEdgeOffsets [] | The wobble of the circle edge of WINDOW_TRANSITION_RIPPLE. |
extern TRANSITION_SHAPE | ScreenTransitionShapes [] | The window shape of each step of WINDOW_TRANSITION_SHAPE. |
extern const Uint8 | ScreenTransitionDitherTable [] | 0 to 63 shuffled: the order in which the dissolve sets the pixels. |
Description
What the field engine's parts share with the files that define their tables: the field effects' scripts and colour curves, and the screen transitions' shapes and window values.
Macros in detail
TRANSITION_SHOW_ALL
#define TRANSITION_SHOW_ALL 0x7f7f
WININ or WINOUT showing every layer in both windows (bits 6 and 14 set too).
Referenced by fdScreenTransitionUpdateScanlineTable() and ScreenTransitionShapes.
Definition at line 26 of file screen_transition.h.
TRANSITION_SHOW_LOW_BYTE
#define TRANSITION_SHOW_LOW_BYTE 0x007f
WININ or WINOUT showing every layer in its low byte (window 0, or outside both windows; bit 6 set too) and nothing in its high byte.
Referenced by ScreenTransitionShapes.
Definition at line 29 of file screen_transition.h.