aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-26 15:33:58 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-26 15:33:58 +0900
commit2baa6dc4a59db422415bfad996e11619093788c6 (patch)
tree69bc29301e5f3a9c155a8b795d16e3c283efc655 /src/main/java/kr/syeyoung/dungeonsguide/roomedit
parentf1a9ef20465071fd32d662edc22e4dc228ba28aa (diff)
downloadSkyblock-Dungeons-Guide-2baa6dc4a59db422415bfad996e11619093788c6.tar.gz
Skyblock-Dungeons-Guide-2baa6dc4a59db422415bfad996e11619093788c6.tar.bz2
Skyblock-Dungeons-Guide-2baa6dc4a59db422415bfad996e11619093788c6.zip
add set stuff, done
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonAddSet.java4
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonAddSet.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonAddSet.java
index b6275865..a0496b47 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonAddSet.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonAddSet.java
@@ -36,8 +36,8 @@ public class GuiDungeonAddSet extends GuiScreen {
for (OffsetPoint pos:getBlockPoses()) {
RenderUtils.highlightBlock(pos.getBlockPos(EditingContext.getEditingContext().getRoom()), new Color(0,255,255,50), partialTicks);
}
- RenderUtils.highlightBlock(start.getBlockPos(EditingContext.getEditingContext().getRoom()), new Color(255,0,0,50), partialTicks);
- RenderUtils.highlightBlock(end.getBlockPos(EditingContext.getEditingContext().getRoom()), new Color(0,255,0,50), partialTicks);
+ RenderUtils.highlightBlock(start.getBlockPos(EditingContext.getEditingContext().getRoom()), new Color(255,0,0,100), partialTicks);
+ RenderUtils.highlightBlock(end.getBlockPos(EditingContext.getEditingContext().getRoom()), new Color(0,255,0,100), partialTicks);
}
public List<OffsetPoint> getBlockPoses() {
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 58229623..cf617143 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java
@@ -156,6 +156,10 @@ public class ValueEditOffsetPointSet extends MPanel implements ValueEdit<OffsetP
}
public void addAll(List<OffsetPoint> blockPoses) {
+ ((OffsetPointSet)parameter.getNewData()).getOffsetPointList().addAll(blockPoses);
+ for (OffsetPoint blockPose : blockPoses) {
+ MParameters.add(new MOffsetPoint(this, blockPose));
+ }
}
public static class Generator implements ValueEditCreator<ValueEditOffsetPointSet> {