mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Mulligan prompt now informs user whose turn it is:
"You're going first. Do you want to mulligan?"
This commit is contained in:
@@ -63,7 +63,11 @@ public class InputMulligan extends Input {
|
|||||||
ButtonUtil.enableAll();
|
ButtonUtil.enableAll();
|
||||||
VMatchUI.SINGLETON_INSTANCE.getBtnOK().setText("No");
|
VMatchUI.SINGLETON_INSTANCE.getBtnOK().setText("No");
|
||||||
VMatchUI.SINGLETON_INSTANCE.getBtnCancel().setText("Yes");
|
VMatchUI.SINGLETON_INSTANCE.getBtnCancel().setText("Yes");
|
||||||
CMatchUI.SINGLETON_INSTANCE.showMessage("Do you want to Mulligan?");
|
|
||||||
|
final String str =
|
||||||
|
(Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn().equals(AllZone.getHumanPlayer())
|
||||||
|
? "You're going first. " : "The computer is going first. ");
|
||||||
|
CMatchUI.SINGLETON_INSTANCE.showMessage(str + "Do you want to Mulligan?");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|||||||
@@ -86,8 +86,7 @@ public enum FModel {
|
|||||||
private final IStorageView<CardBlock> blocks;
|
private final IStorageView<CardBlock> blocks;
|
||||||
private final IStorageView<CardBlock> fantasyBlocks;
|
private final IStorageView<CardBlock> fantasyBlocks;
|
||||||
|
|
||||||
// have to implement lazy initialization - at the moment of FModel.ctor()
|
// Lazy, since CardDb not ready.
|
||||||
// CardDb is not ready yet.
|
|
||||||
private CardCollections decks;
|
private CardCollections decks;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user