aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/items
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-24 21:00:52 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-24 21:00:52 +0200
commitaa9f51fc8153226710180212b02e135c0670c129 (patch)
tree71e1d7e973f3eeba2ae8baeaa10a08a93979e52f /src/main/java/at/hannibal2/skyhanni/features/items
parentea1a2980a6cb6b465c1f6911c959335aca25cb80 (diff)
downloadskyhanni-aa9f51fc8153226710180212b02e135c0670c129.tar.gz
skyhanni-aa9f51fc8153226710180212b02e135c0670c129.tar.bz2
skyhanni-aa9f51fc8153226710180212b02e135c0670c129.zip
option to change the gray-out opacity for 'Not Clickable Items'
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/items')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
index 95d9517d5..549d347eb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
@@ -78,7 +78,10 @@ class HideNotClickableItems {
if (slot.stack == null) continue
if (hide(chestName, slot.stack)) {
- val color = LorenzColor.DARK_GRAY.addOpacity(160)
+// val color = LorenzColor.DARK_GRAY.addOpacity(160)
+// val color = LorenzColor.DARK_GRAY.addOpacity(LorenzTest.a.toInt())
+ val opacity = SkyHanniMod.feature.inventory.hideNotClickableOpacity
+ val color = LorenzColor.DARK_GRAY.addOpacity(opacity)
slot.stack.background = color.rgb
}
}