v1.3.0: fixed visual bugs with targeted and quickslot swapper
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user