Add quest mode option to make Foil and Personal Rating filters default on all editor screens.

This commit is contained in:
Seravy
2018-02-08 12:49:37 +01:00
committed by Seravy
parent 2dcf4b23b7
commit e8be6f674e
3 changed files with 20 additions and 0 deletions

View File

@@ -183,6 +183,9 @@ public class QuestPreferences extends PreferencesStore<QuestPreferences.QPref> i
SIMULATE_AI_VS_AI_RESULTS("0"),
DRAFT_ROTATION("0");
SIMULATE_AI_VS_AI_RESULTS("0"),
FOIL_FILTER_DEFAULT("0"),
RATING_FILTER_DEFAULT("1");
private final String strDefaultVal;
@@ -287,6 +290,8 @@ public class QuestPreferences extends PreferencesStore<QuestPreferences.QPref> i
break;
case DRAFT_ROTATION:
case SPECIAL_BOOSTERS:
case FOIL_FILTER_DEFAULT:
case RATING_FILTER_DEFAULT:
case ITEM_LEVEL_RESTRICTION:
if (val != 0 && val != 1) {
return "Only values 0 or 1 are acceptable; 1 for enabled, 0 for disabled.";