mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
Add toggle to disable navi call voice audio (#336)
Co-authored-by: genegrey <pulicave@gmail.com>
This commit is contained in:
parent
0993337721
commit
0b2c264a60
@ -721,7 +721,9 @@ namespace SohImGui {
|
|||||||
Tooltip("Allows equiping the tunic and boots to c-buttons");
|
Tooltip("Allows equiping the tunic and boots to c-buttons");
|
||||||
EnhancementCheckbox("MM Bunny Hood", "gMMBunnyHood");
|
EnhancementCheckbox("MM Bunny Hood", "gMMBunnyHood");
|
||||||
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("Disable Navi Call Audio", "gDisableNaviCallAudio");
|
||||||
|
Tooltip("Disables the voice audio when Navi calls you");
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2164,13 +2164,15 @@ 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)) {
|
||||||
// clang-format off
|
if (!CVar_GetS32("gDisableNaviCallAudio", 0)) {
|
||||||
if (naviCallState == 0x1E) { Audio_PlaySoundGeneral(NA_SE_VO_NAVY_CALL, &D_801333D4, 4,
|
// clang-format off
|
||||||
&D_801333E0, &D_801333E0, &D_801333E8); }
|
if (naviCallState == 0x1E) { Audio_PlaySoundGeneral(NA_SE_VO_NAVY_CALL, &D_801333D4, 4,
|
||||||
// clang-format on
|
&D_801333E0, &D_801333E0, &D_801333E8); }
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user