From 523420265f95cb5e5e60e1749ced74a9082e75dd Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 4 Oct 2021 15:41:35 +0900 Subject: - Member count in pf --- .../features/impl/party/customgui/PanelPartyListElement.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java index 9b8ff119..a64eb3b8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java @@ -73,6 +73,7 @@ public class PanelPartyListElement extends MPanel { boolean cantjoin = false; if (itemStack.getItem() == Item.getItemFromBlock(Blocks.bedrock)) cantjoin = true; int minClass = -1, minDungeon = -1; + int pplIn = 0; { NBTTagCompound stackTagCompound = itemStack.getTagCompound(); if (stackTagCompound.hasKey("display", 10)) { @@ -90,6 +91,7 @@ public class PanelPartyListElement extends MPanel { } else if (str.startsWith("§7Dungeon Level Required: §b")) { minDungeon = Integer.parseInt(str.substring(28)); } else if (str.startsWith("§cRequires ")) cantjoin = true; + if (str.endsWith("§b)")) pplIn ++; } } } @@ -136,11 +138,12 @@ public class PanelPartyListElement extends MPanel { name = name.substring(0, name.indexOf("'")); fr.drawString(name, 0,0,-1); - fr.drawString(note, fr.getStringWidth("AAAAAAAAAAAAAAAAAA")+5, 0,-1); + note = "§7("+pplIn+") §f"+note; + fr.drawString(note, fr.getStringWidth("AAAAAAAAAAAAAAAA")+5, 0,-1); GlStateManager.popMatrix(); GlStateManager.pushMatrix(); String sideNote = ""; - if (minClass != -1) sideNote = "§7CLv ≥§b"+minClass+" "; + if (minClass != -1) sideNote += "§7CLv ≥§b"+minClass+" "; if (minDungeon != -1) sideNote += "§7DLv ≥§b"+minDungeon+" "; if (cantjoin) sideNote = "§cCan't join"; sideNote = sideNote.trim(); -- cgit