From 91ada0fa52f3ce0f30311b0aa7a9f3e9c7e67f1b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 4 Sep 2015 01:35:52 -0400 Subject: [PATCH] v0.3.1b: updated rankings window to better work with new text scaling --- .../shatteredpixeldungeon/windows/WndRanking.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndRanking.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndRanking.java index 7d4bd406e..caa824817 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndRanking.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndRanking.java @@ -145,8 +145,8 @@ public class WndRanking extends WndTabbed { } private class StatsTab extends Group { - - private static final int GAP = 4; + + private int GAP = 4; private static final String TXT_TITLE = "Level %d %s"; @@ -167,6 +167,8 @@ public class WndRanking extends WndTabbed { public StatsTab() { super(); + + if (Dungeon.challenges > 0) GAP--; String heroClass = Dungeon.hero.className(); @@ -186,7 +188,7 @@ public class WndRanking extends WndTabbed { Game.scene().add( new WndChallenges( Dungeon.challenges, false ) ); } }; - btnCatalogus.setRect( 0, pos + GAP, btnCatalogus.reqWidth() + 2, btnCatalogus.reqHeight() + 2 ); + btnCatalogus.setRect( 0, pos, btnCatalogus.reqWidth() + 2, btnCatalogus.reqHeight() + 2 ); add( btnCatalogus ); pos = btnCatalogus.bottom();