v0.6.1: fixed quickslots not updating properly when item glow changes
This commit is contained in:
@@ -195,9 +195,7 @@ public class ItemSprite extends MovieClip {
|
|||||||
if (this.emitter != null) this.emitter.killAndErase();
|
if (this.emitter != null) this.emitter.killAndErase();
|
||||||
emitter = null;
|
emitter = null;
|
||||||
frame( image );
|
frame( image );
|
||||||
if ((this.glowing = glowing) == null) {
|
glow( glowing );
|
||||||
resetColor();
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,6 +208,11 @@ public class ItemSprite extends MovieClip {
|
|||||||
perspectiveRaise = (5 + 8 - height) / 16f;
|
perspectiveRaise = (5 + 8 - height) / 16f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void glow( Glowing glowing ){
|
||||||
|
this.glowing = glowing;
|
||||||
|
if (glowing == null) resetColor();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void kill() {
|
public void kill() {
|
||||||
|
|||||||
@@ -154,7 +154,10 @@ 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());
|
if (item != null) {
|
||||||
|
icon.frame(item.image());
|
||||||
|
icon.glow(item.glowing());
|
||||||
|
}
|
||||||
updateText();
|
updateText();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user