mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Add toggle to disable navi call voice audio
This commit is contained in:
parent
247360cbf0
commit
80811d89f8
2 changed files with 10 additions and 6 deletions
|
@ -675,6 +675,8 @@ namespace SohImGui {
|
||||||
Tooltip("Wearing the Bunny Hood grants a speed increase like in Majora's Mask");
|
Tooltip("Wearing the Bunny Hood grants a speed increase like in Majora's Mask");
|
||||||
EnhancementCheckbox("Visual Stone of Agony", "gVisualAgony");
|
EnhancementCheckbox("Visual Stone of Agony", "gVisualAgony");
|
||||||
Tooltip("Displays an icon and plays a sound when Stone of Agony should be activated, for those without rumble");
|
Tooltip("Displays an icon and plays a sound when Stone of Agony should be activated, for those without rumble");
|
||||||
|
EnhancementCheckbox("Disable Navi Call Audio", "gDisableNaviCallAudio");
|
||||||
|
Tooltip("Disables the voice audio when Navi calls you");
|
||||||
|
|
||||||
ImGui::Text("Graphics");
|
ImGui::Text("Graphics");
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
|
@ -2151,6 +2151,7 @@ void Interface_SetNaviCall(GlobalContext* globalCtx, u16 naviCallState) {
|
||||||
|
|
||||||
if (((naviCallState == 0x1D) || (naviCallState == 0x1E)) && !interfaceCtx->naviCalling &&
|
if (((naviCallState == 0x1D) || (naviCallState == 0x1E)) && !interfaceCtx->naviCalling &&
|
||||||
(globalCtx->csCtx.state == CS_STATE_IDLE)) {
|
(globalCtx->csCtx.state == CS_STATE_IDLE)) {
|
||||||
|
if (!CVar_GetS32("gDisableNaviCallAudio", 0)) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
if (naviCallState == 0x1E) { Audio_PlaySoundGeneral(NA_SE_VO_NAVY_CALL, &D_801333D4, 4,
|
if (naviCallState == 0x1E) { Audio_PlaySoundGeneral(NA_SE_VO_NAVY_CALL, &D_801333D4, 4,
|
||||||
&D_801333E0, &D_801333E0, &D_801333E8); }
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
||||||
|
@ -2159,6 +2160,7 @@ void Interface_SetNaviCall(GlobalContext* globalCtx, u16 naviCallState) {
|
||||||
if (naviCallState == 0x1D) {
|
if (naviCallState == 0x1D) {
|
||||||
func_800F4524(&D_801333D4, NA_SE_VO_NA_HELLO_2, 32);
|
func_800F4524(&D_801333D4, NA_SE_VO_NA_HELLO_2, 32);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
interfaceCtx->naviCalling = 1;
|
interfaceCtx->naviCalling = 1;
|
||||||
sCUpInvisible = 0;
|
sCUpInvisible = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue