9constexpr int TEXT_X = 8;
10constexpr int TEXT_Y = 154;
11constexpr int TEXT_MAX_X = 248;
12constexpr int TEXT_MAX_Y = 186;
14constexpr int OPTIONS_X = 128;
15constexpr int OPTIONS_Y = 50;
35 if (!active ||
current ==
nullptr)
53 if (!
text->appearTextDone())
87 if (pressed & KEY_START)
95 if (
text->appearTextDone())
104 if (pressed & KEY_DOWN)
109 else if (pressed & KEY_UP)
154 else if (pressed & KEY_B)
178 if (config.
text ==
nullptr || config.
textAlt ==
nullptr)
197 if (firstLine ==
nullptr)
279 if (
text->appearTextDone())
285 if (
text->appearTextPaused())
287 text->appearTextNextPage();
291 text->appearTextSkip();
307 int textSize =
text->getFontSize();
308 text->clearArea(OPTIONS_X, OPTIONS_Y, 256 - OPTIONS_X, textSize *
optionCount + 4);
Orchestrates dialogue display & branching logic.
void start(Dialogue *firstLine)
Start the currently loaded dialogue.
bool skipOrContinueText()
Handle input while the line is still being displayed.
bool renderBust
track the currently loaded bust
void update(ae::q20_12_t) override
Core update loop that renders & advances through dialogue.
void end()
End the dialogue display.
void configureDialogue(const DialogueConfig &config)
Configure the dialogue system.
void renderAnimFrame()
Animate in the dialogue text on appear.
void renderOptions()
Display the DialogueSelection options.
void advanceTo(Dialogue *next)
Transition to a new Dialogue node and reset animation state.
Holds global variables used game-wide.
volatile u32 systemKeysHeld
void logMessage(LogSeverity severity, std::string_view message, std::source_location location)
Logs a diagnostic message and halts only for fatal messages.
Util to handle error logging.
A struct that holds initial config values for the DialogueComponent.
etl::array< etl::span< SpritePayload >, 10 > * spritePayloads
Holds dialogue content and branching data.