From 3bcdbbd286404fda21fab87a9b9d193be8338201 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sat, 13 Apr 2024 22:55:53 +0200 Subject: Fix: Item Size in Crop Milestones GUI (#1436) Co-authored-by: martimavocado Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt | 9 +++++++-- .../hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt index 3ad21dd0e..ad5dd28dc 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt @@ -34,6 +34,7 @@ import at.hannibal2.skyhanni.utils.LorenzRarity import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.NEUInternalName +import at.hannibal2.skyhanni.utils.NEUItems import at.hannibal2.skyhanni.utils.RenderUtils.addItemIcon import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getCultivatingCounter import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getHoeCounter @@ -157,8 +158,12 @@ object GardenAPI { fun readCounter(itemStack: ItemStack): Long = itemStack.getHoeCounter() ?: itemStack.getCultivatingCounter() ?: -1L - fun MutableList.addCropIcon(crop: CropType, highlight: Boolean = false) = - addItemIcon(crop.icon.copy(), highlight, scale = 1.0) + fun MutableList.addCropIcon( + crop: CropType, + scale: Double = NEUItems.itemFontSize, + highlight: Boolean = false, + ) = + addItemIcon(crop.icon.copy(), highlight, scale = scale) fun hideExtraGuis() = ComposterOverlay.inInventory || AnitaMedalProfit.inInventory || SkyMartCopperPrice.inInventory || FarmingContestAPI.inInventory || VisitorAPI.inInventory || FFGuideGUI.isInGui() diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt index 6be8da28f..e6f72d38f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt @@ -392,7 +392,7 @@ object GardenNextJacobContest { duration -= contestDuration } for (crop in nextContest.crops) { - list.addCropIcon(crop, highlight = (crop == boostedCrop)) + list.addCropIcon(crop, 1.0, highlight = (crop == boostedCrop)) nextContestCrops.add(crop) } if (!activeContest) { -- cgit