mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
[Accessibility] Text to Speech (#2487)
This commit is contained in:
parent
72777a0eb2
commit
21466192e5
38 changed files with 2279 additions and 28 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue