mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add option to be alerted on receipt of priority
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -37,6 +37,7 @@ public interface IGuiGame {
|
||||
void updateButtons(PlayerView owner, boolean okEnabled, boolean cancelEnabled, boolean focusOk);
|
||||
void updateButtons(PlayerView owner, String label1, String label2, boolean enable1, boolean enable2, boolean focus1);
|
||||
void flashIncorrectAction();
|
||||
void alertUser();
|
||||
void updatePhase();
|
||||
void updateTurn(PlayerView player);
|
||||
void updatePlayerControl();
|
||||
|
||||
@@ -60,6 +60,8 @@ public class InputPassPriority extends InputSyncronizedBase {
|
||||
else { //otherwise allow ending turn with cancel button
|
||||
getController().getGui().updateButtons(getOwner(), "OK", "End Turn", true, true, true);
|
||||
}
|
||||
|
||||
getController().getGui().alertUser();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
||||
@@ -35,6 +35,7 @@ public enum ProtocolMethod {
|
||||
showPromptMessage (Mode.SERVER, Void.TYPE, PlayerView.class, String.class),
|
||||
updateButtons (Mode.SERVER, Void.TYPE, PlayerView.class, String.class, String.class, Boolean.TYPE, Boolean.TYPE, Boolean.TYPE),
|
||||
flashIncorrectAction(Mode.SERVER),
|
||||
alertUser (Mode.SERVER),
|
||||
updatePhase (Mode.SERVER),
|
||||
updateTurn (Mode.SERVER, Void.TYPE, PlayerView.class),
|
||||
updatePlayerControl (Mode.SERVER),
|
||||
|
||||
@@ -89,6 +89,9 @@ public class NetGuiGame extends AbstractGuiGame {
|
||||
send(ProtocolMethod.flashIncorrectAction);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void alertUser() { send(ProtocolMethod.alertUser); }
|
||||
|
||||
@Override
|
||||
public void updatePhase() {
|
||||
updateGameView();
|
||||
|
||||
@@ -91,6 +91,7 @@ public class ForgePreferences extends PreferencesStore<ForgePreferences.FPref> {
|
||||
UI_PRESELECT_PREVIOUS_ABILITY_ORDER ("false"),
|
||||
UI_AUTO_YIELD_MODE (ForgeConstants.AUTO_YIELD_PER_ABILITY),
|
||||
UI_SHOW_STORM_COUNT_IN_PROMPT ("false"),
|
||||
UI_REMIND_ON_PRIORITY ("false"),
|
||||
UI_CARD_COUNTER_DISPLAY_TYPE(ForgeConstants.CounterDisplayType.TEXT.getName()),
|
||||
UI_CARD_COUNTER_DISPLAY_LOCATION(ForgeConstants.CounterDisplayLocation.TOP.getName()),
|
||||
UI_ANDROID_MINIMIZE_ON_SCRLOCK("false"),
|
||||
|
||||
Reference in New Issue
Block a user