diff options
author | inglettronald <71849533+inglettronald@users.noreply.github.com> | 2023-05-19 02:45:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 02:45:40 -0500 |
commit | 6ac930c800b56d8c4f0d9ccb540be7e8507dcb42 (patch) | |
tree | 425e20a6c0e393294446328347a4ca6097196f8f | |
parent | dac450a6bf943cd08d1acf91f64997f9644c0a57 (diff) | |
parent | 24c91ab86ff8dda0b3205296e3b20040a6b60290 (diff) | |
download | DulkirMod-6ac930c800b56d8c4f0d9ccb540be7e8507dcb42.tar.gz DulkirMod-6ac930c800b56d8c4f0d9ccb540be7e8507dcb42.tar.bz2 DulkirMod-6ac930c800b56d8c4f0d9ccb540be7e8507dcb42.zip |
Merge pull request #14 from utkuaydin01/master
Added an option to show yaw display outside garden
-rw-r--r-- | src/main/kotlin/dulkirmod/config/DulkirConfig.kt | 10 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt index 587c6ba..df49b52 100644 --- a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt +++ b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt @@ -695,7 +695,7 @@ object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-conf var witherKeyDisplayHUD: KeyHud = KeyHud() @HUD( - name = "Pitch/Yaw Display", + name = "Pitch/Yaw Display in Garden", category = "HUD", subcategory = "Farming" ) @@ -717,6 +717,14 @@ object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-conf ) var yaw3Decimals = false + @Switch( + name = "Display outside garden", + description = "why do you need this", + category = "HUD", + subcategory = "Farming" + ) + var showYawEverywhere = false + @HUD( name = "Garden Info Display", category = "HUD", diff --git a/src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt b/src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt index abed145..eb6555b 100644 --- a/src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt +++ b/src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt @@ -9,7 +9,9 @@ import dulkirmod.utils.Utils class YawDisplayHud : TextHud(false) { override fun getLines(lines: MutableList<String>?, example: Boolean) { if (!Utils.isInSkyblock()) return - if (TabListUtils.area != "Garden") return + if (!DulkirConfig.showYawEverywhere) { + if (TabListUtils.area != "Garden") return + } val pitch = mc.thePlayer.rotationPitch var yaw = mc.thePlayer.rotationYaw % 360f |