v0.9.3: fixed quickslots visually appearing enabled when refreshed
This commit is contained in:
parent
b6bc29ff63
commit
c7b60a5ae6
|
@ -176,7 +176,7 @@ public class ItemSlot extends Button {
|
|||
}
|
||||
}
|
||||
|
||||
private void updateText(){
|
||||
public void updateText(){
|
||||
|
||||
if (itemIcon != null){
|
||||
remove(itemIcon);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user