From 4ee8f51e128ccc591de86147af11b7b66f36b2a6 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 2 Jan 2021 00:19:39 +0900 Subject: fix smol bugs --- .../java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java | 4 ++-- .../syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java index efa3b4fd..5f6f736b 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java @@ -96,8 +96,8 @@ public class MParameter extends MPanel { int x = getBounds().width - 50; for (MPanel panel : addons) { panel.setBounds(new Rectangle(x, 3, 50, getBounds().height - 6)); - x -= 50; } - label.setBounds(new Rectangle(0,0,x, getBounds().height)); + label2.setBounds(new Rectangle(x/2,0,x/2,getBounds().height)); + label.setBounds(new Rectangle(0,0,x/2, getBounds().height)); } } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java index 6a4c17c5..bc6a0e0f 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java @@ -53,7 +53,7 @@ public class ValueEditColor extends MPanel implements ValueEdit { Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsv); { - h = new MFloatSelectionButton(hsv[0]); + h = new MFloatSelectionButton(hsv[0] * 360); h.setOnUpdate(new Runnable() { @Override public void run() { @@ -66,7 +66,7 @@ public class ValueEditColor extends MPanel implements ValueEdit { add(mLabelAndElement); } { - s = new MFloatSelectionButton(hsv[0]); + s = new MFloatSelectionButton(hsv[1] * 100); s.setOnUpdate(new Runnable() { @Override public void run() { @@ -79,7 +79,7 @@ public class ValueEditColor extends MPanel implements ValueEdit { add(mLabelAndElement); } { - v = new MFloatSelectionButton(hsv[0]); + v = new MFloatSelectionButton(hsv[2] * 100); v.setOnUpdate(new Runnable() { @Override public void run() { -- cgit