aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorutkuaydin01 <utkuaydin01@gmail.com>2023-05-11 19:54:04 +0300
committerutkuaydin01 <utkuaydin01@gmail.com>2023-05-11 19:54:04 +0300
commit24c91ab86ff8dda0b3205296e3b20040a6b60290 (patch)
tree425e20a6c0e393294446328347a4ca6097196f8f
parentdac450a6bf943cd08d1acf91f64997f9644c0a57 (diff)
downloadDulkirMod-24c91ab86ff8dda0b3205296e3b20040a6b60290.tar.gz
DulkirMod-24c91ab86ff8dda0b3205296e3b20040a6b60290.tar.bz2
DulkirMod-24c91ab86ff8dda0b3205296e3b20040a6b60290.zip
Added an option to show yaw display outside garden
-rw-r--r--src/main/kotlin/dulkirmod/config/DulkirConfig.kt10
-rw-r--r--src/main/kotlin/dulkirmod/overlays/YawDisplayHud.kt4
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