mirror of
https://github.com/Retera/WarsmashModEngine.git
synced 2022-07-31 17:38:59 +02:00
Update autocast art
This commit is contained in:
parent
0c0141cd71
commit
fa94450d54
@ -24,6 +24,7 @@ public class CommandCardIcon extends AbstractRenderableFrame {
|
|||||||
private int abilityHandleId;
|
private int abilityHandleId;
|
||||||
private int orderId;
|
private int orderId;
|
||||||
private int autoCastOrderId;
|
private int autoCastOrderId;
|
||||||
|
private boolean autoCastActive;
|
||||||
private final CommandCardCommandListener commandCardCommandListener;
|
private final CommandCardCommandListener commandCardCommandListener;
|
||||||
|
|
||||||
public CommandCardIcon(final String name, final UIFrame parent,
|
public CommandCardIcon(final String name, final UIFrame parent,
|
||||||
@ -46,7 +47,7 @@ public class CommandCardIcon extends AbstractRenderableFrame {
|
|||||||
this.iconFrame.setVisible(false);
|
this.iconFrame.setVisible(false);
|
||||||
this.activeHighlightFrame.setVisible(false);
|
this.activeHighlightFrame.setVisible(false);
|
||||||
this.cooldownFrame.setVisible(false);
|
this.cooldownFrame.setVisible(false);
|
||||||
this.autocastFrame.setSequence(PrimaryTag.DEATH);
|
this.autocastFrame.setVisible(false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (commandButton.isEnabled()) {
|
if (commandButton.isEnabled()) {
|
||||||
@ -73,11 +74,17 @@ public class CommandCardIcon extends AbstractRenderableFrame {
|
|||||||
this.iconFrame.setVisible(true);
|
this.iconFrame.setVisible(true);
|
||||||
this.activeHighlightFrame.setVisible(active);
|
this.activeHighlightFrame.setVisible(active);
|
||||||
this.cooldownFrame.setVisible(false);
|
this.cooldownFrame.setVisible(false);
|
||||||
if (autoCastActive) {
|
this.autocastFrame.setVisible(autoCastOrderId != 0);
|
||||||
this.autocastFrame.setSequence(PrimaryTag.STAND);
|
if (autoCastOrderId != 0) {
|
||||||
}
|
if (this.autoCastActive != autoCastActive) {
|
||||||
else {
|
if (autoCastActive) {
|
||||||
this.autocastFrame.setSequence(-1);
|
this.autocastFrame.setSequence(PrimaryTag.STAND);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.autocastFrame.setSequence(-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.autoCastActive = autoCastActive;
|
||||||
}
|
}
|
||||||
this.iconFrame.setTexture(texture);
|
this.iconFrame.setTexture(texture);
|
||||||
this.abilityHandleId = abilityHandleId;
|
this.abilityHandleId = abilityHandleId;
|
||||||
|
Loading…
Reference in New Issue
Block a user