aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/config
diff options
context:
space:
mode:
authoringlettronald <71849533+inglettronald@users.noreply.github.com>2023-04-18 12:52:03 -0500
committerGitHub <noreply@github.com>2023-04-18 12:52:03 -0500
commit23c431419fa15bf4dab905fe1cecc37a98334175 (patch)
treef222cd1c769f447cee1658841018b1f30dad93b7 /src/main/kotlin/dulkirmod/config
parent3586217aa1d08458d81a4eb15e5b38e42793f68b (diff)
parent7e04cb28e30978f58519ad95d82ea33ea719fa29 (diff)
downloadDulkirMod-23c431419fa15bf4dab905fe1cecc37a98334175.tar.gz
DulkirMod-23c431419fa15bf4dab905fe1cecc37a98334175.tar.bz2
DulkirMod-23c431419fa15bf4dab905fe1cecc37a98334175.zip
Merge pull request #13 from Ownwn/master
Added an option to play a sound when clicking a secret in dungeons
Diffstat (limited to 'src/main/kotlin/dulkirmod/config')
-rw-r--r--src/main/kotlin/dulkirmod/config/DulkirConfig.kt33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt
index c9b5808..24d69b7 100644
--- a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt
+++ b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt
@@ -363,6 +363,36 @@ object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-conf
var highlightLeapName: String = "Dilkur"
@Switch(
+ name = "Play sound when clicking secrets in dungeons",
+ description = "Will play on levers, chests and essence",
+ category = "Dungeons",
+ subcategory = "Dungeons"
+ )
+ var secretClickSounds = false
+
+ @Slider(
+ name = "Secret Click Volume",
+ description = "Volume of click sound",
+ category = "Dungeons",
+ subcategory = "Dungeons",
+ min = 0f,
+ max = 1f,
+ step = 0
+ )
+ var secretSoundVolume = .7f
+
+ @Button(
+ name = "Demo Volume Selection",
+ description = "Plays the Random Break sound as Reference, Might add individual sliders later but this seems like enough",
+ category = "Dungeons",
+ subcategory = "Dungeons",
+ text = "Test"
+ )
+ fun demoSecretVolume() {
+ DulkirMod.mc.thePlayer.playSound("random.break", 1f * secretSoundVolume, 1f)
+ }
+
+ @Switch(
name = "Remove Selfie Camera",
description = "Get rid of pesky reverse third person!",
category = "General",
@@ -671,6 +701,7 @@ object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-conf
addDependency("hurtCamIntensity", "hurtCamSlider")
addDependency("tooltipSize", "scaledTooltips")
addDependency("persistentAlert", "notifyMaxVisitors")
-
+ addDependency("secretSoundVolume", "secretClickSounds")
+ addDependency("demoSecretVolume", "secretClickSounds")
}
}