Files
NX2navi/runtime/text_speed.h
chrg6 2bbdb25de7 Add a text speed setting for the game's message windows on 1.1.1.
The patch set text_speed scales the typewriter speed of a message the game lets the player skip (fast, three times as
fast, its scripted waits as long) or runs the game's own skip on the first frame of each page (instant). Messages the
game marks unskippable, such as those that turn their page on a timer, keep the game's speed. The setting is live and
has a row on the Game tab in all four menu languages; with it at normal the set is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 00:53:22 -05:00

12 lines
706 B
C

// Text speed (text_speed.c): the patch set text_speed's page words and switch.
#pragma once
// Called at every controller poll the game makes (ov_input.c npad_states): puts the text_speed setting on the patch
// page and switches the set, so a change in the menu reaches the text that types next.
void text_speed_poll(void);
// 1 when the game version has the patch set text_speed and nothing keeps it off (NX2NAVI_TEXT_SPEED_PATCH=0, a mod
// patching its sites): the Game tab shows the row then. The set itself runs only while the setting is not normal.
int text_speed_available(void);
// The factor the fast setting multiplies the message window's typing speed by.
#define TEXT_SPEED_FAST_FACTOR 3.0f