v0.6.3b: removed final usage of bitmaptext
This commit is contained in:
parent
bf8f279447
commit
adb9aa6519
|
@ -27,8 +27,8 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ui.RenderedTextMultiline;
|
import com.shatteredpixel.shatteredpixeldungeon.ui.RenderedTextMultiline;
|
||||||
import com.watabou.noosa.BitmapText;
|
|
||||||
import com.watabou.noosa.Group;
|
import com.watabou.noosa.Group;
|
||||||
|
import com.watabou.noosa.RenderedText;
|
||||||
|
|
||||||
public class WndClass extends WndTabbed {
|
public class WndClass extends WndTabbed {
|
||||||
|
|
||||||
|
@ -113,18 +113,16 @@ public class WndClass extends WndTabbed {
|
||||||
pos += GAP;
|
pos += GAP;
|
||||||
}
|
}
|
||||||
|
|
||||||
BitmapText dot = PixelScene.createText( "-", 6 );
|
RenderedText dot = PixelScene.renderText( "-", 6 );
|
||||||
dot.x = MARGIN;
|
|
||||||
dot.y = pos;
|
dot.y = pos;
|
||||||
if (dotWidth == 0) {
|
if (dotWidth == 0) {
|
||||||
dot.measure();
|
|
||||||
dotWidth = dot.width();
|
dotWidth = dot.width();
|
||||||
}
|
}
|
||||||
add( dot );
|
add( dot );
|
||||||
|
|
||||||
RenderedTextMultiline item = PixelScene.renderMultiline( items[i], 6 );
|
RenderedTextMultiline item = PixelScene.renderMultiline( items[i], 6 );
|
||||||
item.maxWidth((int)(WIDTH - MARGIN * 2 - dotWidth));
|
item.maxWidth((int)(WIDTH - MARGIN * 2 - dotWidth));
|
||||||
item.setPos(dot.x + dotWidth, pos);
|
item.setPos(dot.x + dot.width(), pos);
|
||||||
add( item );
|
add( item );
|
||||||
|
|
||||||
pos += item.height();
|
pos += item.height();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user