mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 17:48:21 -04:00
Merge pull request #219 from TakaRikka/feature/no-low-hp-sound
No Low HP Sound Enhancement
This commit is contained in:
@@ -47,6 +47,7 @@ struct UserSettings {
|
||||
bool useWaterProjectionOffset;
|
||||
|
||||
// Audio
|
||||
bool noLowHpSound;
|
||||
bool midnasLamentNonStop;
|
||||
|
||||
// Cheats
|
||||
|
||||
@@ -155,7 +155,14 @@ void Z2AudioMgr::zeldaGFrameWork() {
|
||||
mSpeechMgr.framework();
|
||||
processSeFramework();
|
||||
processBgmFramework();
|
||||
|
||||
#if TARGET_PC
|
||||
if (!dusk::getSettings().game.noLowHpSound) {
|
||||
processHeartGaugeSound();
|
||||
}
|
||||
#else
|
||||
processHeartGaugeSound();
|
||||
#endif
|
||||
|
||||
#if DEBUG
|
||||
mDebugSys.debugframework();
|
||||
|
||||
@@ -74,6 +74,10 @@ namespace dusk {
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Audio")) {
|
||||
ImGui::Checkbox("No Low HP Sound", &getSettings().game.noLowHpSound);
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Disable the beeping sound when having low health");
|
||||
|
||||
ImGui::Checkbox("Non-Stop Midna's Lament", &getSettings().game.midnasLamentNonStop);
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Prevents enemy music while Midna's Lament is playing");
|
||||
|
||||
@@ -43,6 +43,7 @@ UserSettings g_userSettings = {
|
||||
.useWaterProjectionOffset = false,
|
||||
|
||||
// Audio
|
||||
.noLowHpSound = false,
|
||||
.midnasLamentNonStop = false,
|
||||
|
||||
// Cheats
|
||||
|
||||
Reference in New Issue
Block a user