v0.9.3: fixed quickslots visually appearing enabled when refreshed
This commit is contained in:
@@ -176,7 +176,7 @@ public class ItemSlot extends Button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateText(){
|
public void updateText(){
|
||||||
|
|
||||||
if (itemIcon != null){
|
if (itemIcon != null){
|
||||||
remove(itemIcon);
|
remove(itemIcon);
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
|||||||
slot.item( item );
|
slot.item( item );
|
||||||
enableSlot();
|
enableSlot();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void enable( boolean value ) {
|
public void enable( boolean value ) {
|
||||||
active = value;
|
active = value;
|
||||||
if (value) {
|
if (value) {
|
||||||
@@ -257,7 +257,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
|||||||
public static void refresh() {
|
public static void refresh() {
|
||||||
for (int i = 0; i < instance.length; i++) {
|
for (int i = 0; i < instance.length; i++) {
|
||||||
if (instance[i] != null) {
|
if (instance[i] != null) {
|
||||||
instance[i].item(select(i));
|
instance[i].slot.updateText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user