v3.0.0: fixed visual errors with spellbook spell icon alpha

This commit is contained in:
Evan Debenham
2024-12-16 12:16:09 -05:00
parent 4c908a6c65
commit 0a043e4534

View File

@@ -147,6 +147,14 @@ public class WndClericSpells extends Window {
addToBack(bg); addToBack(bg);
} }
@Override
protected void onPointerUp() {
super.onPointerUp();
if (!tome.canCast(Dungeon.hero, spell)){
icon.alpha( 0.3f );
}
}
@Override @Override
protected void layout() { protected void layout() {
super.layout(); super.layout();