v0.9.4: fixed interface weirdness in WndResurrect
This commit is contained in:
parent
6a0e792aa5
commit
6bb9be6e6b
|
@ -147,6 +147,14 @@ public class ItemSlot extends Button {
|
|||
|
||||
}
|
||||
|
||||
public void clear(){
|
||||
item(null);
|
||||
enable(true);
|
||||
sprite.visible(true);
|
||||
sprite.view(ItemSpriteSheet.SOMETHING, null);
|
||||
layout();
|
||||
}
|
||||
|
||||
public void item( Item item ) {
|
||||
if (this.item == item) {
|
||||
if (item != null) {
|
||||
|
|
|
@ -186,5 +186,9 @@ public class WndBlacksmith extends Window {
|
|||
public void item( Item item ) {
|
||||
slot.item( this.item = item );
|
||||
}
|
||||
|
||||
public void clear(){
|
||||
slot.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,9 +142,9 @@ public class WndResurrect extends Window {
|
|||
|
||||
if (btnItem1.item == btnItem2.item){
|
||||
if (btnPressed == btnItem1){
|
||||
btnItem2.item(null);
|
||||
btnItem2.clear();
|
||||
} else {
|
||||
btnItem1.item(null);
|
||||
btnItem1.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user