add small undo icon and use it in undo message, for #1177

master
melvinzhang 2017-07-14 16:08:27 +08:00
parent e470b5efe6
commit 5d5e8e57a9
5 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -73,6 +73,7 @@ public enum MagicIcon {
START("start.png"),
STOP("stop.png"),
UNDO("undo.png"),
UNDO2("undo2.png"),
BUSY("busy.gif"),
BUSY16("busy16.gif"),
ALL("all.gif"),

View File

@ -13,6 +13,7 @@ public class TextImages {
static {
add("{f}", MagicIcon.FORWARD2);
add("{undo}", MagicIcon.UNDO2);
add("{O}", MagicIcon.TARGET);
add("{SS}", MagicIcon.CANNOTTAP);
add("{D}", MagicIcon.DAMAGE);

View File

@ -26,7 +26,7 @@ public class MagicPayManaCostChoice extends MagicChoice {
private static final String _S_CHOOSE = "Choose a mana ability to pay %s.";
@StringContext(eg = "%s will be replaced with a mana cost icon.")
private static final String _S_NO_OPTIONS = "Unable to pay %s.|Please undo.";
private static final String _S_NO_OPTIONS = "Unable to pay %s.|Click {undo} to undo.";
private final MagicManaCost cost;

View File

@ -27,7 +27,7 @@ import magic.translate.MText;
public class MagicTargetChoice extends MagicChoice {
private static final String NO_OPTIONS = "Unable to %s|Please undo.";
private static final String NO_OPTIONS = "Unable to %s|Click {undo} to undo.";
public static final MagicTargetChoice NONE =
new MagicTargetChoice(MagicTargetFilterFactory.NONE,MagicTargetHint.None,"nothing") {