aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java12
1 files changed, 6 insertions, 6 deletions
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 be88158e..cda0df58 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayLever.java
@@ -54,7 +54,7 @@ public class ValueEditOnewayLever extends MPanel implements ValueEdit<DungeonOne
};
preRequisite.setText(TextUtils.join(dungeonLever.getPreRequisite(), ","));
preRequisite2 = new MLabelAndElement("Req.",preRequisite);
- preRequisite2.setBounds(new Rectangle(0,40,bounds.width,20));
+ preRequisite2.setBounds(new Rectangle(0,40,getBounds().width,20));
add(preRequisite2);
@@ -66,16 +66,16 @@ public class ValueEditOnewayLever extends MPanel implements ValueEdit<DungeonOne
};
target.setText(dungeonLever.getTriggering());
target2 = new MLabelAndElement("Target",target);
- target2.setBounds(new Rectangle(0,60,bounds.width,20));
+ target2.setBounds(new Rectangle(0,60,getBounds().width,20));
add(target2);
}
@Override
public void onBoundsUpdate() {
- 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));
+ label.setBounds(new Rectangle(0,0,getBounds().width, 20));
+ value.setBounds(new Rectangle(0,20,getBounds().width, 20));
+ preRequisite2.setBounds(new Rectangle(0,40,getBounds().width,20));
+ target2.setBounds(new Rectangle(0,60,getBounds().width,20));
}
@Override