From 0a043e4534581a0bea0e5e69028dab41dfb8d130 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 Dec 2024 12:16:09 -0500 Subject: [PATCH] v3.0.0: fixed visual errors with spellbook spell icon alpha --- .../shatteredpixeldungeon/windows/WndClericSpells.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java index 82bb9fd7c..a20d4855c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java @@ -147,6 +147,14 @@ public class WndClericSpells extends Window { addToBack(bg); } + @Override + protected void onPointerUp() { + super.onPointerUp(); + if (!tome.canCast(Dungeon.hero, spell)){ + icon.alpha( 0.3f ); + } + } + @Override protected void layout() { super.layout();