v0.4.0: fixed an alignment issue in rankings windows

This commit is contained in:
Evan Debenham 2016-05-25 19:45:31 -04:00
parent 8439cf89a9
commit c1a637694e

View File

@ -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 );