v0.3.1b: updated rankings window to better work with new text scaling
This commit is contained in:
@@ -146,7 +146,7 @@ public class WndRanking extends WndTabbed {
|
|||||||
|
|
||||||
private class StatsTab extends Group {
|
private class StatsTab extends Group {
|
||||||
|
|
||||||
private static final int GAP = 4;
|
private int GAP = 4;
|
||||||
|
|
||||||
private static final String TXT_TITLE = "Level %d %s";
|
private static final String TXT_TITLE = "Level %d %s";
|
||||||
|
|
||||||
@@ -168,6 +168,8 @@ public class WndRanking extends WndTabbed {
|
|||||||
public StatsTab() {
|
public StatsTab() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
if (Dungeon.challenges > 0) GAP--;
|
||||||
|
|
||||||
String heroClass = Dungeon.hero.className();
|
String heroClass = Dungeon.hero.className();
|
||||||
|
|
||||||
IconTitle title = new IconTitle();
|
IconTitle title = new IconTitle();
|
||||||
@@ -186,7 +188,7 @@ public class WndRanking extends WndTabbed {
|
|||||||
Game.scene().add( new WndChallenges( Dungeon.challenges, false ) );
|
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 );
|
add( btnCatalogus );
|
||||||
|
|
||||||
pos = btnCatalogus.bottom();
|
pos = btnCatalogus.bottom();
|
||||||
|
|||||||
Reference in New Issue
Block a user