[Accessibility] Text to Speech (#2487)

This commit is contained in:
David Chavez 2023-03-02 09:27:28 +01:00 committed by GitHub
commit 21466192e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 2279 additions and 28 deletions

View file

@ -1020,8 +1020,6 @@ void TitleCard_InitPlaceName(PlayState* play, TitleCardContext* titleCtx, void*
}
titleCtx->texture = GetResourceDataByName(texture, false);
//titleCtx->texture = texture;
titleCtx->isBossCard = false;
titleCtx->hasTranslation = false;
titleCtx->x = x;
@ -1044,6 +1042,10 @@ void TitleCard_Update(PlayState* play, TitleCardContext* titleCtx) {
}
if (DECR(titleCtx->delayTimer) == 0) {
if (titleCtx->durationTimer == 80) {
GameInteractor_ExecuteOnPresentTitleCard();
}
if (DECR(titleCtx->durationTimer) == 0) {
Math_StepToS(&titleCtx->alpha, 0, 30);
Math_StepToS(&titleCtx->intensityR, 0, 70);

View file

@ -3133,6 +3133,8 @@ void Message_Update(PlayState* play) {
if (msgCtx->msgLength == 0) {
return;
}
GameInteractor_ExecuteOnDialogMessage();
bool isB_Held = CVarGetInteger("gSkipText", 0) != 0 ? CHECK_BTN_ALL(input->cur.button, BTN_B) && !sTextboxSkipped
: CHECK_BTN_ALL(input->press.button, BTN_B);

View file

@ -6064,6 +6064,8 @@ void Interface_Update(PlayState* play) {
Left_HUD_Margin = CVarGetInteger("gHUDMargin_L", 0);
Right_HUD_Margin = CVarGetInteger("gHUDMargin_R", 0);
Bottom_HUD_Margin = CVarGetInteger("gHUDMargin_B", 0);
GameInteractor_ExecuteOnInterfaceUpdate();
if (CHECK_BTN_ALL(debugInput->press.button, BTN_DLEFT)) {
gSaveContext.language = LANGUAGE_ENG;