v0.3.0: added support for item sprites to contain emitters
This commit is contained in:
@@ -133,12 +133,14 @@ public class ItemSlot extends Button {
|
||||
if (item == null) {
|
||||
|
||||
active = false;
|
||||
icon.visible = topLeft.visible = topRight.visible = bottomRight.visible = false;
|
||||
topLeft.visible = topRight.visible = bottomRight.visible = false;
|
||||
icon.visible(false);
|
||||
|
||||
} else {
|
||||
|
||||
active = true;
|
||||
icon.visible = topLeft.visible = topRight.visible = bottomRight.visible = true;
|
||||
topLeft.visible = topRight.visible = bottomRight.visible = true;
|
||||
icon.visible(true);
|
||||
|
||||
icon.view( item );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user