v3.2.2: fixed some UI layout issues with long custom seeds
This commit is contained in:
@@ -219,7 +219,10 @@ public class WndHero extends WndTabbed {
|
||||
txt.setPos(0, pos);
|
||||
add( txt );
|
||||
|
||||
txt = PixelScene.renderTextBlock( value, 8 );
|
||||
int size = 8;
|
||||
if (value.length() >= 14) size -=2;
|
||||
if (value.length() >= 18) size -=1;
|
||||
txt = PixelScene.renderTextBlock( value, size );
|
||||
txt.setPos(WIDTH * 0.55f, pos);
|
||||
PixelScene.align(txt);
|
||||
add( txt );
|
||||
|
||||
@@ -302,8 +302,11 @@ public class WndRanking extends WndTabbed {
|
||||
txt.setPos(0, pos);
|
||||
parent.add( txt );
|
||||
|
||||
txt = PixelScene.renderTextBlock( value, 7 );
|
||||
txt.setPos(WIDTH * 0.6f, pos);
|
||||
int size = 7;
|
||||
if (value.length() >= 14) size -=1;
|
||||
if (value.length() >= 18) size -=1;
|
||||
txt = PixelScene.renderTextBlock( value, size );
|
||||
txt.setPos(WIDTH * 0.55f, pos);
|
||||
PixelScene.align(txt);
|
||||
parent.add( txt );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user