- String constants for the Display Color Identity setting.

This commit is contained in:
Agetian
2015-06-01 20:25:21 +00:00
parent 21323a4f72
commit be9e5ef95d
3 changed files with 9 additions and 2 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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";
}