Loads two sprites: the default (which should be a complete collection of all symbols) and the preferred (which may be incomplete). Font must be present in the skin folder, and will not be replaced by default. The fonts are pre-derived in this method and saved in a HashMap for future access. Color
(final boolean onInit)
| 1238 | * missing, the default picture is retrieved. |
| 1239 | */ |
| 1240 | public static void loadFull(final boolean onInit) { |
| 1241 | if (onInit) { |
| 1242 | // No need for this method to be loaded while on the EDT. |
| 1243 | FThreads.assertExecutedByEdt(false); |
| 1244 | |
| 1245 | // Preferred skin name must be called via loadLight() method, |
| 1246 | // which does some cleanup and init work. |
| 1247 | if (preferredName.isEmpty()) { loadLight("default", true); } |
| 1248 | } |
| 1249 | |
| 1250 | final Localizer localizer = Localizer.getInstance(); |
| 1251 | FView.SINGLETON_INSTANCE.setSplashProgessBarMessage(localizer.getMessage("splash.loading.processingimagesprites") + ": ", 21); |
| 1252 | |
| 1253 | // Grab and test various sprite files. |
| 1254 | final String defaultDir = ForgeConstants.DEFAULT_SKINS_DIR; |
| 1255 | final File f1 = new File(defaultDir + ForgeConstants.SPRITE_ICONS_FILE); |
| 1256 | final File f2 = new File(preferredDir + ForgeConstants.SPRITE_ICONS_FILE); |
| 1257 | final File f3 = new File(defaultDir + ForgeConstants.SPRITE_FOILS_FILE); |
| 1258 | final File f4 = new File(defaultDir + ForgeConstants.SPRITE_AVATARS_FILE); |
| 1259 | final File f5 = new File(preferredDir + ForgeConstants.SPRITE_AVATARS_FILE); |
| 1260 | final File f6 = new File(defaultDir + ForgeConstants.SPRITE_OLD_FOILS_FILE); |
| 1261 | final File f7 = new File(defaultDir + ForgeConstants.SPRITE_TROPHIES_FILE); |
| 1262 | final File f8 = new File(defaultDir + ForgeConstants.DRAFT_DECK_IMG_FILE); |
| 1263 | final File f9 = new File(defaultDir + ForgeConstants.SPRITE_FAVICONS_FILE); |
| 1264 | final File f10 = new File(defaultDir + ForgeConstants.SPRITE_ABILITY_FILE); |
| 1265 | final File f11 = new File(defaultDir + ForgeConstants.SPRITE_MANAICONS_FILE); |
| 1266 | final File f12 = new File(defaultDir + ForgeConstants.SPRITE_SLEEVES_FILE); |
| 1267 | final File f13 = new File(defaultDir + ForgeConstants.SPRITE_SLEEVES2_FILE); |
| 1268 | final File f14 = new File(defaultDir + ForgeConstants.SPRITE_DECKBOX_FILE); |
| 1269 | final File f15 = new File(defaultDir + ForgeConstants.SPRITE_SETLOGO_FILE); |
| 1270 | final File f16 = new File(preferredDir + ForgeConstants.SPRITE_SETLOGO_FILE); |
| 1271 | final File f17 = new File(defaultDir + ForgeConstants.SPRITE_WATERMARK_FILE); |
| 1272 | final File f18 = new File(defaultDir + ForgeConstants.SPRITE_PHYREXIAN_FILE); |
| 1273 | final File f19 = new File(defaultDir + ForgeConstants.SPRITE_COLORLESS_HYBRID_FILE); |
| 1274 | final File f20 = new File(defaultDir + ForgeConstants.SPRITE_DRAFTRANKS_FILE); |
| 1275 | final File f21 = new File(defaultDir + ForgeConstants.SPRITE_ATTRACTION_LIGHTS_FILE); |
| 1276 | final File f22 = new File(defaultDir + ForgeConstants.SPRITE_ZONE_FILE); |
| 1277 | |
| 1278 | try { |
| 1279 | int p = 0; |
| 1280 | bimDefaultSprite = ImageIO.read(f1); |
| 1281 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1282 | bimAbilities = ImageIO.read(f10); |
| 1283 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1284 | bimManaIcons = ImageIO.read(f11); |
| 1285 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1286 | bimPhyrexian = ImageIO.read(f18); |
| 1287 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1288 | bimColorlessHybrid = ImageIO.read(f19); |
| 1289 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1290 | bimAttractionLights = ImageIO.read(f21); |
| 1291 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1292 | bimPreferredSprite = ImageIO.read(f2); |
| 1293 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1294 | bimFoils = ImageIO.read(f3); |
| 1295 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
| 1296 | bimOldFoils = f6.exists() ? ImageIO.read(f6) : ImageIO.read(f3); |
| 1297 | FView.SINGLETON_INSTANCE.incrementSplashProgessBar(++p); |
no test coverage detected