diff options
author | syeyoung <cyong06@naver.com> | 2021-07-26 11:18:24 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-07-26 11:18:24 +0900 |
commit | 132378adb3407b1238c3958070c584fdb3adb6cd (patch) | |
tree | fd3216b4279c79a8afd6f129661c8612ff77fee1 /src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig | |
parent | f3626ed31e844393da1a293eab8e4aa760a8de06 (diff) | |
download | Skyblock-Dungeons-Guide-132378adb3407b1238c3958070c584fdb3adb6cd.tar.gz Skyblock-Dungeons-Guide-132378adb3407b1238c3958070c584fdb3adb6cd.tar.bz2 Skyblock-Dungeons-Guide-132378adb3407b1238c3958070c584fdb3adb6cd.zip |
Fix tabbed pane not setting parent
Fix RoomMatcher only detecting for rotation=1
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/nyu/RootConfigPanel.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/nyu/RootConfigPanel.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/nyu/RootConfigPanel.java index b81d96a2..4d99a8bc 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/nyu/RootConfigPanel.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/nyu/RootConfigPanel.java @@ -19,6 +19,10 @@ package kr.syeyoung.dungeonsguide.config.guiconfig.nyu; import com.google.common.base.Function; +import com.google.common.base.Supplier; +import kr.syeyoung.dungeonsguide.config.guiconfig.old.ConfigPanelCreator; +import kr.syeyoung.dungeonsguide.config.guiconfig.old.FeatureEditPane; +import kr.syeyoung.dungeonsguide.config.guiconfig.old.GuiConfig; import kr.syeyoung.dungeonsguide.features.AbstractFeature; import kr.syeyoung.dungeonsguide.features.FeatureRegistry; import kr.syeyoung.dungeonsguide.gui.MPanel; @@ -32,6 +36,7 @@ import net.minecraft.client.gui.Gui; import java.awt.*; import java.util.HashMap; +import java.util.List; import java.util.Map; public class RootConfigPanel extends MPanelScaledGUI { @@ -95,7 +100,12 @@ public class RootConfigPanel extends MPanelScaledGUI { NestedCategory finalCurrentRoot = currentRoot; currentRoot = currentRoot.children().computeIfAbsent(s, k -> new NestedCategory(finalCurrentRoot.categoryFull+"."+k)); } + + } + for (Map.Entry<String, List<AbstractFeature>> stringListEntry : FeatureRegistry.getFeaturesByCategory().entrySet()) { + ConfigPanelCreator.map.put("ROOT."+stringListEntry.getKey(),(Supplier<MPanel>) () -> new FeatureEditPane(stringListEntry.getValue(), null)); } + for (NestedCategory value : root.children().values()) { setupNavigationRecursive(value, navigation, 0, 17); } |