From 1c90287136e5b72f9a1efb4375de35035bca766b Mon Sep 17 00:00:00 2001 From: nicol Date: Mon, 18 Nov 2024 17:32:40 +0100 Subject: [PATCH] updates --- src/main/java/org/beta/WikiGenerator.java | 4 +++- .../impl/FunCardMakerPicturesProvider.java | 6 ------ .../icons/plugins/{smf.png => FunCardMaker.png} | Bin 3 files changed, 3 insertions(+), 7 deletions(-) rename src/main/resources/icons/plugins/{smf.png => FunCardMaker.png} (100%) diff --git a/src/main/java/org/beta/WikiGenerator.java b/src/main/java/org/beta/WikiGenerator.java index 26a771d48..f0c5854a3 100644 --- a/src/main/java/org/beta/WikiGenerator.java +++ b/src/main/java/org/beta/WikiGenerator.java @@ -4,6 +4,8 @@ import java.io.IOException; import java.util.List; +import org.apache.commons.io.FileUtils; +import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.SystemUtils; import org.magic.api.interfaces.MTGPlugin; import org.magic.api.interfaces.MTGPlugin.PLUGINS; @@ -64,7 +66,7 @@ private static void buildePluginsIndex() throws IOException { ps.forEach(p->{ - + builder.append("![](https://raw.githubusercontent.com/nicho92/MtgDesktopCompanion/refs/heads/master/src/main/resources/icons/plugins/"+p.getName().toLowerCase().replace(" ","%20")+".png)").append("|"); builder.append("[").append(p.getName()).append("]") diff --git a/src/main/java/org/magic/api/pictureseditor/impl/FunCardMakerPicturesProvider.java b/src/main/java/org/magic/api/pictureseditor/impl/FunCardMakerPicturesProvider.java index 9143198dc..b5365eaa1 100644 --- a/src/main/java/org/magic/api/pictureseditor/impl/FunCardMakerPicturesProvider.java +++ b/src/main/java/org/magic/api/pictureseditor/impl/FunCardMakerPicturesProvider.java @@ -17,7 +17,6 @@ import org.magic.api.beans.MTGCard; import org.magic.api.beans.MTGEdition; import org.magic.api.beans.technical.MTGProperty; -import org.magic.api.exports.impl.PDFExport; import org.magic.api.interfaces.abstracts.AbstractPicturesEditorProvider; import org.magic.game.model.abilities.LoyaltyAbilities; import org.magic.game.model.factories.AbilitiesFactory; @@ -205,11 +204,6 @@ public String getVersion() { return "0.4.1-alpha"; } - @Override - public Icon getIcon() { - return new ImageIcon(PDFExport.class.getResource("/icons/plugins/smf.png")); - } - @Override public STATUT getStatut() { return STATUT.BETA; diff --git a/src/main/resources/icons/plugins/smf.png b/src/main/resources/icons/plugins/FunCardMaker.png similarity index 100% rename from src/main/resources/icons/plugins/smf.png rename to src/main/resources/icons/plugins/FunCardMaker.png