mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Added an option to toggle filtering lands by color identity on/off.
This commit is contained in:
@@ -13,6 +13,8 @@ import forge.interfaces.IButton;
|
||||
import forge.item.InventoryItem;
|
||||
import forge.item.PaperCard;
|
||||
import forge.itemmanager.SItemManagerUtil.StatTypes;
|
||||
import forge.model.FModel;
|
||||
import forge.properties.ForgePreferences;
|
||||
import forge.util.BinaryUtil;
|
||||
import forge.util.PredicateString.StringOp;
|
||||
|
||||
@@ -168,7 +170,7 @@ public class SFilterUtil {
|
||||
boolean allColorsFilteredOut = colors == 0;
|
||||
|
||||
//use color identity for lands, which allows filtering to just lands that can be played in your deck
|
||||
boolean useColorIdentity = rules.getType().isLand() && !allColorsFilteredOut;
|
||||
boolean useColorIdentity = rules.getType().isLand() && !allColorsFilteredOut && FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_FILTER_LANDS_BY_COLOR_IDENTITY);
|
||||
if (useColorIdentity) {
|
||||
color = rules.getColorIdentity();
|
||||
}
|
||||
|
||||
@@ -79,6 +79,7 @@ public class ForgePreferences extends PreferencesStore<ForgePreferences.FPref> {
|
||||
UI_PAUSE_WHILE_MINIMIZED("false"),
|
||||
UI_TOKENS_IN_SEPARATE_ROW("false"), // Display tokens in their own battlefield row.
|
||||
UI_DISPLAY_CURRENT_COLORS("Never"),
|
||||
UI_FILTER_LANDS_BY_COLOR_IDENTITY("true"),
|
||||
|
||||
UI_FOR_TOUCHSCREN("false"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user