diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-26 15:17:39 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-26 15:17:39 +0900 |
commit | 282a946c40e8678f13d4998aedd1f4065143a7c7 (patch) | |
tree | 2bcc60daae54f66c19d68aae153c4fa967a7596b /src/main/java/kr/syeyoung/dungeonsguide/roomedit | |
parent | dad6bd4f55ac53435d59e84035a531d787886ac6 (diff) | |
download | Skyblock-Dungeons-Guide-282a946c40e8678f13d4998aedd1f4065143a7c7.tar.gz Skyblock-Dungeons-Guide-282a946c40e8678f13d4998aedd1f4065143a7c7.tar.bz2 Skyblock-Dungeons-Guide-282a946c40e8678f13d4998aedd1f4065143a7c7.zip |
set edit stuff
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java | 1 | ||||
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java index f78504fd..ebdfffdf 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java @@ -31,6 +31,7 @@ public class GuiDungeonOffsetPointEdit extends GuiScreen { public GuiDungeonOffsetPointEdit(final ValueEditOffsetPointSet valueEditOffsetPointSet, final OffsetPoint offsetPoint) { this.offsetPoint = offsetPoint; + mainPanel.setBackgroundColor(new Color(17, 17, 17, 179)); { MPanel thing = (MPanel) ValueEditRegistry.getValueEditMap(OffsetPoint.class.getName()).createValueEdit(new Parameter(null, null, null) { @Override diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java index a701894f..b8d9feb8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java @@ -101,8 +101,10 @@ public class ValueEditOffsetPointSet extends MPanel implements ValueEdit<OffsetP @Override public void run() { OffsetPoint offsetPoint = new OffsetPoint(EditingContext.getEditingContext().getRoom(), Minecraft.getMinecraft().thePlayer.getPosition()); - MParameters.add(new MOffsetPoint(ValueEditOffsetPointSet.this, offsetPoint)); + MOffsetPoint mOffsetPoint; + MParameters.add(mOffsetPoint = new MOffsetPoint(ValueEditOffsetPointSet.this, offsetPoint)); ((OffsetPointSet)parameter.getNewData()).getOffsetPointList().add(offsetPoint); + mOffsetPoint.setSize(new Dimension(bounds.width, 20)); } }); |