aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/party')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/FeatureCustomPartyFinder.java6
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyFinderSettings.java15
2 files changed, 20 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/FeatureCustomPartyFinder.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/FeatureCustomPartyFinder.java
index 40f56686..7a06911f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/FeatureCustomPartyFinder.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/FeatureCustomPartyFinder.java
@@ -21,6 +21,8 @@ package kr.syeyoung.dungeonsguide.features.impl.party.customgui;
import kr.syeyoung.dungeonsguide.events.WindowUpdateEvent;
import kr.syeyoung.dungeonsguide.features.SimpleFeature;
import kr.syeyoung.dungeonsguide.features.listener.*;
+import lombok.Getter;
+import lombok.Setter;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.inventory.ContainerChest;
@@ -32,6 +34,10 @@ public class FeatureCustomPartyFinder extends SimpleFeature implements GuiOpenLi
super("Party","Custom Party Finder","Custom Party Finder", "party.customfinder", true);
}
+ @Getter
+ @Setter
+ private String whitelist = "", blacklist = "", highlight ="";
+
GuiCustomPartyFinder guiCustomPartyFinder;
@Override
public void onGuiOpen(GuiOpenEvent event) {
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyFinderSettings.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyFinderSettings.java
index 293c92cd..509ee5c5 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyFinderSettings.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyFinderSettings.java
@@ -18,6 +18,7 @@
package kr.syeyoung.dungeonsguide.features.impl.party.customgui;
+import kr.syeyoung.dungeonsguide.features.FeatureRegistry;
import kr.syeyoung.dungeonsguide.gui.MPanel;
import kr.syeyoung.dungeonsguide.gui.elements.*;
import lombok.Getter;
@@ -80,15 +81,27 @@ public class PanelPartyFinderSettings extends MPanelScaledGUI {
@Override
public void edit(String str) {
panelPartyFinder.onChestUpdate(null);
+ FeatureRegistry.PARTYKICKER_CUSTOM.setWhitelist(str);
}
};
filterBlacklist = new MTextField() {
@Override
public void edit(String str) {
+ FeatureRegistry.PARTYKICKER_CUSTOM.setBlacklist(str);
panelPartyFinder.onChestUpdate(null);
}
};
- highlightNote = new MTextField();
+ highlightNote = new MTextField() {
+ @Override
+ public void edit(String str) {
+ super.edit(str);
+ FeatureRegistry.PARTYKICKER_CUSTOM.setHighlight(str);
+ }
+ };
+
+ filterWhitelist.setText(FeatureRegistry.PARTYKICKER_CUSTOM.getWhitelist());
+ filterBlacklist.setText(FeatureRegistry.PARTYKICKER_CUSTOM.getBlacklist());
+ highlightNote.setText(FeatureRegistry.PARTYKICKER_CUSTOM.getHighlight());
filterWhitelistNote = new MPassiveLabelAndElement("Whitelist Note", filterWhitelist);
filterBlacklistNote = new MPassiveLabelAndElement("Blacklist Note", filterBlacklist);