update deckaward icons

This commit is contained in:
Anthony Calosa
2023-02-13 05:50:18 +08:00
parent 23fc8e1c93
commit 9eafccf1d2
2 changed files with 9 additions and 9 deletions

View File

@@ -244,7 +244,7 @@ public class MapStage extends GameStage {
dialog.getContentTable().clear(); dialog.getContentTable().clear();
dialog.getButtonTable().clear(); dialog.getButtonTable().clear();
dialog.clearListeners(); dialog.clearListeners();
dialog.getContentTable().add(Controls.newTypingLabel(Controls.colorIdToTypingString(DeckProxy.getColorIdentity(deck)))).align(Align.center); dialog.getContentTable().add(Controls.newTypingLabel("[%150]"+Controls.colorIdToTypingString(DeckProxy.getColorIdentity(deck)))).align(Align.center);
dialog.getContentTable().add().row(); dialog.getContentTable().add().row();
TypingLabel L = Controls.newTypingLabel(message); TypingLabel L = Controls.newTypingLabel(message);

View File

@@ -351,20 +351,20 @@ public class Controls {
public static String colorIdToTypingString(ColorSet color) public static String colorIdToTypingString(ColorSet color)
{ {
String coloerId=""; String colorId="";
if(color.hasWhite()) if(color.hasWhite())
coloerId+="[+w]"; colorId+="[+w]";
if(color.hasBlue()) if(color.hasBlue())
coloerId+="[+u]"; colorId+="[+u]";
if(color.hasBlack()) if(color.hasBlack())
coloerId+="[+b]"; colorId+="[+b]";
if(color.hasRed()) if(color.hasRed())
coloerId+="[+r]"; colorId+="[+r]";
if(color.hasGreen()) if(color.hasGreen())
coloerId+="[+g]"; colorId+="[+g]";
if(color.isColorless()) if(color.isColorless())
coloerId+="[+c]"; colorId+="[+c]";
return coloerId; return colorId;
} }
public static TypingLabel newTypingLabel(String name) { public static TypingLabel newTypingLabel(String name) {
TypingLabel ret = new TypingLabel(name==null?"":name, getSkin(),getTextraFont()); TypingLabel ret = new TypingLabel(name==null?"":name, getSkin(),getTextraFont());