mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-23 22:45:05 -04:00
No Low HP Sound Enhancement
This commit is contained in:
@@ -45,6 +45,9 @@ struct UserSettings {
|
||||
bool enableBloom;
|
||||
bool useWaterProjectionOffset;
|
||||
|
||||
// Audio
|
||||
bool noLowHpSound;
|
||||
|
||||
// Cheats
|
||||
bool enableFastIronBoots;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -67,6 +67,15 @@ namespace dusk {
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
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::EndMenu();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Cheats")) {
|
||||
ImGui::Checkbox("Fast Iron Boots", &getSettings().game.enableFastIronBoots);
|
||||
|
||||
|
||||
@@ -41,6 +41,9 @@ UserSettings g_userSettings = {
|
||||
.enableBloom = true,
|
||||
.useWaterProjectionOffset = false,
|
||||
|
||||
// Audio
|
||||
.noLowHpSound = false,
|
||||
|
||||
// Cheats
|
||||
.enableFastIronBoots = false,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user