mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Minor text change
- CheckStyle.
This commit is contained in:
@@ -106,7 +106,7 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
private final JLabel lblPrizeUnrestricted = new FLabel.Builder().text("All cards will be available to win.").build();
|
private final JLabel lblPrizeUnrestricted = new FLabel.Builder().text("All cards will be available to win.").build();
|
||||||
private final JLabel lblPrizeSameAsStarting = new FLabel.Builder().text("Only sets found in starting pool will be available.").build();
|
private final JLabel lblPrizeSameAsStarting = new FLabel.Builder().text("Only sets found in starting pool will be available.").build();
|
||||||
|
|
||||||
private final JCheckBox cboAllowUnlocks = new FCheckBox("Allow unlock of not included editions");
|
private final JCheckBox cboAllowUnlocks = new FCheckBox("Allow unlock of additional editions");
|
||||||
|
|
||||||
private final FLabel btnEmbark = new FLabel.Builder().opaque(true)
|
private final FLabel btnEmbark = new FLabel.Builder().opaque(true)
|
||||||
.fontSize(16).hoverable(true).text("Embark!").build();
|
.fontSize(16).hoverable(true).text("Embark!").build();
|
||||||
@@ -133,8 +133,8 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
cbxCustomDeck.removeAllItems();
|
cbxCustomDeck.removeAllItems();
|
||||||
CardCollections decks = Singletons.getModel().getDecks();
|
CardCollections decks = Singletons.getModel().getDecks();
|
||||||
IStorage<DeckGroup> storage = newVal == StartingPoolType.SealedDeck ? decks.getSealed() : decks.getDraft();
|
IStorage<DeckGroup> storage = newVal == StartingPoolType.SealedDeck ? decks.getSealed() : decks.getDraft();
|
||||||
if( newVal == StartingPoolType.SealedDeck ) {
|
if (newVal == StartingPoolType.SealedDeck) {
|
||||||
for(DeckGroup d : storage ) {
|
for (DeckGroup d : storage) {
|
||||||
cbxCustomDeck.addItem(d.getHumanDeck());
|
cbxCustomDeck.addItem(d.getHumanDeck());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,7 +173,6 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
group1.add(radExpert);
|
group1.add(radExpert);
|
||||||
radEasy.setSelected(true);
|
radEasy.setSelected(true);
|
||||||
|
|
||||||
|
|
||||||
cbxStartingPool.addItem(StartingPoolType.Complete);
|
cbxStartingPool.addItem(StartingPoolType.Complete);
|
||||||
cbxStartingPool.addItem(StartingPoolType.Rotating);
|
cbxStartingPool.addItem(StartingPoolType.Rotating);
|
||||||
cbxStartingPool.addItem(StartingPoolType.CustomFormat);
|
cbxStartingPool.addItem(StartingPoolType.CustomFormat);
|
||||||
@@ -247,7 +246,6 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
pnlDifficultyMode.setOpaque(false);
|
pnlDifficultyMode.setOpaque(false);
|
||||||
pnlOptions.add(pnlDifficultyMode, "w 40%");
|
pnlOptions.add(pnlDifficultyMode, "w 40%");
|
||||||
|
|
||||||
|
|
||||||
JPanel pnlRestrictions = new JPanel();
|
JPanel pnlRestrictions = new JPanel();
|
||||||
final String constraints = "h 27px!, ";
|
final String constraints = "h 27px!, ";
|
||||||
final String lblWidth = "w 40%, ";
|
final String lblWidth = "w 40%, ";
|
||||||
@@ -261,7 +259,7 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
pnlRestrictions.add(cbxStartingPool, constraints + cboWidthStart);
|
pnlRestrictions.add(cbxStartingPool, constraints + cboWidthStart);
|
||||||
|
|
||||||
/* out of these 3 groups only one will be visible */
|
/* out of these 3 groups only one will be visible */
|
||||||
pnlRestrictions.add(lblUnrestricted, constraints + hidemode + "spanx 2" );
|
pnlRestrictions.add(lblUnrestricted, constraints + hidemode + "spanx 2");
|
||||||
|
|
||||||
pnlRestrictions.add(lblPreconDeck, constraints + lblWidthStart);
|
pnlRestrictions.add(lblPreconDeck, constraints + lblWidthStart);
|
||||||
pnlRestrictions.add(cbxPreconDeck, constraints + cboWidthStart);
|
pnlRestrictions.add(cbxPreconDeck, constraints + cboWidthStart);
|
||||||
@@ -278,12 +276,11 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
pnlRestrictions.add(lblPrizedCards, constraints + lblWidth);
|
pnlRestrictions.add(lblPrizedCards, constraints + lblWidth);
|
||||||
pnlRestrictions.add(cbxPrizedCards, constraints + cboWidth);
|
pnlRestrictions.add(cbxPrizedCards, constraints + cboWidth);
|
||||||
|
|
||||||
|
|
||||||
pnlRestrictions.add(lblPrizeFormat, constraints + lblWidthStart);
|
pnlRestrictions.add(lblPrizeFormat, constraints + lblWidthStart);
|
||||||
pnlRestrictions.add(cbxPrizeFormat, constraints + cboWidthStart); // , skip 1
|
pnlRestrictions.add(cbxPrizeFormat, constraints + cboWidthStart); // , skip 1
|
||||||
pnlRestrictions.add(btnPrizeDefineCustomFormat, constraints + hidemode + "spanx 2, w 240px");
|
pnlRestrictions.add(btnPrizeDefineCustomFormat, constraints + hidemode + "spanx 2, w 240px");
|
||||||
pnlRestrictions.add(lblPrizeSameAsStarting, constraints + hidemode + "spanx 2" );
|
pnlRestrictions.add(lblPrizeSameAsStarting, constraints + hidemode + "spanx 2");
|
||||||
pnlRestrictions.add(lblPrizeUnrestricted, constraints + hidemode + "spanx 2" );
|
pnlRestrictions.add(lblPrizeUnrestricted, constraints + hidemode + "spanx 2");
|
||||||
|
|
||||||
pnlRestrictions.add(cboAllowUnlocks, constraints + "spanx 2, ax right");
|
pnlRestrictions.add(cboAllowUnlocks, constraints + "spanx 2, ax right");
|
||||||
// cboAllowUnlocks.setOpaque(false);
|
// cboAllowUnlocks.setOpaque(false);
|
||||||
@@ -349,8 +346,6 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
return btnEmbark;
|
return btnEmbark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//========== Overridden from IVDoc
|
//========== Overridden from IVDoc
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
Reference in New Issue
Block a user