diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit')
8 files changed, 47 insertions, 47 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 b72e636f..b8ac9d9c 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditBreakableWall.java @@ -51,7 +51,7 @@ public class ValueEditBreakableWall extends MPanel implements ValueEdit<DungeonB updateOnlyAir.setText("Update Air"); updateOnlyAir.setBackgroundColor(Color.green); updateOnlyAir.setForeground(Color.black); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); add(updateOnlyAir); updateOnlyAir.setOnActionPerformed(new Runnable() { @Override @@ -74,16 +74,16 @@ public class ValueEditBreakableWall extends MPanel implements ValueEdit<DungeonB }; preRequisite.setText(TextUtils.join(dungeonBreakableWall.getPreRequisite(), ",")); preRequisite2 = new MLabelAndElement("Req.",preRequisite); - preRequisite2.setBounds(new Rectangle(0,60,bounds.width,20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().width,20)); add(preRequisite2); } @Override public void onBoundsUpdate() { - label.setBounds(new Rectangle(0,0,bounds.width, 20)); - value.setBounds(new Rectangle(0,20,bounds.width, 20)); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); - preRequisite2.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)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().width,20)); } @Override diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditDoor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditDoor.java index 9f641a63..3fa11dda 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditDoor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditDoor.java @@ -51,7 +51,7 @@ public class ValueEditDoor extends MPanel implements ValueEdit<DungeonDoor> { updateOnlyAir.setText("Update Air"); updateOnlyAir.setBackgroundColor(Color.green); updateOnlyAir.setForeground(Color.black); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); add(updateOnlyAir); updateOnlyAir.setOnActionPerformed(new Runnable() { @Override @@ -74,7 +74,7 @@ public class ValueEditDoor extends MPanel implements ValueEdit<DungeonDoor> { }; preRequisite.setText(TextUtils.join(dungeonDoor.getOpenPreRequisite(), ",")); preRequisite_par = new MLabelAndElement("Open Req.",preRequisite); - preRequisite_par.setBounds(new Rectangle(0,60,bounds.width,20)); + preRequisite_par.setBounds(new Rectangle(0,60,getBounds().width,20)); add(preRequisite_par); preRequisite2 = new MTextField() { @@ -85,17 +85,17 @@ public class ValueEditDoor extends MPanel implements ValueEdit<DungeonDoor> { }; preRequisite2.setText(TextUtils.join(dungeonDoor.getClosePreRequisite(), ",")); preRequisite2_par = new MLabelAndElement("Close Req.",preRequisite2); - preRequisite2_par.setBounds(new Rectangle(0,80,bounds.width,20)); + preRequisite2_par.setBounds(new Rectangle(0,80,getBounds().width,20)); add(preRequisite2_par); } @Override public void onBoundsUpdate() { - label.setBounds(new Rectangle(0,0,bounds.width, 20)); - value.setBounds(new Rectangle(0,20,bounds.width, 20)); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); - preRequisite_par.setBounds(new Rectangle(0,60,bounds.width,20)); - preRequisite2_par.setBounds(new Rectangle(0,80,bounds.width,20)); + label.setBounds(new Rectangle(0,0,getBounds().width, 20)); + value.setBounds(new Rectangle(0,20,getBounds().width, 20)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); + preRequisite_par.setBounds(new Rectangle(0,60,getBounds().width,20)); + preRequisite2_par.setBounds(new Rectangle(0,80,getBounds().width,20)); } @Override 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 1d18fcb2..499faf50 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditLever.java @@ -51,7 +51,7 @@ public class ValueEditLever extends MPanel implements ValueEdit<DungeonLever> { }; 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); @@ -63,16 +63,16 @@ public class ValueEditLever extends MPanel implements ValueEdit<DungeonLever> { }; 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 diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayDoor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayDoor.java index 85b6d706..b1407a6e 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayDoor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditOnewayDoor.java @@ -50,7 +50,7 @@ public class ValueEditOnewayDoor extends MPanel implements ValueEdit<DungeonOnew updateOnlyAir.setText("Update Air"); updateOnlyAir.setBackgroundColor(Color.green); updateOnlyAir.setForeground(Color.black); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); add(updateOnlyAir); updateOnlyAir.setOnActionPerformed(new Runnable() { @Override @@ -73,16 +73,16 @@ public class ValueEditOnewayDoor extends MPanel implements ValueEdit<DungeonOnew }; preRequisite.setText(TextUtils.join(dungeonDoor.getPreRequisite(), ",")); preRequisite2 = new MLabelAndElement("Req.",preRequisite); - preRequisite2.setBounds(new Rectangle(0,60,bounds.width,20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().width,20)); add(preRequisite2); } @Override public void onBoundsUpdate() { - label.setBounds(new Rectangle(0,0,bounds.width, 20)); - value.setBounds(new Rectangle(0,20,bounds.width, 20)); - updateOnlyAir.setBounds(new Rectangle(0,40,bounds.width, 20)); - preRequisite2.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)); + updateOnlyAir.setBounds(new Rectangle(0,40,getBounds().width, 20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().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 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 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 56d09c7a..d9bf1971 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditPressurePlate.java @@ -54,7 +54,7 @@ public class ValueEditPressurePlate extends MPanel implements ValueEdit<DungeonP }; preRequisite.setText(TextUtils.join(dungeonPressureplate.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 ValueEditPressurePlate extends MPanel implements ValueEdit<DungeonP }; target.setText(dungeonPressureplate.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 diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditSecret.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditSecret.java index 044a4b5c..e2947bb8 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditSecret.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditSecret.java @@ -60,16 +60,16 @@ public class ValueEditSecret extends MPanel implements ValueEdit<DungeonSecret> }; preRequisite.setText(TextUtils.join(dungeonSecret.getPreRequisite(), ",")); preRequisite2 = new MLabelAndElement("Req.",preRequisite); - preRequisite2.setBounds(new Rectangle(0,60,bounds.width,20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().width,20)); add(preRequisite2); } @Override public void onBoundsUpdate() { - label.setBounds(new Rectangle(0,0,bounds.width, 20)); - value.setBounds(new Rectangle(0,20,bounds.width, 20)); - selectionButton.setBounds(new Rectangle(0,40,bounds.width, 20)); - preRequisite2.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)); + selectionButton.setBounds(new Rectangle(0,40,getBounds().width, 20)); + preRequisite2.setBounds(new Rectangle(0,60,getBounds().width,20)); } @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 067c3d2d..7fa63156 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/mechanicedit/ValueEditTomb.java @@ -52,15 +52,15 @@ public class ValueEditTomb extends MPanel implements ValueEdit<DungeonTomb> { }; preRequisite.setText(TextUtils.join(dungeonTomb.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); } @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)); + 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)); } @Override |