Skip to main content

Dialogue picture frames

ScriptDialogueBitmapFrame · signed byte, operand of the picture command of Dialogue screen

Dialogue commands · Virtual machine

This byte chooses where a dialogue picture goes and how large it is: a picture inside the dialogue frame, or a full-width picture. It indexes two-entry tables of destination and size. Frame 0 also selects the work-page and frame-drawing behavior described on the instruction page.1

typedef enum ScriptDialogueBitmapFrame {
SCRIPT_DIALOGUE_FRAME_PICTURE = 0, /* 160 x 96 pixels at x 8, y 8, inside the 184 x 121 frame. */
SCRIPT_DIALOGUE_FRAME_FULL = 1 /* 320 x 121 pixels at x 0, y 0, drawn directly to the screen. */
} ScriptDialogueBitmapFrame;

Other values are not rejected: they read past the two table entries into neighboring data; the words read and what the copy and the transition then do are listed under frame outside the tables. Of the 237 reference instructions, 236 use frame 0 and one uses frame 1. The options of the same command are described in dialogue picture options.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Dialogue routines, picture command, with the picture size and position tables. Comparative source: the destRect argument of drawSequenceBitmap (engine/eobcommon.cpp, lines 1768–1818) in REF-SCUMM-012. ↩