forked from External/mage
[UI] Some sounds
This commit is contained in:
parent
5c8ebf393b
commit
de146458a9
7 changed files with 99 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ import mage.cards.MagePermanent;
|
|||
import mage.cards.TextPopup;
|
||||
import mage.cards.action.ActionCallback;
|
||||
import mage.cards.action.TransferData;
|
||||
import mage.client.util.AudioManager;
|
||||
import mage.components.ImagePanel;
|
||||
import mage.utils.CardUtil;
|
||||
import mage.view.AbilityView;
|
||||
|
|
@ -631,6 +632,9 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
if (needsTapping || needsFlipping) {
|
||||
Animation.tapCardToggle(this, this, needsTapping, needsFlipping);
|
||||
}
|
||||
if (needsTapping && ((PermanentView) card).isTapped()) {
|
||||
AudioManager.playTapPermanent();
|
||||
}
|
||||
boolean needsTranforming = isTransformed() != card.isTransformed();
|
||||
if (needsTranforming) {
|
||||
Animation.transformCard(this, this, card.isTransformed());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue