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);
|
txt.setPos(0, pos);
|
||||||
add( txt );
|
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);
|
txt.setPos(WIDTH * 0.55f, pos);
|
||||||
PixelScene.align(txt);
|
PixelScene.align(txt);
|
||||||
add( txt );
|
add( txt );
|
||||||
|
|||||||
@@ -302,8 +302,11 @@ public class WndRanking extends WndTabbed {
|
|||||||
txt.setPos(0, pos);
|
txt.setPos(0, pos);
|
||||||
parent.add( txt );
|
parent.add( txt );
|
||||||
|
|
||||||
txt = PixelScene.renderTextBlock( value, 7 );
|
int size = 7;
|
||||||
txt.setPos(WIDTH * 0.6f, pos);
|
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);
|
PixelScene.align(txt);
|
||||||
parent.add( txt );
|
parent.add( txt );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user