diff options
author | syeyoung <cyong06@naver.com> | 2021-02-06 03:19:24 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-06 03:19:24 +0900 |
commit | 5f51b33a4f19454072c92638e040647d4a3f6f38 (patch) | |
tree | 173b302b9a0b7463dcae6a852c3b5e8b48fea5c4 /src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig | |
parent | 90fb4c2cdcd813d085e4c72d161b0efe06bcd164 (diff) | |
download | Skyblock-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-x | src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MFeature.java | 1 | ||||
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java | 8 |
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)); |