diff options
| author | Lorenz <lo.scherf@gmail.com> | 2022-08-06 17:11:16 +0200 |
|---|---|---|
| committer | Lorenz <lo.scherf@gmail.com> | 2022-08-06 17:11:16 +0200 |
| commit | c9b4b56db48e935f7c671d0fe0c9c4a0e3edcfdf (patch) | |
| tree | 15ef0ee9b5405d22a77b0aeef1d725abf6ed5c28 /src/main/java/at/hannibal2/skyhanni/items/abilitycooldown | |
| parent | ec46ae2721ce14a31167527e9c7498ec31772bdb (diff) | |
| download | skyhanni-c9b4b56db48e935f7c671d0fe0c9c4a0e3edcfdf.tar.gz skyhanni-c9b4b56db48e935f7c671d0fe0c9c4a0e3edcfdf.tar.bz2 skyhanni-c9b4b56db48e935f7c671d0fe0c9c4a0e3edcfdf.zip | |
new item render background logic and using it for HideNotClickableItems and ItemAbilityCooldown
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/items/abilitycooldown')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/items/abilitycooldown/ItemAbilityCooldown.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/abilitycooldown/ItemAbilityCooldown.kt b/src/main/java/at/hannibal2/skyhanni/items/abilitycooldown/ItemAbilityCooldown.kt index c3358965e..e744f7ca6 100644 --- a/src/main/java/at/hannibal2/skyhanni/items/abilitycooldown/ItemAbilityCooldown.kt +++ b/src/main/java/at/hannibal2/skyhanni/items/abilitycooldown/ItemAbilityCooldown.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.items.abilitycooldown +import at.hannibal2.skyhanni.ItemRenderBackground.Companion.background import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.GuiRenderItemEvent import at.hannibal2.skyhanni.events.LorenzActionBarEvent @@ -107,7 +108,10 @@ class ItemAbilityCooldown { .firstNotNullOfOrNull { it.value } ?: return if (guiOpen && !itemText.onCooldown) return - stackTip = itemText.color.getChatColor() + itemText.text + val color = itemText.color + stackTip = color.getChatColor() + itemText.text + + item.background = color.addOpacity(120).rgb if (stackTip.isNotEmpty()) { GlStateManager.disableLighting() |
