mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fixed quest pool color option selections not getting updated properly.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -53,6 +53,7 @@ forge-gui-mobile-dev/fallback_skin/Thumbs.db
|
||||
forge-gui-mobile-dev/res
|
||||
forge-gui-mobile-dev/target
|
||||
forge-gui-mobile-dev/testAssets
|
||||
forge-gui-mobile/*.iml
|
||||
forge-gui-mobile/bin
|
||||
forge-gui-mobile/target
|
||||
forge-gui/forge-gui.iml
|
||||
|
||||
@@ -49,7 +49,7 @@ public enum CSubmenuQuestData implements ICDoc {
|
||||
}
|
||||
};
|
||||
|
||||
List<Byte> preferredColors = new ArrayList<>();
|
||||
private List<Byte> preferredColors = new ArrayList<>();
|
||||
private PoolType poolType = PoolType.BALANCED;
|
||||
private boolean includeArtifacts = true;
|
||||
|
||||
|
||||
@@ -133,9 +133,19 @@ public class DialogChooseColors {
|
||||
cbxRed.setEnabled(radBalanced.isSelected());
|
||||
cbxWhite.setEnabled(radBalanced.isSelected());
|
||||
cbxColorless.setEnabled(radBalanced.isSelected());
|
||||
cbxArtifacts.setEnabled(!radSurpriseMe.isSelected());
|
||||
}
|
||||
};
|
||||
|
||||
clearColors.setEnabled(radBalanced.isSelected());
|
||||
cbxBlack.setEnabled(radBalanced.isSelected());
|
||||
cbxBlue.setEnabled(radBalanced.isSelected());
|
||||
cbxGreen.setEnabled(radBalanced.isSelected());
|
||||
cbxRed.setEnabled(radBalanced.isSelected());
|
||||
cbxWhite.setEnabled(radBalanced.isSelected());
|
||||
cbxColorless.setEnabled(radBalanced.isSelected());
|
||||
cbxArtifacts.setEnabled(!radSurpriseMe.isSelected());
|
||||
|
||||
radBalanced.setToolTipText("A balanced distribution will provide a roughly equal number of cards in each selected color.");
|
||||
radRandom.setToolTipText("A random distribution will be almost entirely randomly selected. This ignores any color selections.");
|
||||
radSurpriseMe.setToolTipText("This is the same as a balanced distribution, except the colors picked will be random and you will not be told what they are.");
|
||||
|
||||
@@ -78,7 +78,7 @@ public class NewQuestScreen extends FScreen {
|
||||
}
|
||||
obj.setBounds(xAdjustment, y, visWidth, h); //make label take up half of line so combo boxes all the same width
|
||||
x += obj.getWidth();
|
||||
if (colorBoxCount == 3 || colorBoxCount == 6) {
|
||||
if (colorBoxCount % 3 == 0) {
|
||||
y += h + gapY;
|
||||
x = PADDING;
|
||||
}
|
||||
@@ -228,7 +228,7 @@ public class NewQuestScreen extends FScreen {
|
||||
cbRed.setEnabled(radBalanced.isSelected());
|
||||
cbWhite.setEnabled(radBalanced.isSelected());
|
||||
cbColorless.setEnabled(radBalanced.isSelected());
|
||||
cbIncludeArtifacts.setEnabled(radBalanced.isSelected());
|
||||
cbIncludeArtifacts.setEnabled(!radSurpriseMe.isSelected());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user