Minor improvements in tab appearance.

Centered the text and spread out the tabs in the options menu.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-03-04 21:21:53 -05:00
parent bf04083ebd
commit 3216c4d1ac
2 changed files with 2 additions and 3 deletions

View File

@@ -248,8 +248,7 @@ public class Utils {
public static void drawTab(float x, float y, String text, boolean selected, boolean isHover) {
Image tabImage = GameImage.MENU_TAB.getImage();
float tabTextX = x - (Utils.FONT_MEDIUM.getWidth(text) / 2);
float tabTextY = y - (tabImage.getHeight() / 2f) +
Math.max((tabImage.getHeight() - Utils.FONT_MEDIUM.getLineHeight()) / 1.5f, 0);
float tabTextY = y - (tabImage.getHeight() / 2.5f);
Color filter, textColor;
if (selected) {
filter = Color.white;