Dialogue markup and lines, shared common folder, item atlases, ids, seconds and key checks

This commit is contained in:
shweet committed 2026-11-12 22:51:11 -05:00
1 parent 3e9a0cbd34
commit f900a0d01f
217 files changed
+6833 -6426

No files matched your search

+7 -2
View File
@@ -11,8 +11,8 @@ enum TextMode
TEXT_SEQUENCE
};
// Plays out a dialogue entry a character at a time with its effects, then offers its choices or the entry it leads to.
// A scene holds the game still until its last entry finishes. The UI shows it and passes on the player's input.
// Plays out a dialogue entry's lines a character at a time with their effects, then offers its choices or the entry it
// leads to. A scene holds the game still until its last entry finishes. The UI shows it and passes on the player's input.
class Text
{
public:
@@ -23,6 +23,7 @@ public:
int delay = 0;
int delayBase = 0;
int index = 0;
int line = 0;
int tick = 0;
bool isAnimationStarted = false;
bool isBlipQueued = false;
@@ -35,8 +36,12 @@ public:
void advance(Play& play);
void choose(Play& play, int choice);
void clear(Play& play);
Line* line_get();
bool is_interruptible();
bool is_last_line();
private:
void effects_apply(Play& play, int at);
void finish(Play& play);
void line_start(Play& play, int index, Interrupt interrupt);
};