From 0f0695c34aa0c3c8209b0e2429ab66a725c29a44 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 25 Dec 2016 16:30:30 +0100 Subject: [PATCH] less text padding in simplebutton, rename sbv2 ease middle button --- src/yugecin/opsudance/sbv2/MoveStoryboard.java | 2 +- src/yugecin/opsudance/ui/SimpleButton.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yugecin/opsudance/sbv2/MoveStoryboard.java b/src/yugecin/opsudance/sbv2/MoveStoryboard.java index cbf2c3e7..b6119d86 100644 --- a/src/yugecin/opsudance/sbv2/MoveStoryboard.java +++ b/src/yugecin/opsudance/sbv2/MoveStoryboard.java @@ -61,7 +61,7 @@ public class MoveStoryboard { btnAddQuadratic = new SimpleButton(width - 205, 80, 200, 25, Fonts.SMALL, "add quadratic", Colors.BLUE_BUTTON, Colors.WHITE_FADE, Colors.WHITE_FADE, Colors.ORANGE_BUTTON); btnAddCubic = new SimpleButton(width - 205, 110, 200, 25, Fonts.SMALL, "add cubic", Colors.BLUE_BUTTON, Colors.WHITE_FADE, Colors.WHITE_FADE, Colors.ORANGE_BUTTON); btnAnimLin = new SimpleButton(width - 250, 50, 40, 25, Fonts.SMALL, "lin", Color.blue, Color.white, Color.white, Color.orange); - btnAnimMid = new SimpleButton(width - 250, 80, 40, 25, Fonts.SMALL, "cir", Color.blue, Color.white, Color.white, Color.orange); + btnAnimMid = new SimpleButton(width - 250, 80, 40, 25, Fonts.SMALL, "mid", Color.blue, Color.white, Color.white, Color.orange); btnAnimCub = new SimpleButton(width - 250, 110, 40, 25, Fonts.SMALL, "cub", Color.blue, Color.white, Color.white, Color.orange); dummyMove = (StoryboardMove) Proxy.newProxyInstance(StoryboardMove.class.getClassLoader(), new Class[]{StoryboardMove.class}, new InvocationHandler() { @Override diff --git a/src/yugecin/opsudance/ui/SimpleButton.java b/src/yugecin/opsudance/ui/SimpleButton.java index a7c68d89..099f9f17 100644 --- a/src/yugecin/opsudance/ui/SimpleButton.java +++ b/src/yugecin/opsudance/ui/SimpleButton.java @@ -52,7 +52,7 @@ public class SimpleButton { g.setColor(bg); g.fillRect(hitbox.x, hitbox.y, hitbox.width, hitbox.height); g.setColor(fg); - font.drawString(hitbox.x + 20, textY, text); + font.drawString(hitbox.x + 5, textY, text); if (isHovered) { g.setColor(hoverBorder); } else {