aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-02 00:19:39 +0900
committersyeyoung <cyong06@naver.com>2021-01-02 00:19:39 +0900
commit4ee8f51e128ccc591de86147af11b7b66f36b2a6 (patch)
tree2760ffbda0aecf207961228a46f47b542a7eccad /src/main/java/kr
parent997220275d9164271d3ceb636e90f18913038912 (diff)
downloadSkyblock-Dungeons-Guide-4ee8f51e128ccc591de86147af11b7b66f36b2a6.tar.gz
Skyblock-Dungeons-Guide-4ee8f51e128ccc591de86147af11b7b66f36b2a6.tar.bz2
Skyblock-Dungeons-Guide-4ee8f51e128ccc591de86147af11b7b66f36b2a6.zip
fix smol bugs
Diffstat (limited to 'src/main/java/kr')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/MParameter.java4
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditColor.java6
2 files changed, 5 insertions, 5 deletions
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> {
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<Color> {
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<Color> {
add(mLabelAndElement);
}
{
- v = new MFloatSelectionButton(hsv[0]);
+ v = new MFloatSelectionButton(hsv[2] * 100);
v.setOnUpdate(new Runnable() {
@Override
public void run() {