diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-26 15:09:22 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-26 15:09:22 +0900 |
commit | dad6bd4f55ac53435d59e84035a531d787886ac6 (patch) | |
tree | 14ee8e216fcd5aed1d4403317e907c00b55e2504 /src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java | |
parent | 4d5276d8523e5c4771bdde386c9a538ec544d4c5 (diff) | |
download | Skyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.tar.gz Skyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.tar.bz2 Skyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.zip |
value edit stuff
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java index 4798e59d..26ebbe5b 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonParameterEdit.java @@ -13,6 +13,7 @@ import kr.syeyoung.dungeonsguide.roomedit.panes.RoomDataDisplayPane; import kr.syeyoung.dungeonsguide.roomedit.valueedit.ValueEdit; import kr.syeyoung.dungeonsguide.roomedit.valueedit.ValueEditCreator; import kr.syeyoung.dungeonsguide.roomedit.valueedit.ValueEditRegistry; +import lombok.Getter; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.ScaledResolution; @@ -38,6 +39,9 @@ public class GuiDungeonParameterEdit extends GuiScreen { private MButton save; private MButton delete; + @Getter + private ValueEdit valueEdit; + public GuiDungeonParameterEdit(final MParameter parameter2, final ProcessorParameterEditPane processorParameterEditPane) { dungeonRoom = EditingContext.getEditingContext().getRoom(); mainPanel.setBackgroundColor(new Color(17, 17, 17, 179)); @@ -141,6 +145,9 @@ public class GuiDungeonParameterEdit extends GuiScreen { valueEdit2.setText("No Value Edit"); valueEdit2.setBounds(new Rectangle(0,0,150,20)); valueEdit = valueEdit2; + this.valueEdit = null; + } else{ + this.valueEdit = (ValueEdit) valueEdit; } valueEdit.resize0(currentValueEdit.getBounds().width, currentValueEdit.getBounds().height); currentValueEdit.add(valueEdit); |