mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add an alchemy icon for A- cards
This commit is contained in:
@@ -1079,7 +1079,7 @@ public class FSkin {
|
||||
return str;
|
||||
}
|
||||
//format mana symbols to display as icons
|
||||
pattern = "\\{([A-Z0-9]+)\\}|\\{([A-Z0-9]+)/([A-Z0-9]+)\\}|\\{([A-Z0-9]+)/([A-Z0-9]+)/([A-Z0-9]+)\\}"; //fancy pattern needed so "/" can be omitted from replacement
|
||||
pattern = "\\{([A-Z0-9]+)\\}|\\{([A-Z0-9]+)/([A-Z0-9]+)\\}|(A-)|\\{([A-Z0-9]+)/([A-Z0-9]+)/([A-Z0-9]+)\\}"; //fancy pattern needed so "/" can be omitted from replacement
|
||||
try {
|
||||
replacement = "<img src=\"" + new File(ForgeConstants.CACHE_SYMBOLS_DIR + "/$1$2$3$4$5$6.png").toURI().toURL().toString() + "\" width=" + SYMBOL_WIDTH + " height=" + SYMBOL_HEIGHT + ">";
|
||||
str = str.replaceAll(pattern, replacement);
|
||||
@@ -1464,6 +1464,7 @@ public class FSkin {
|
||||
addEncodingSymbol("T", FSkinProp.IMG_TAP);
|
||||
addEncodingSymbol("E", FSkinProp.IMG_ENERGY);
|
||||
addEncodingSymbol("EXPERIENCE", FSkinProp.IMG_EXPERIENCE);
|
||||
addEncodingSymbol("A-", FSkinProp.IMG_ALCHEMY);
|
||||
|
||||
// Set look and feel after skin loaded
|
||||
FView.SINGLETON_INSTANCE.setSplashProgessBarMessage("Setting look and feel...");
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 337 KiB |
@@ -338,6 +338,7 @@ public enum FSkinProp {
|
||||
IMG_PACK (new int[] {80, 760, 40, 40}, PropType.IMAGE),
|
||||
IMG_SORCERY (new int[] {412, 740, 80, 80}, PropType.MANAICONS),
|
||||
IMG_COMMANDER (new int[] {120, 760, 40, 40}, PropType.IMAGE),
|
||||
IMG_ALCHEMY (new int[] {248, 822, 80, 80}, PropType.MANAICONS),
|
||||
|
||||
//achievement trophies and shelf
|
||||
IMG_COMMON_TROPHY (new int[] {0, 0, 135, 185}, PropType.TROPHY),
|
||||
|
||||
Reference in New Issue
Block a user