mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Center the Scheme Deck Editor and the Planar Deck Editor buttons.
This commit is contained in:
@@ -108,7 +108,7 @@ public enum VSubmenuArchenemy implements IVSubmenu<CSubmenuArchenemy> {
|
||||
radioPaneContainer.add(radioPane);
|
||||
settingsPanel.add(radioPaneContainer, "span 1 2");
|
||||
settingsPanel.add(cbUseDefaultSchemes);
|
||||
settingsPanel.add(lblEditor, "w pref+24, h pref+8");
|
||||
settingsPanel.add(lblEditor, "w pref + 24, h pref + 8, ax center");
|
||||
tabPane.add("Settings", settingsPanel);
|
||||
|
||||
for (Deck schemeDeck : Singletons.getModel().getDecks().getScheme()) {
|
||||
@@ -152,7 +152,7 @@ public enum VSubmenuArchenemy implements IVSubmenu<CSubmenuArchenemy> {
|
||||
pnlStart.add(btnStart, "span 1 3, growx, pushx, align center");
|
||||
pnlStart.add(cbArtifacts, strCheckboxConstraints);
|
||||
pnlStart.add(cbRemoveSmall, strCheckboxConstraints);
|
||||
|
||||
|
||||
// ensure we don't fire the selected event before the tabPane is populated
|
||||
fieldRadios.get(fieldRadios.size() - 1).setSelected(true);
|
||||
}
|
||||
@@ -291,6 +291,9 @@ public enum VSubmenuArchenemy implements IVSubmenu<CSubmenuArchenemy> {
|
||||
return deckChoosers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the currentNumTabsShown
|
||||
*/
|
||||
public int getNumPlayers() {
|
||||
return currentNumTabsShown;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public enum VSubmenuPlanechase implements IVSubmenu<CSubmenuPlanechase> {
|
||||
}
|
||||
settingsPanel.add(radioPane, "span 1 2");
|
||||
settingsPanel.add(cbUseDefaultPlanes);
|
||||
settingsPanel.add(lblEditor, "w pref+24, h pref+8");
|
||||
settingsPanel.add(lblEditor, "w pref + 24, h pref + 8, ax center");
|
||||
tabPane.add("Settings", settingsPanel);
|
||||
|
||||
//Player panels (Human + 7 AIs)
|
||||
@@ -135,7 +135,7 @@ public enum VSubmenuPlanechase implements IVSubmenu<CSubmenuPlanechase> {
|
||||
tempPanel.add(new FLabel.Builder().text("Select Planar deck:").build(), "flowy");
|
||||
|
||||
tempPlanarDeckList = new FList();
|
||||
|
||||
|
||||
tempPlanarDeckList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
|
||||
|
||||
JScrollPane scrPlanes = new FScrollPane(tempPlanarDeckList, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
||||
@@ -292,6 +292,9 @@ public enum VSubmenuPlanechase implements IVSubmenu<CSubmenuPlanechase> {
|
||||
return deckChoosers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the currentNumTabsShown
|
||||
*/
|
||||
public int getNumPlayers() {
|
||||
return currentNumTabsShown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user