mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- String constants for the Display Color Identity setting.
This commit is contained in:
@@ -300,7 +300,7 @@ public enum CSubmenuPreferences implements ICDoc {
|
||||
}
|
||||
|
||||
private void initializeColorIdentityCombobox() {
|
||||
final String[] elems = {"Never", "Only Multicolor", "Always"};
|
||||
final String[] elems = {ForgeConstants.DISP_COLOR_IDENT_NEVER, ForgeConstants.DISP_COLOR_IDENT_MULTICOLOR, ForgeConstants.DISP_COLOR_IDENT_ALWAYS};
|
||||
final FPref userSetting = FPref.UI_DISPLAY_COLOR_IDENTITY;
|
||||
final FComboBoxPanel<String> panel = this.view.getDisplayColorIdentity();
|
||||
final FComboBox<String> comboBox = createComboBox(elems, userSetting);
|
||||
|
||||
@@ -10,6 +10,7 @@ import forge.assets.FSkinFont;
|
||||
import forge.assets.FSkinImage;
|
||||
import forge.game.GameLogEntryType;
|
||||
import forge.model.FModel;
|
||||
import forge.properties.ForgeConstants;
|
||||
import forge.properties.ForgePreferences;
|
||||
import forge.properties.ForgePreferences.FPref;
|
||||
import forge.screens.FScreen;
|
||||
@@ -165,7 +166,7 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
||||
lstSettings.addItem(new CustomSelectSetting(FPref.UI_DISPLAY_COLOR_IDENTITY,
|
||||
"Display Color Identity",
|
||||
"Displays the color identity of cards in the card detail information panel.",
|
||||
new String[]{"Never", "Only Multicolor", "Always"}),
|
||||
new String[]{ForgeConstants.DISP_COLOR_IDENT_NEVER, ForgeConstants.DISP_COLOR_IDENT_MULTICOLOR, ForgeConstants.DISP_COLOR_IDENT_ALWAYS}),
|
||||
4);
|
||||
|
||||
//Card Overlays
|
||||
|
||||
@@ -177,4 +177,10 @@ public final class ForgeConstants {
|
||||
private static final String URL_CARDFORGE = "http://downloads.cardforge.link";
|
||||
public static final String URL_PIC_DOWNLOAD = URL_CARDFORGE + "/images/cards/";
|
||||
public static final String URL_PRICE_DOWNLOAD = "http://www.cardforge.org/MagicInfo/pricegen.php";
|
||||
|
||||
// Constants for Display Card Identity game setting
|
||||
public static final String DISP_COLOR_IDENT_ALWAYS = "Always";
|
||||
public static final String DISP_COLOR_IDENT_MULTICOLOR = "Only Multicolor";
|
||||
public static final String DISP_COLOR_IDENT_NEVER = "Never";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user