make it a bit more obv if the ghost is off

This commit is contained in:
lunarcleint
2025-02-22 17:14:58 -07:00
parent 04a2f72d95
commit 5ed03ce0fa
@@ -160,6 +160,7 @@ class CharacterAnimButton extends UIButton {
ghostIcon.animation.add("alive", [0]);
ghostIcon.animation.add("dead", [1]);
ghostIcon.animation.play("dead");
ghostIcon.color = 0xFFADADAD;
ghostIcon.antialiasing = false;
ghostIcon.updateHitbox();
members.push(ghostIcon);
@@ -365,9 +366,11 @@ class CharacterAnimButton extends UIButton {
if (parent.ghosts.indexOf(anim) == -1) {
parent.ghosts.push(anim);
ghostIcon.animation.play("alive", true);
ghostIcon.color = 0xFFFFFFFF;
} else {
parent.ghosts.remove(anim);
ghostIcon.animation.play("dead", true);
ghostIcon.color = 0xFFADADAD;
}
}