diff --git a/src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt b/src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt index f824169ba..ecb3dd244 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt @@ -1981,6 +1981,17 @@ object Config : Vigilant( ) var crystalHollowMap = false + @Property( + type = PropertyType.DECIMAL_SLIDER, name = "Crystal Hollows map player arrow scale", + description = "Scale the arrow indicating the player on the crystal hollows map", + category = "Mining", subcategory = "Crystal Hollows", + minF = 0.5f, maxF = 10f, decimalPlaces = 2, + i18nName = "skytils.config.mining.crystal_hollows.player_arrow_scaling", + i18nCategory = "skytils.config.mining", + i18nSubcategory = "skytils.config.mining.crystal_hollows" + ) + var crystalHollowsMapPlayerScale = 2.25F + @Property( type = PropertyType.SWITCH, name = "Crystal Hollows map special places", description = "Show special places on the map (like Lost Precusor City).", @@ -1990,7 +2001,7 @@ object Config : Vigilant( i18nSubcategory = "skytils.config.mining.crystal_hollows" ) var crystalHollowMapPlaces = false - + @Property( type = PropertyType.SWITCH, name = "Crystal Hollows waypoints", description = "Shows waypoints to special places inside the Crystal Hollows.", @@ -4477,6 +4488,8 @@ object Config : Vigilant( addDependency("shinyPigLocations", "shinyOrbWaypoints") + addDependency("crystalHollowsMapPlayerScale", "crystalHollowMap") + registerListener("protectItemBINThreshold") { _: String -> tickTimer(1) { val numeric = protectItemBINThreshold.replace(Regex("[^0-9]"), "") diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/mining/CHWaypoints.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/mining/CHWaypoints.kt index 8deb54836..edf0ac009 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/mining/CHWaypoints.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/mining/CHWaypoints.kt @@ -297,6 +297,7 @@ object CHWaypoints { } val x = (mc.thePlayer.posX - 202).coerceIn(0.0, 624.0) val y = (mc.thePlayer.posZ - 202).coerceIn(0.0, 624.0) + val scale = Skytils.config.crystalHollowsMapPlayerScale // player marker code val wr = UGraphics.getFromTessellator() @@ -307,8 +308,8 @@ object CHWaypoints { // Rotate about the center to match the player's yaw stack.rotate((mc.thePlayer.rotationYawHead + 180f) % 360f, 0f, 0f, 1f) - stack.scale(1.5f, 1.5f, 1.5f) - stack.translate(-0.125f, 0.125f, 0.0f) + stack.scale(scale,scale,scale) + stack.translate((-0.125f*scale).toDouble(), (0.125f*scale).toDouble(), 0.0) UGraphics.color4f(1f, 1f, 1f, 1f) UGraphics.enableAlpha() val d1 = 0.0 @@ -403,4 +404,4 @@ object CHWaypoints { ) } } -} \ No newline at end of file +} diff --git a/src/main/resources/assets/skytils/lang/en_US.lang b/src/main/resources/assets/skytils/lang/en_US.lang index 3d44c5148..340c40ea8 100644 --- a/src/main/resources/assets/skytils/lang/en_US.lang +++ b/src/main/resources/assets/skytils/lang/en_US.lang @@ -184,6 +184,7 @@ skytils.config.mining.solvers.fetchur_solver=Fetchur Solver skytils.config.mining.solvers.puzzler_solver=Puzzler Solver skytils.config.mining.crystal_hollows.crystal_hollows_death_waypoints=Crystal Hollows Death Waypoints skytils.config.mining.crystal_hollows.crystal_hollows_map=Crystal Hollows map +skytils.config.mining.crystal_hollows.player_arrow_scaling=Crystal Hollows map player arrow scale skytils.config.mining.crystal_hollows.crystal_hollows_map_special_places=Crystal Hollows map special places skytils.config.mining.crystal_hollows.crystal_hollows_waypoints=Crystal Hollows waypoints skytils.config.mining.crystal_hollows.king_yolkar_waypoint=King Yolkar waypoint @@ -471,4 +472,4 @@ skytils.config.spam.display=Display skytils.config.spam.abilities=Abilities skytils.config.spam.dungeons=Dungeons skytils.config.spam.miscellaneous=Miscellaneous -skytils.config.spam.fishing=Fishing \ No newline at end of file +skytils.config.spam.fishing=Fishing diff --git a/src/main/resources/assets/skytils/lang/zh_CN.lang b/src/main/resources/assets/skytils/lang/zh_CN.lang index 8a96c2ae5..e7fcb0fe6 100644 --- a/src/main/resources/assets/skytils/lang/zh_CN.lang +++ b/src/main/resources/assets/skytils/lang/zh_CN.lang @@ -180,6 +180,7 @@ skytils.config.mining.solvers.fetchur_solver=Fetchur的解密器 skytils.config.mining.solvers.puzzler_solver=Puzzler的解密器 skytils.config.mining.crystal_hollows.crystal_hollows_death_waypoints=水晶矿洞死亡路径点 skytils.config.mining.crystal_hollows.crystal_hollows_map=水晶矿洞地图 +skytils.config.mining.crystal_hollows.player_arrow_scaling= skytils.config.mining.crystal_hollows.crystal_hollows_map_special_places=水晶矿洞地图标记特殊地点 skytils.config.mining.crystal_hollows.crystal_hollows_waypoints=水晶矿洞路径点 skytils.config.mining.crystal_hollows.king_yolkar_waypoint=哥布林王路径点 @@ -466,4 +467,4 @@ skytils.config.spam.display=显示 skytils.config.spam.abilities=能力 skytils.config.spam.dungeons=地牢 skytils.config.spam.miscellaneous=杂项 -skytils.config.spam.fishing=钓鱼 \ No newline at end of file +skytils.config.spam.fishing=钓鱼 diff --git a/src/main/resources/assets/skytils/lang/zh_TW.lang b/src/main/resources/assets/skytils/lang/zh_TW.lang index ed7e93dc8..15b3dceab 100644 --- a/src/main/resources/assets/skytils/lang/zh_TW.lang +++ b/src/main/resources/assets/skytils/lang/zh_TW.lang @@ -180,6 +180,7 @@ skytils.config.mining.solvers.fetchur_solver=Fetchur的解答器 skytils.config.mining.solvers.puzzler_solver=Puzzler的解答器 skytils.config.mining.crystal_hollows.crystal_hollows_death_waypoints=Crystal Hollows死亡路徑點 skytils.config.mining.crystal_hollows.crystal_hollows_map=Crystal Hollows地圖 +skytils.config.mining.crystal_hollows.player_arrow_scaling= skytils.config.mining.crystal_hollows.crystal_hollows_map_special_places=Crystal Hollows地圖標記特殊地點 skytils.config.mining.crystal_hollows.crystal_hollows_waypoints=Crystal Hollows路徑點 skytils.config.mining.crystal_hollows.king_yolkar_waypoint=哥布林王路徑點