aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-14 19:08:28 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-14 19:08:28 +0900
commit0f390b554531c5ca211160e3ff81a79bbda3ae57 (patch)
tree463847782d0ed02f532a74cca79b6b5deba327ba /src
parent769e4a2f42daf94232386deedcaa79002c911c5c (diff)
downloadSkyblock-Dungeons-Guide-0f390b554531c5ca211160e3ff81a79bbda3ae57.tar.gz
Skyblock-Dungeons-Guide-0f390b554531c5ca211160e3ff81a79bbda3ae57.tar.bz2
Skyblock-Dungeons-Guide-0f390b554531c5ca211160e3ff81a79bbda3ae57.zip
set targets
Diffstat (limited to 'src')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/EditingContext.java1
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java15
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java16
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java16
4 files changed, 47 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/EditingContext.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/EditingContext.java
index 4045503e..35f020a1 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/EditingContext.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/EditingContext.java
@@ -63,7 +63,6 @@ public class EditingContext {
}
public void reopen() {
- guiDungeonRoomEdit.endEditing();
Minecraft.getMinecraft().displayGuiScreen(current);
}
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java
index 27e26eb3..7bc41e1f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java
@@ -27,6 +27,8 @@ public class ValueEditLever extends MPanel implements ValueEdit<DungeonLever> {
private MValue<OffsetPoint> value;
private MTextField preRequisite;
private MLabelAndElement preRequisite2;
+ private MTextField target;
+ private MLabelAndElement target2;
public ValueEditLever(final Parameter parameter2) {
this.parameter = parameter2;
@@ -51,6 +53,18 @@ public class ValueEditLever extends MPanel implements ValueEdit<DungeonLever> {
preRequisite2 = new MLabelAndElement("Req.",preRequisite);
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
add(preRequisite2);
+
+
+ target = new MTextField() {
+ @Override
+ public void edit(String str) {
+ dungeonLever.setTriggering(str);
+ }
+ };
+ target.setText(dungeonLever.getTriggering());
+ target2 = new MLabelAndElement("Req.",target);
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
+ add(target2);
}
@Override
@@ -58,6 +72,7 @@ public class ValueEditLever extends MPanel implements ValueEdit<DungeonLever> {
label.setBounds(new Rectangle(0,0,bounds.width, 20));
value.setBounds(new Rectangle(0,20,bounds.width, 20));
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
}
@Override
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
index 9a510867..90edcb63 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
@@ -29,6 +29,9 @@ public class ValueEditOnewayLever extends MPanel implements ValueEdit<DungeonOne
private MValue<OffsetPoint> value;
private MTextField preRequisite;
private MLabelAndElement preRequisite2;
+ private MTextField target;
+ private MLabelAndElement target2;
+
public ValueEditOnewayLever(final Parameter parameter2) {
this.parameter = parameter2;
@@ -53,6 +56,18 @@ public class ValueEditOnewayLever extends MPanel implements ValueEdit<DungeonOne
preRequisite2 = new MLabelAndElement("Req.",preRequisite);
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
add(preRequisite2);
+
+
+ target = new MTextField() {
+ @Override
+ public void edit(String str) {
+ dungeonLever.setTriggering(str);
+ }
+ };
+ target.setText(dungeonLever.getTriggering());
+ target2 = new MLabelAndElement("Req.",target);
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
+ add(target2);
}
@Override
@@ -60,6 +75,7 @@ public class ValueEditOnewayLever extends MPanel implements ValueEdit<DungeonOne
label.setBounds(new Rectangle(0,0,bounds.width, 20));
value.setBounds(new Rectangle(0,20,bounds.width, 20));
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
}
@Override
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java
index 9a1bc292..80e05b05 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java
@@ -29,6 +29,9 @@ public class ValueEditPressurePlate extends MPanel implements ValueEdit<DungeonP
private MValue<OffsetPoint> value;
private MTextField preRequisite;
private MLabelAndElement preRequisite2;
+ private MTextField target;
+ private MLabelAndElement target2;
+
public ValueEditPressurePlate(final Parameter parameter2) {
this.parameter = parameter2;
@@ -53,6 +56,18 @@ public class ValueEditPressurePlate extends MPanel implements ValueEdit<DungeonP
preRequisite2 = new MLabelAndElement("Req.",preRequisite);
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
add(preRequisite2);
+
+
+ target = new MTextField() {
+ @Override
+ public void edit(String str) {
+ dungeonPressureplate.setTriggering(str);
+ }
+ };
+ target.setText(dungeonPressureplate.getTriggering());
+ target2 = new MLabelAndElement("Req.",target);
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
+ add(target2);
}
@Override
@@ -60,6 +75,7 @@ public class ValueEditPressurePlate extends MPanel implements ValueEdit<DungeonP
label.setBounds(new Rectangle(0,0,bounds.width, 20));
value.setBounds(new Rectangle(0,20,bounds.width, 20));
preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
+ target2.setBounds(new Rectangle(0,60,bounds.width,20));
}
@Override