use hints translations

This commit is contained in:
hackgrid 2023-11-12 18:50:17 +01:00 committed by GitHub
parent c6a8569035
commit dd20478191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,14 +157,14 @@ u8 gPromptActions[] = {
char* gPromptText[] = {
NULL,
"TO PLACE THE ORANGE PORTAL",
"TO PLACE THE BLUE PORTAL",
"TO PICKUP AN OBJECT",
"TO DROP AN OBJECT",
"TO USE",
"TO CROUCH",
"TO MOVE",
"TO JUMP",
translationsGet(HINT_GET_PORTAL_2),
translationsGet(HINT_GET_PORTAL_1),
translationsGet(HINT_USE_ITEMS),
translationsGet(HINT_DROP_ITEMS),
translationsGet(HINT_USE_SWITCHES),
translationsGet(HINT_DUCK),
translationsGet(HINT_MOVE),
translationsGet(HINT_JUMP),
};
void hudShowActionPrompt(struct Hud* hud, enum CutscenePromptType promptType) {
@ -365,4 +365,4 @@ void hudRender(struct Hud* hud, struct Player* player, struct RenderState* rende
if (hud->subtitleOpacity > 0.0f && (gSaveData.controls.flags & ControlSaveSubtitlesEnabled || gSaveData.controls.flags & ControlSaveAllSubtitlesEnabled) && hud->subtitleKey != SubtitleKeyNone) {
controlsRenderSubtitle(translationsGet(hud->subtitleKey), hud->subtitleOpacity, hud->backgroundOpacity, renderState, hud->subtitleType);
}
}
}