aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-13 20:37:15 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-13 20:37:15 +0900
commit2b869989ec69bfb0f5ca54409844ec5720b6a6fd (patch)
treec1113954236535eb11c3388b12bf652167ca0b33 /src/main/java/kr/syeyoung/dungeonsguide/roomedit
parentc9e6aa33ba584e2db2cce0771703be97e4e62510 (diff)
downloadSkyblock-Dungeons-Guide-2b869989ec69bfb0f5ca54409844ec5720b6a6fd.tar.gz
Skyblock-Dungeons-Guide-2b869989ec69bfb0f5ca54409844ec5720b6a6fd.tar.bz2
Skyblock-Dungeons-Guide-2b869989ec69bfb0f5ca54409844ec5720b6a6fd.zip
ay
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPoint.java18
3 files changed, 20 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java
index fd7438af..6774b067 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java
@@ -110,7 +110,7 @@ public class ValueEditBreakableWall extends MPanel implements ValueEdit<DungeonS
@Override
public Object createDefaultValue(Parameter parameter) {
- return new DungeonSecret();
+ return new DungeonBreakableWall();
}
@Override
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java
index 04150b19..09992bb3 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java
@@ -87,7 +87,7 @@ public class ValueEditTomb extends MPanel implements ValueEdit<DungeonSecret> {
@Override
public Object createDefaultValue(Parameter parameter) {
- return new DungeonSecret();
+ return new DungeonTomb();
}
@Override
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPoint.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPoint.java
index 7e603dc5..25f69ab4 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPoint.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPoint.java
@@ -8,6 +8,8 @@ import kr.syeyoung.dungeonsguide.roomedit.elements.*;
import kr.syeyoung.dungeonsguide.utils.RenderUtils;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.util.BlockPos;
import scala.actors.threadpool.Arrays;
import java.awt.*;
@@ -84,6 +86,22 @@ public class ValueEditOffsetPoint extends MPanel implements ValueEdit<String> {
mLabelAndElement.setBounds(new Rectangle(0,80,bounds.width,20));
add(mLabelAndElement);
}
+ {
+ final MButton setToHEre2 = new MButton();
+ setToHEre2.setText("Set to here");
+ setToHEre2.setBackgroundColor(Color.green);
+ setToHEre2.setOnActionPerformed(new Runnable() {
+ @Override
+ public void run() {
+ EntityPlayer player = Minecraft.getMinecraft().thePlayer;
+ BlockPos pos = new BlockPos(player.posX, player.posY, player.posZ);
+ ((OffsetPoint)parameter2.getNewData()).setPosInWorld(EditingContext.getEditingContext().getRoom(),pos );
+ }
+ });
+ MLabelAndElement mLabelAndElement = new MLabelAndElement("set",setToHEre2);
+ mLabelAndElement.setBounds(new Rectangle(0,100,bounds.width,20));
+ add(mLabelAndElement);
+ }
}
@Override