aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-08-05 14:01:58 +0900
committersyeyoung <cyong06@naver.com>2021-08-05 14:01:58 +0900
commit9b2eac0f775d015ede771753c6bd7250679852d8 (patch)
treef8afd443caa3c6d5b7222e97e78f5653afee2c50 /src/main/java/kr/syeyoung/dungeonsguide/features
parent57ac87ea35f3fcb3c23d35d69fdf8ecadde04940 (diff)
downloadSkyblock-Dungeons-Guide-9b2eac0f775d015ede771753c6bd7250679852d8.tar.gz
Skyblock-Dungeons-Guide-9b2eac0f775d015ede771753c6bd7250679852d8.tar.bz2
Skyblock-Dungeons-Guide-9b2eac0f775d015ede771753c6bd7250679852d8.zip
- Save Notes in PartyFinder
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-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);