v0.9.3: fixed quickslots visually appearing enabled when refreshed

This commit is contained in:
Evan Debenham 2021-04-01 01:15:27 -04:00
parent b6bc29ff63
commit c7b60a5ae6
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ public class ItemSlot extends Button {
}
}
private void updateText(){
public void updateText(){
if (itemIcon != null){
remove(itemIcon);

View File

@ -189,7 +189,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
slot.item( item );
enableSlot();
}
public void enable( boolean value ) {
active = value;
if (value) {
@ -257,7 +257,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
public static void refresh() {
for (int i = 0; i < instance.length; i++) {
if (instance[i] != null) {
instance[i].item(select(i));
instance[i].slot.updateText();
}
}
}