mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09: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
Mage.Client/src/main/java/mage/client/table
|
@ -39,7 +39,7 @@
|
|||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="lblLevel" min="-2" 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>
|
||||
|
|
|
@ -62,6 +62,7 @@ public class NewPlayerPanel extends javax.swing.JPanel {
|
|||
}
|
||||
this.txtPlayerDeck.setText(deckPath);
|
||||
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) {
|
||||
|
@ -173,7 +174,7 @@ public class NewPlayerPanel extends javax.swing.JPanel {
|
|||
.addGroup(layout.createSequentialGroup()
|
||||
.addComponent(lblLevel)
|
||||
.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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
|
|
Loading…
Add table
Reference in a new issue