private Anm attachLogo(final String linkage, final int logoId, final Anm currentLogo) { if (linkage == null) { return null; } final String logoFileName = linkage + logoId; try { final String equipmentFileName = WakfuConfiguration.getInstance().getString("ANMEquipmentPath"); final String format = String.format(equipmentFileName, logoFileName); if (currentLogo != null && currentLogo.getFileName().equals(logoFileName)) { return null; } final Anm blason = AnimatedElement.loadEquipment(format); if (blason == null) { AnmGuildBlazonApplicator.m_logger.error( (Object) ("Pas de blason trouv\u00e9 ID=" + logoFileName)); return null; } this.m_element.getAnmInstance().attachAnmTo(blason); this.m_element.forceUpdateEquipment(); return blason; } catch (PropertyException e) { AnmGuildBlazonApplicator.m_logger.error((Object) "", (Throwable) e); return null; } }
WakfuApplicationUI() { super(); this.m_minDimensions = new Dimension(800, 600); try { final String skinPath = WakfuConfiguration.getInstance().getString("appSkinPath"); final ApplicationSkin skinNormal = new ApplicationSkin(skinPath); final ApplicationSkin skinOff = new ApplicationSkin(skinPath, "Off", skinNormal); this.setTitle(WakfuTranslator.getInstance().getString("desc.wakfu")); this.setSkins(skinNormal, skinOff); final int minWidth = WakfuConfiguration.getInstance().getInteger("resolution.min.width", 800); final int minHeight = WakfuConfiguration.getInstance().getInteger("resolution.min.height", 600); this.m_minDimensions.setSize(minWidth, minHeight); } catch (PropertyException e) { WakfuApplicationUI.m_logger.error((Object) "Unable to create skinPath", (Throwable) e); } }