v0.3.4: implemented rendered text in all single-line cases
This commit is contained in:
committed by
Evan Debenham
parent
dc70009ae6
commit
13d6beda67
@@ -22,9 +22,9 @@ package com.shatteredpixel.shatteredpixeldungeon.windows;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.watabou.noosa.BitmapText;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.noosa.NinePatch;
|
||||
import com.watabou.noosa.RenderedText;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.noosa.ui.Button;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
@@ -192,21 +192,20 @@ public class WndTabbed extends Window {
|
||||
|
||||
protected class LabeledTab extends Tab {
|
||||
|
||||
private BitmapText btLabel;
|
||||
private RenderedText btLabel;
|
||||
|
||||
public LabeledTab( String label ) {
|
||||
|
||||
super();
|
||||
|
||||
btLabel.text( label );
|
||||
btLabel.measure();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void createChildren() {
|
||||
super.createChildren();
|
||||
|
||||
btLabel = PixelScene.createText( 9 );
|
||||
btLabel = PixelScene.renderText( 9 );
|
||||
add( btLabel );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user