v0.4.0: fixed an alignment issue in rankings windows
This commit is contained in:
parent
8439cf89a9
commit
c1a637694e
|
@ -316,9 +316,11 @@ public class WndRanking extends WndTabbed {
|
||||||
bg.y = y;
|
bg.y = y;
|
||||||
|
|
||||||
slot.setRect( x, y, HEIGHT, HEIGHT );
|
slot.setRect( x, y, HEIGHT, HEIGHT );
|
||||||
|
PixelScene.align(slot);
|
||||||
|
|
||||||
name.x = slot.right() + 2;
|
name.x = slot.right() + 2;
|
||||||
name.y = y + (height - name.baseLine()) / 2;
|
name.y = y + (height - name.baseLine()) / 2;
|
||||||
|
PixelScene.align(name);
|
||||||
|
|
||||||
String str = Messages.titleCase( item.name() );
|
String str = Messages.titleCase( item.name() );
|
||||||
name.text( str );
|
name.text( str );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user