mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Minor tweak in InputSelectTargets and some string refactoring
This commit is contained in:
@@ -39,6 +39,7 @@ import forge.toolbox.FLabel;
|
||||
import forge.toolbox.FOptionPane;
|
||||
import forge.toolbox.FScrollPane;
|
||||
import forge.util.Callback;
|
||||
import forge.util.TextUtil;
|
||||
import forge.util.Utils;
|
||||
import forge.util.WaitCallback;
|
||||
|
||||
@@ -419,7 +420,8 @@ public class VAssignDamage extends FDialog {
|
||||
dt.label.setText(sb.toString());
|
||||
}
|
||||
|
||||
lblTotalDamage.setText(String.format("Available damage points: %d (of %d)", damageLeft, totalDamageToAssign));
|
||||
lblTotalDamage.setText(TextUtil.concatNoSpace("Available damage points: ",
|
||||
String.valueOf(damageLeft), " (of ", String.valueOf(totalDamageToAssign), ")"));
|
||||
setButtonEnabled(1, damageLeft == 0);
|
||||
lblAssignRemaining.setVisible(allHaveLethal && damageLeft > 0);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package forge.screens.match.winlose;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import forge.util.TextUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import com.badlogic.gdx.Input.Keys;
|
||||
@@ -127,9 +128,9 @@ public class ViewWinLose extends FOverlay implements IWinLoseView<FButton> {
|
||||
if (winner == null) {
|
||||
return "It's a draw!";
|
||||
} else if (winningTeam != -1) {
|
||||
return String.format("Team %d won!", Integer.valueOf(winningTeam));
|
||||
return TextUtil.concatNoSpace("Team ", String.valueOf(winningTeam), " won!");
|
||||
} else {
|
||||
return String.format("%s won!", winner);
|
||||
return TextUtil.concatNoSpace(winner, " won!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user