summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorChristopher Leggett <chris@leggett.dev>2023-01-20 21:48:17 -0500
committerGitHub <noreply@github.com>2023-01-20 21:48:17 -0500
commit1b9962dfc2b65134bf46cbe027cfc4a106ee898a (patch)
tree80a1e4cf99d38e048a6a55dd1671dd0fd60f5b7e /soh/src/code
parent1b9ab52e35f8f78b7f1f2aba81e0a20b061bb3e3 (diff)
Enhancement: Adds Slider for Duration of Sequence Names on the Overlay (#2375)
* New function: overlay text duration in seconds. `Overlay_DisplayText` took a float as an argument, with no clear indication of what that float represented. That float also evaluates to different durations given different frame rates. However, since we know what the frame rate should be at any given time (since it's stored in a CVar) we can calculate what this duration should be based on the number of seconds we want the overlay to be displayed. That's what `Overlay_DisplayText_Seconds` does. * Adds Slider for Overlay Sequence Name Durations
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/audio_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/audio_load.c b/soh/src/code/audio_load.c
index 03542f84f..4b4b027f3 100644
--- a/soh/src/code/audio_load.c
+++ b/soh/src/code/audio_load.c
@@ -615,7 +615,7 @@ s32 AudioLoad_SyncInitSeqPlayerInternal(s32 playerIdx, s32 seqId, s32 arg2) {
if (CVarGetInteger("gSeqNameOverlay", 0) && playerIdx == SEQ_PLAYER_BGM_MAIN) {
const char* sequenceName = SfxEditor_GetSequenceName(seqId);
if (sequenceName != NULL) {
- Overlay_DisplayText(5.0f, sequenceName);
+ Overlay_DisplayText_Seconds(CVarGetInteger("gSeqNameOverlayDuration", 5), sequenceName);
}
}
}