From ffba85d9022b95cc5b44f927b6ea7399aee365e7 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 7 Jan 2023 07:44:30 +0100 Subject: Better Brewing Stand Overlay design. --- .../at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt index 6496e3d4c..5557309a2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt @@ -18,7 +18,8 @@ class BrewingStandOverlay { val stack = event.stack val name = stack.name ?: return - when (event.slot.slotNumber) { + val slotNumber = event.slot.slotNumber + when (slotNumber) { 13, // Ingredient input 21, // Progress 42, // Output right side @@ -28,11 +29,15 @@ class BrewingStandOverlay { else -> return } + if (slotNumber == 21) { + event.offsetX = 55 + } + // Hide the progress slot when not active if (name.contains(" or ")) return event.stackTip = name - event.offsetX = 3 + event.offsetX = event.offsetX + 3 event.offsetY = -5 event.alignLeft = false } -- cgit