mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
setting up the pref
This commit is contained in:
@@ -2223,6 +2223,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
|
|
||||||
public String getAbilityText(final CardState state) {
|
public String getAbilityText(final CardState state) {
|
||||||
final String linebreak = "\r\n\r\n";
|
final String linebreak = "\r\n\r\n";
|
||||||
|
//TODO magic needs to happen here
|
||||||
final String grayTag = "<span style=\"color:gray;\">";
|
final String grayTag = "<span style=\"color:gray;\">";
|
||||||
final String endTag = "</span>";
|
final String endTag = "</span>";
|
||||||
final CardTypeView type = state.getType();
|
final CardTypeView type = state.getType();
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ public enum CSubmenuPreferences implements ICDoc {
|
|||||||
lstControls.add(Pair.of(view.getCbManaLostPrompt(), FPref.UI_MANA_LOST_PROMPT));
|
lstControls.add(Pair.of(view.getCbManaLostPrompt(), FPref.UI_MANA_LOST_PROMPT));
|
||||||
lstControls.add(Pair.of(view.getCbEscapeEndsTurn(), FPref.UI_ALLOW_ESC_TO_END_TURN));
|
lstControls.add(Pair.of(view.getCbEscapeEndsTurn(), FPref.UI_ALLOW_ESC_TO_END_TURN));
|
||||||
lstControls.add(Pair.of(view.getCbDetailedPaymentDesc(), FPref.UI_DETAILED_SPELLDESC_IN_PROMPT));
|
lstControls.add(Pair.of(view.getCbDetailedPaymentDesc(), FPref.UI_DETAILED_SPELLDESC_IN_PROMPT));
|
||||||
|
lstControls.add(Pair.of(view.getCbGrayText(), FPref.UI_GRAY_INACTIVE_TEXT));
|
||||||
lstControls.add(Pair.of(view.getCbPreselectPrevAbOrder(), FPref.UI_PRESELECT_PREVIOUS_ABILITY_ORDER));
|
lstControls.add(Pair.of(view.getCbPreselectPrevAbOrder(), FPref.UI_PRESELECT_PREVIOUS_ABILITY_ORDER));
|
||||||
lstControls.add(Pair.of(view.getCbShowStormCount(), FPref.UI_SHOW_STORM_COUNT_IN_PROMPT));
|
lstControls.add(Pair.of(view.getCbShowStormCount(), FPref.UI_SHOW_STORM_COUNT_IN_PROMPT));
|
||||||
lstControls.add(Pair.of(view.getCbRemindOnPriority(), FPref.UI_REMIND_ON_PRIORITY));
|
lstControls.add(Pair.of(view.getCbRemindOnPriority(), FPref.UI_REMIND_ON_PRIORITY));
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ public enum VSubmenuPreferences implements IVSubmenu<CSubmenuPreferences> {
|
|||||||
private final JCheckBox cbTimedTargOverlay = new OptionsCheckBox(localizer.getMessage("cbTimedTargOverlay"));
|
private final JCheckBox cbTimedTargOverlay = new OptionsCheckBox(localizer.getMessage("cbTimedTargOverlay"));
|
||||||
private final JCheckBox cbCompactMainMenu = new OptionsCheckBox(localizer.getMessage("cbCompactMainMenu"));
|
private final JCheckBox cbCompactMainMenu = new OptionsCheckBox(localizer.getMessage("cbCompactMainMenu"));
|
||||||
private final JCheckBox cbDetailedPaymentDesc = new OptionsCheckBox(localizer.getMessage("cbDetailedPaymentDesc"));
|
private final JCheckBox cbDetailedPaymentDesc = new OptionsCheckBox(localizer.getMessage("cbDetailedPaymentDesc"));
|
||||||
|
private final JCheckBox cbGrayText = new OptionsCheckBox(localizer.getMessage("cbGrayText"));
|
||||||
private final JCheckBox cbPromptFreeBlocks = new OptionsCheckBox(localizer.getMessage("cbPromptFreeBlocks"));
|
private final JCheckBox cbPromptFreeBlocks = new OptionsCheckBox(localizer.getMessage("cbPromptFreeBlocks"));
|
||||||
private final JCheckBox cbPauseWhileMinimized = new OptionsCheckBox(localizer.getMessage("cbPauseWhileMinimized"));
|
private final JCheckBox cbPauseWhileMinimized = new OptionsCheckBox(localizer.getMessage("cbPauseWhileMinimized"));
|
||||||
private final JCheckBox cbCompactPrompt = new OptionsCheckBox(localizer.getMessage("cbCompactPrompt"));
|
private final JCheckBox cbCompactPrompt = new OptionsCheckBox(localizer.getMessage("cbCompactPrompt"));
|
||||||
@@ -247,6 +248,9 @@ public enum VSubmenuPreferences implements IVSubmenu<CSubmenuPreferences> {
|
|||||||
pnlPrefs.add(cbDetailedPaymentDesc, titleConstraints);
|
pnlPrefs.add(cbDetailedPaymentDesc, titleConstraints);
|
||||||
pnlPrefs.add(new NoteLabel(localizer.getMessage("nlDetailedPaymentDesc")), descriptionConstraints);
|
pnlPrefs.add(new NoteLabel(localizer.getMessage("nlDetailedPaymentDesc")), descriptionConstraints);
|
||||||
|
|
||||||
|
pnlPrefs.add(cbGrayText, titleConstraints);
|
||||||
|
pnlPrefs.add(new NoteLabel(localizer.getMessage("nlGrayText")), descriptionConstraints);
|
||||||
|
|
||||||
pnlPrefs.add(cbShowStormCount, titleConstraints);
|
pnlPrefs.add(cbShowStormCount, titleConstraints);
|
||||||
pnlPrefs.add(new NoteLabel(localizer.getMessage("nlShowStormCount")), descriptionConstraints);
|
pnlPrefs.add(new NoteLabel(localizer.getMessage("nlShowStormCount")), descriptionConstraints);
|
||||||
|
|
||||||
@@ -901,6 +905,11 @@ public enum VSubmenuPreferences implements IVSubmenu<CSubmenuPreferences> {
|
|||||||
return cbDetailedPaymentDesc;
|
return cbDetailedPaymentDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final JCheckBox getCbGrayText() {
|
||||||
|
return cbGrayText;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public final JCheckBox getCbShowStormCount() {
|
public final JCheckBox getCbShowStormCount() {
|
||||||
return cbShowStormCount;
|
return cbShowStormCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,6 +211,10 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
|||||||
localizer.getMessage("cbDetailedPaymentDesc"),
|
localizer.getMessage("cbDetailedPaymentDesc"),
|
||||||
localizer.getMessage("nlDetailedPaymentDesc")),
|
localizer.getMessage("nlDetailedPaymentDesc")),
|
||||||
1);
|
1);
|
||||||
|
lstSettings.addItem(new BooleanSetting(FPref.UI_GRAY_INACTIVE_TEXT,
|
||||||
|
localizer.getMessage("cbGrayText"),
|
||||||
|
localizer.getMessage("nlGrayText")),
|
||||||
|
1);
|
||||||
lstSettings.addItem(new BooleanSetting(FPref.UI_SHOW_STORM_COUNT_IN_PROMPT,
|
lstSettings.addItem(new BooleanSetting(FPref.UI_SHOW_STORM_COUNT_IN_PROMPT,
|
||||||
localizer.getMessage("cbShowStormCount"),
|
localizer.getMessage("cbShowStormCount"),
|
||||||
localizer.getMessage("nlShowStormCount")),
|
localizer.getMessage("nlShowStormCount")),
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ cbUiForTouchScreen=Enhance UI for Touchscreens
|
|||||||
cbTimedTargOverlay=Enable Targeting Overlay Optimization
|
cbTimedTargOverlay=Enable Targeting Overlay Optimization
|
||||||
cbCompactMainMenu=Use Compact Main Sidebar Menu
|
cbCompactMainMenu=Use Compact Main Sidebar Menu
|
||||||
cbDetailedPaymentDesc=Spell Description in Payment Prompt
|
cbDetailedPaymentDesc=Spell Description in Payment Prompt
|
||||||
|
cbGrayText=Gray out unmet conditions in card text
|
||||||
cbPromptFreeBlocks=Free Block Handling
|
cbPromptFreeBlocks=Free Block Handling
|
||||||
cbPauseWhileMinimized=Pause While Minimized
|
cbPauseWhileMinimized=Pause While Minimized
|
||||||
cbCompactPrompt=Compact Prompt
|
cbCompactPrompt=Compact Prompt
|
||||||
@@ -157,6 +158,7 @@ nlPromptFreeBlocks=When enabled, if you would have to pay 0 to block, pay automa
|
|||||||
nlPauseWhileMinimized=When enabled, Forge pauses when minimized (primarily for AI vs AI).
|
nlPauseWhileMinimized=When enabled, Forge pauses when minimized (primarily for AI vs AI).
|
||||||
nlEscapeEndsTurn=When enabled, Escape key functions as an alternative shortcut to end the current turn.
|
nlEscapeEndsTurn=When enabled, Escape key functions as an alternative shortcut to end the current turn.
|
||||||
nlDetailedPaymentDesc=When enabled, detailed spell/ability descriptions are shown when choosing targets and paying costs.
|
nlDetailedPaymentDesc=When enabled, detailed spell/ability descriptions are shown when choosing targets and paying costs.
|
||||||
|
nlGrayText=When enabled, ability text with unmet conditions will be grayed out in the card's detail pane.
|
||||||
nlShowStormCount=When enabled, displays the current storm count in the prompt pane.
|
nlShowStormCount=When enabled, displays the current storm count in the prompt pane.
|
||||||
nlRemindOnPriority=When enabled, flashes the player choice area upon receiving priority.
|
nlRemindOnPriority=When enabled, flashes the player choice area upon receiving priority.
|
||||||
nlPreselectPrevAbOrder=When enabled, preselects the last defined simultaneous ability order in the ordering dialog.
|
nlPreselectPrevAbOrder=When enabled, preselects the last defined simultaneous ability order in the ordering dialog.
|
||||||
|
|||||||
Reference in New Issue
Block a user