mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Disable Test Deck button for secondary deck types
This commit is contained in:
@@ -565,6 +565,16 @@ public class FDeckChooser extends FScreen {
|
||||
if (lstDecks.getGameType() == GameType.DeckManager) {
|
||||
//handle special case of Deck Editor screen where this button will start a game with the deck
|
||||
btnRandom.setText("Test Deck");
|
||||
|
||||
switch (selectedDeckType) {
|
||||
case SCHEME_DECKS:
|
||||
case PLANAR_DECKS: //don't allow testing secondary decks this way
|
||||
btnRandom.setEnabled(false);
|
||||
break;
|
||||
default:
|
||||
btnRandom.setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
btnRandom.setText("Random Deck");
|
||||
|
||||
Reference in New Issue
Block a user