mirror of
https://github.com/pret/pmd-red.git
synced 2026-10-01 13:28:04 -05:00
macro troubles
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
// 22..2f: ???
|
||||
#define TEXTBOX_AUTO_PRESS(endF, midF) { 0x2b, 0, 0, endF, midF, NULL} // Waits specified number of frames, then automatically does a button press without waiting for player's input. -1 disables it.
|
||||
// 30..39: various text printing
|
||||
#define MSG_NPC(id, msg) { 0x41, 0, id, 0, 0, msg } // ID is portrait id of the npc. -1 means no portrait
|
||||
// 3a: yes/no choice (only used for saving)
|
||||
// 3b: uber command (conditional jump)
|
||||
// 3c: unknown textbox-related cjump
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
#ifndef GUARD_TEXTBOX_H
|
||||
#define GUARD_TEXTBOX_H
|
||||
|
||||
enum
|
||||
{
|
||||
SCRIPT_TEXT_TYPE_INSTANT, // 0x32 Used for narration and signposts
|
||||
SCRIPT_TEXT_TYPE_PLAYER, // 0x33 Used for player's thoughts, player's dialogue and Murky Cave's judge of darkness
|
||||
SCRIPT_TEXT_TYPE_NPC, // 0x34 Used for all NPCs, has the speaker's name and dialogue sound
|
||||
SCRIPT_TEXT_TYPE_LETTER, // 0x35 Used for Mails/Letters. Has a dialogue sound when priting text, similarly to SCRIPT_TEXT_TYPE_NPC
|
||||
SCRIPT_TEXT_TYPE_4, // 0x36 Used for sound-like texts such as "Flap-flap" or roars "Gyaaaaaaaah". It doesn't wait for button press, so the message just closes after printing unless WAIT command is used afterwards.
|
||||
};
|
||||
|
||||
void TextboxInit(void);
|
||||
void TextboxFree(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user