aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-06 03:19:24 +0900
committersyeyoung <cyong06@naver.com>2021-02-06 03:19:24 +0900
commit5f51b33a4f19454072c92638e040647d4a3f6f38 (patch)
tree173b302b9a0b7463dcae6a852c3b5e8b48fea5c4 /src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig
parent90fb4c2cdcd813d085e4c72d161b0efe06bcd164 (diff)
downloadSkyblock-Dungeons-Guide-5f51b33a4f19454072c92638e040647d4a3f6f38.tar.gz
Skyblock-Dungeons-Guide-5f51b33a4f19454072c92638e040647d4a3f6f38.tar.bz2
Skyblock-Dungeons-Guide-5f51b33a4f19454072c92638e040647d4a3f6f38.zip
dungeon category all text huds
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java1
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java
index 4281f6a3..c0d8d74b 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java
@@ -45,6 +45,7 @@ public class MFeature extends MPanel {
}
});
addons.add(mStringSelectionButton);
+ mStringSelectionButton.setEnabled(feature.isEnabled());
mStringSelectionButton.setSize(new Dimension(30, 15));
add(mStringSelectionButton);
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java
index ee31fe36..72411e62 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java
@@ -11,10 +11,12 @@ import net.minecraft.client.renderer.GlStateManager;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
+import java.util.List;
import java.awt.*;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Set;
public class PanelDefaultParameterConfig extends MPanel {
@@ -33,9 +35,13 @@ public class PanelDefaultParameterConfig extends MPanel {
}
private GuiConfig config;
- public PanelDefaultParameterConfig(final GuiConfig config, AbstractFeature feature) {
+ public PanelDefaultParameterConfig(final GuiConfig config, AbstractFeature feature, List<MPanel> pre, Set<String> ignore) {
this.config = config;
+ for (MPanel mPanel : pre) {
+ add(mPanel);
+ }
for (FeatureParameter parameter: feature.getParameters()) {
+ if (ignore.contains(parameter.getKey())) continue;
add(new MParameter(feature, parameter, config));
}
setBackgroundColor(new Color(38, 38, 38, 255));