mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
update order Message
This commit is contained in:
@@ -997,6 +997,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CardCollectionView orderMoveToZoneList(final CardCollectionView cards, final ZoneType destinationZone, final SpellAbility source) {
|
public CardCollectionView orderMoveToZoneList(final CardCollectionView cards, final ZoneType destinationZone, final SpellAbility source) {
|
||||||
|
boolean bottomOfLibrary = false;
|
||||||
if (source == null || source.getApi() != ApiType.ReorderZone) {
|
if (source == null || source.getApi() != ApiType.ReorderZone) {
|
||||||
if (destinationZone == ZoneType.Graveyard) {
|
if (destinationZone == ZoneType.Graveyard) {
|
||||||
switch (FModel.getPreferences().getPref(FPref.UI_ALLOW_ORDER_GRAVEYARD_WHEN_NEEDED)) {
|
switch (FModel.getPreferences().getPref(FPref.UI_ALLOW_ORDER_GRAVEYARD_WHEN_NEEDED)) {
|
||||||
@@ -1019,13 +1020,18 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (source != null) {
|
||||||
|
if (source.hasParam("LibraryPosition")) {
|
||||||
|
bottomOfLibrary = Integer.parseInt(source.getParam("LibraryPosition")) < 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
tempShowCards(cards);
|
tempShowCards(cards);
|
||||||
GameEntityViewMap<Card, CardView> gameCacheMove = GameEntityView.getMap(cards);
|
GameEntityViewMap<Card, CardView> gameCacheMove = GameEntityView.getMap(cards);
|
||||||
List<CardView> choices = gameCacheMove.getTrackableKeys();
|
List<CardView> choices = gameCacheMove.getTrackableKeys();
|
||||||
|
|
||||||
switch (destinationZone) {
|
switch (destinationZone) {
|
||||||
case Library:
|
case Library:
|
||||||
choices = getGui().order(localizer.getMessage("lblChooseOrderCardsPutIntoLibrary"), localizer.getMessage("lblClosestToTop"), choices, null);
|
choices = getGui().order(localizer.getMessage("lblChooseOrderCardsPutIntoLibrary"), localizer.getMessage(bottomOfLibrary ? "lblClosestToBottom" : "lblClosestToTop"), choices, null);
|
||||||
break;
|
break;
|
||||||
case Battlefield:
|
case Battlefield:
|
||||||
choices = getGui().order(localizer.getMessage("lblChooseOrderCardsPutOntoBattlefield"), localizer.getMessage("lblPutFirst"), choices, null);
|
choices = getGui().order(localizer.getMessage("lblChooseOrderCardsPutOntoBattlefield"), localizer.getMessage("lblPutFirst"), choices, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user