diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-06-15 03:28:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 03:28:16 +0200 |
commit | 84b59f02dbd85dc49343cd53271413e52f3ed2ae (patch) | |
tree | cb26c310a012fe960c443b040aad8052211d60a0 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 4b5890830b10ad40f6f75200ecd779242d2d25ba (diff) | |
download | skyhanni-84b59f02dbd85dc49343cd53271413e52f3ed2ae.tar.gz skyhanni-84b59f02dbd85dc49343cd53271413e52f3ed2ae.tar.bz2 skyhanni-84b59f02dbd85dc49343cd53271413e52f3ed2ae.zip |
Improvement: Custom Wardrobe Tooltip Keybind (#2078)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt index 69df1cf56..ff9a7610a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt @@ -26,6 +26,7 @@ import at.hannibal2.skyhanni.utils.DelayedRun import at.hannibal2.skyhanni.utils.EntityUtils.getFakePlayer import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.removeEnchants +import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.HorizontalAlignment import at.hannibal2.skyhanni.utils.RenderUtils.VerticalAlignment @@ -207,7 +208,13 @@ object CustomWardrobe { if (stack != null) { val toolTip = getToolTip(stack, slot, armorIndex) if (toolTip != null) { - renderable = Renderable.hoverTips(renderable, tips = toolTip) + renderable = Renderable.hoverTips( + renderable, + tips = toolTip, + condition = { + !config.showTooltipOnlyKeybind || config.tooltipKeybind.isKeyHeld() + }, + ) } } loreList.add(renderable) |