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 );
|
||||
|
||||
|
||||
@@ -365,6 +365,7 @@ public class Toolbar extends Component {
|
||||
visible =
|
||||
active =
|
||||
false;
|
||||
if (emitter != null) emitter.on = false;
|
||||
|
||||
} else {
|
||||
float p = left / DURATION;
|
||||
|
||||
Reference in New Issue
Block a user