aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-04-28 18:17:46 +0900
committersyeyoung <cyong06@naver.com>2021-04-28 18:17:46 +0900
commit29883f9da7d79af34d5c4513678d75d626a7709b (patch)
treeb42b251585e14e6b9a25bbc7d4bbf49f3de38309 /src/main/java/kr/syeyoung/dungeonsguide/features
parent3b4d4a96f7b246ee3d07f82a78c1e9cf5de91300 (diff)
downloadSkyblock-Dungeons-Guide-29883f9da7d79af34d5c4513678d75d626a7709b.tar.gz
Skyblock-Dungeons-Guide-29883f9da7d79af34d5c4513678d75d626a7709b.tar.bz2
Skyblock-Dungeons-Guide-29883f9da7d79af34d5c4513678d75d626a7709b.zip
ok done
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererRegistry.java4
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererSetUrOwn.java44
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java5
3 files changed, 51 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererRegistry.java
index 4a97bd3c..92f9ffdd 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererRegistry.java
@@ -34,6 +34,8 @@ public class DataRendererRegistry {
}
dataRendererMap.put("dungeon_"+value.getJsonName()+"_higheststat", new DataRenderDungeonHighestFloorStat(value));
}
- dataRendererMap.put("fairyouls", new DataRendererFairySouls());
+ dataRendererMap.put("fairysouls", new DataRendererFairySouls());
+
+ dataRendererMap.put("dummy", new DataRendererSetUrOwn());
}
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererSetUrOwn.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererSetUrOwn.java
new file mode 100644
index 00000000..3601768d
--- /dev/null
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererSetUrOwn.java
@@ -0,0 +1,44 @@
+package kr.syeyoung.dungeonsguide.features.impl.party.playerpreview;
+
+import kr.syeyoung.dungeonsguide.config.guiconfig.FeatureEditPane;
+import kr.syeyoung.dungeonsguide.features.impl.party.api.ClassSpecificData;
+import kr.syeyoung.dungeonsguide.features.impl.party.api.PlayerProfile;
+import kr.syeyoung.dungeonsguide.utils.RenderUtils;
+import kr.syeyoung.dungeonsguide.utils.TextUtils;
+import kr.syeyoung.dungeonsguide.utils.XPUtils;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.FontRenderer;
+
+import java.awt.*;
+import java.util.Arrays;
+
+public class DataRendererSetUrOwn implements DataRenderer {
+ @Override
+ public Dimension renderData(PlayerProfile playerProfile) {
+ FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
+ fr.drawString("§aCustomize at /dg", 0,0,-1);
+ fr.drawString("§a-> Party Kicker", 0,fr.FONT_HEIGHT,-1);
+ fr.drawString("§a-> View Player Stats", 0,fr.FONT_HEIGHT*2,-1);
+ fr.drawString("§a-> Edit", 0,fr.FONT_HEIGHT*3,-1);
+ return new Dimension(100, fr.FONT_HEIGHT*4);
+ }
+
+ @Override
+ public void onHover(PlayerProfile playerProfile, int mouseX, int mouseY) {
+
+ }
+
+ @Override
+ public Dimension renderDummy() {
+ FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
+ fr.drawString("§aCustomize at /dg", 0,0,-1);
+ fr.drawString("§a-> Party Kicker", 0,fr.FONT_HEIGHT,-1);
+ fr.drawString("§a-> View Player Stats", 0,fr.FONT_HEIGHT*2,-1);
+ fr.drawString("§a-> Edit", 0,fr.FONT_HEIGHT*3,-1);
+ return new Dimension(100, fr.FONT_HEIGHT*4);
+ }
+ @Override
+ public Dimension getDimension() {
+ return new Dimension(100, Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT*4);
+ }
+}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java
index b2596f63..be0349c9 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java
@@ -59,7 +59,9 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen
public FeatureViewPlayerOnJoin() {
super("Party Kicker", "View player stats when join", "view player rendering when joining/someone joins the party", "partykicker.viewstats", true);
- this.parameters.put("datarenderers", new FeatureParameter<List<String>>("datarenderers", "DataRenderers","Datarenderssdasd", new ArrayList<>(), "stringlist"));
+ this.parameters.put("datarenderers", new FeatureParameter<List<String>>("datarenderers", "DataRenderers","Datarenderssdasd", new ArrayList<>(Arrays.asList(
+ "catalv", "selected_class_lv", "dungeon_catacombs_higheststat", "dungeon_master_catacombs_higheststat", "skill_combat_lv", "skill_foraging_lv", "skill_mining_lv", "fairysouls", "dummy"
+ )), "stringlist"));
}
private Rectangle popupRect;
@@ -192,6 +194,7 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen
GlStateManager.translate(95, 5, 0);
int culmutativeY = 5;
DataRenderer dataRendererToHover = null;
+ System.out.println(this.<List<String>>getParameter("datarenderers").getValue());
for (String datarenderers : this.<List<String>>getParameter("datarenderers").getValue()) {
DataRenderer dataRenderer = DataRendererRegistry.getDataRenderer(datarenderers);
Dimension dim;