v1.3.0: fixed visual bugs with targeted and quickslot swapper

This commit is contained in:
Evan Debenham
2022-06-26 23:04:21 -04:00
parent 17ab91f500
commit eb68964e47
@@ -46,8 +46,8 @@ public class QuickSlotButton extends Button {
private ItemSlot slot; private ItemSlot slot;
private static Image crossB; private Image crossB;
private static Image crossM; private Image crossM;
private static boolean targeting = false; private static boolean targeting = false;
public static Char lastTarget = null; public static Char lastTarget = null;
@@ -338,9 +338,11 @@ public class QuickSlotButton extends Button {
public static void cancel() { public static void cancel() {
if (targeting) { if (targeting) {
crossB.visible = false; for (QuickSlotButton btn : instance) {
crossM.remove(); btn.crossB.visible = false;
targeting = false; btn.crossM.remove();
targeting = false;
}
} }
} }
} }