mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Now AI default skill is 10. Made skill checkbox wider (didn't fit "10" value in Nimbus LAF).
This commit is contained in:
parent
3bcff30680
commit
2e331f2481
2 changed files with 3 additions and 2 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="lblLevel" min="-2" max="-2" attributes="0"/>
|
<Component id="lblLevel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="cbLevel" min="-2" pref="45" max="-2" attributes="0"/>
|
<Component id="cbLevel" min="-2" pref="54" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ public class NewPlayerPanel extends javax.swing.JPanel {
|
||||||
}
|
}
|
||||||
this.txtPlayerDeck.setText(deckPath);
|
this.txtPlayerDeck.setText(deckPath);
|
||||||
if (Config.defaultComputerName != null) this.txtPlayerName.setText(Config.defaultComputerName);
|
if (Config.defaultComputerName != null) this.txtPlayerName.setText(Config.defaultComputerName);
|
||||||
|
if (cbLevel.getModel().getSize() > 0) cbLevel.setSelectedIndex(cbLevel.getModel().getSize()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPlayerName(String playerName) {
|
public void setPlayerName(String playerName) {
|
||||||
|
|
@ -173,7 +174,7 @@ public class NewPlayerPanel extends javax.swing.JPanel {
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addComponent(lblLevel)
|
.addComponent(lblLevel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(cbLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))))
|
.addComponent(cbLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue