mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-13 12:38:55 -04:00
Add 6th notch to text speed which makes text speed instant (#6694)
Helps frustration trying to read hints faster without skipping
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
#include "soh/SaveManager.h"
|
||||
#include "soh/ResourceManagerHelpers.h"
|
||||
|
||||
// SOH [Enhancement] Text Speed which fills whole box in one frame
|
||||
#define TEXT_SPEED_INSTANT 6
|
||||
|
||||
// #region SOH [NTSC] - Allows custom messages to work on japanese
|
||||
static bool sDisplayNextMessageAsEnglish = false;
|
||||
static u8 sLastLanguage = LANGUAGE_ENG;
|
||||
@@ -1276,7 +1279,9 @@ void Message_DrawTextJPN(PlayState* play, Gfx** gfxP) {
|
||||
}
|
||||
}
|
||||
|
||||
if (msgCtx->textDelay == 0) {
|
||||
if (gTextSpeed >= TEXT_SPEED_INSTANT) {
|
||||
msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
|
||||
} else if (msgCtx->textDelay == 0) {
|
||||
msgCtx->textDrawPos = i + gTextSpeed;
|
||||
if (msgCtx->textDrawPos > msgCtx->decodedTextLen) {
|
||||
msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
|
||||
@@ -1626,7 +1631,9 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (msgCtx->textDelay == 0) {
|
||||
if (gTextSpeed >= TEXT_SPEED_INSTANT) {
|
||||
msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
|
||||
} else if (msgCtx->textDelay == 0) {
|
||||
msgCtx->textDrawPos = i + gTextSpeed;
|
||||
} else if (msgCtx->textDelayTimer == 0) {
|
||||
msgCtx->textDrawPos = i + 1;
|
||||
|
||||
Reference in New Issue
Block a user