- Added a way to show the current storm count in the prompt pane (in desktop Forge) or prompt panel (in mobile Forge), it is optional and disabled by default (probably only useful for decks that rely on Storm and might clutter the prompt panel a bit in mobile Forge and thus make the text smaller). Can be enabled in Forge preferences via the "Show Storm Count in Prompt Pane/Panel" option.

This commit is contained in:
Agetian
2017-03-07 15:37:45 +00:00
parent 0da9ef985b
commit d5c1582029
6 changed files with 25 additions and 9 deletions

View File

@@ -27,7 +27,9 @@ import forge.game.player.Player;
import forge.game.player.PlayerView;
import forge.game.spellability.SpellAbility;
import forge.game.spellability.SpellAbilityView;
import forge.model.FModel;
import forge.player.PlayerControllerHuman;
import forge.properties.ForgePreferences;
import forge.util.ITriggerEvent;
/**
@@ -135,9 +137,15 @@ public abstract class InputBase implements java.io.Serializable, Input {
sb.append("Phase: ").append(ph.getPhase().nameForUi).append("\n");
sb.append("Stack: ");
if (!game.getStack().isEmpty()) {
sb.append(game.getStack().size()).append(" to Resolve.");
sb.append(game.getStack().size()).append(" to Resolve.\n");
} else {
sb.append("Empty");
sb.append("Empty\n");
}
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_SHOW_STORM_COUNT_IN_PROMPT)) {
int stormCount = game.getView().getStormCount();
if (stormCount > 0) {
sb.append("Storm Count: ").append(stormCount).append("\n");
}
}
return sb.toString();
}

View File

@@ -87,6 +87,7 @@ public class ForgePreferences extends PreferencesStore<ForgePreferences.FPref> {
UI_ALLOW_ESC_TO_END_TURN ("false"),
UI_PRESELECT_PREVIOUS_ABILITY_ORDER ("false"),
UI_AUTO_YIELD_MODE (ForgeConstants.AUTO_YIELD_PER_ABILITY),
UI_SHOW_STORM_COUNT_IN_PROMPT ("false"),
UI_FOR_TOUCHSCREN("false"),