parent
70d80d3a9b
commit
8dbd31c4cf
|
@ -16,6 +16,7 @@ public class TournamentConfig {
|
|||
|
||||
private static final String ANY_THREE="***";
|
||||
private static final String ANY_TWO="**";
|
||||
private static final String ANY_ONE="*";
|
||||
|
||||
private static final String CONFIG_FILENAME="tournament.cfg";
|
||||
private static final String AVATAR="avatar";
|
||||
|
@ -106,6 +107,8 @@ public class TournamentConfig {
|
|||
return new MagicPlayerProfile(MagicColor.getRandomColors(3));
|
||||
} else if (ANY_TWO.equals(colorText)) {
|
||||
return new MagicPlayerProfile(MagicColor.getRandomColors(2));
|
||||
} else if (ANY_ONE.equals(colorText)) {
|
||||
return new MagicPlayerProfile(MagicColor.getRandomColors(1));
|
||||
}
|
||||
return new MagicPlayerProfile(colorText);
|
||||
}
|
||||
|
|
|
@ -245,6 +245,12 @@ public class TournamentDialog extends JDialog implements ActionListener {
|
|||
model.addElement("gw");
|
||||
model.addElement("rw");
|
||||
model.addElement("**");
|
||||
model.addElement("b");
|
||||
model.addElement("u");
|
||||
model.addElement("g");
|
||||
model.addElement("r");
|
||||
model.addElement("w");
|
||||
model.addElement("*");
|
||||
setModel(model);
|
||||
setSelectedItem(colors);
|
||||
this.setFocusable(false);
|
||||
|
|
Loading…
Reference in New Issue