v0.4.1a: fixed quickslots not always updating properly
This commit is contained in:
parent
fbeb13a87c
commit
9e14340a90
|
@ -193,6 +193,10 @@ public class ItemSprite extends MovieClip {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void frame( int image ){
|
||||||
|
frame( film.get( image ));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void kill() {
|
public void kill() {
|
||||||
super.kill();
|
super.kill();
|
||||||
|
|
|
@ -142,6 +142,7 @@ public class ItemSlot extends Button {
|
||||||
|
|
||||||
public void item( Item item ) {
|
public void item( Item item ) {
|
||||||
if (this.item == item) {
|
if (this.item == item) {
|
||||||
|
if (item != null) icon.frame(item.image);
|
||||||
updateText();
|
updateText();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user