本文整理汇总了Java中com.watabou.noosa.BitmapText类的典型用法代码示例。如果您正苦于以下问题:Java BitmapText类的具体用法?Java BitmapText怎么用?Java BitmapText使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BitmapText类属于com.watabou.noosa包,在下文中一共展示了BitmapText类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite(ItemSpriteSheet.TOMB, null);
add(shield);
position = new BitmapText(PixelScene.font1x);
position.alpha(0.8f);
add(position);
desc = renderMultiline(7);
add(desc);
depth = new BitmapText(PixelScene.font1x);
depth.alpha(0.8f);
steps = new Image();
classIcon = new Image();
add(classIcon);
level = new BitmapText(PixelScene.font1x);
level.alpha(0.8f);
}
示例2: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add(icon);
topLeft = new BitmapText(PixelScene.font1x);
add(topLeft);
topRight = new BitmapText(PixelScene.font1x);
add(topRight);
bottomRight = new BitmapText(PixelScene.font1x);
add(bottomRight);
}
示例3: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite( ItemSpriteSheet.TOMB, null );
add( shield );
position = new BitmapText( PixelScene.pixelFont);
position.alpha(0.8f);
add( position );
desc = renderMultiline( 7 );
add( desc );
depth = new BitmapText( PixelScene.pixelFont);
depth.alpha(0.8f);
steps = new Image();
classIcon = new Image();
add( classIcon );
level = new BitmapText( PixelScene.pixelFont);
level.alpha(0.8f);
}
示例4: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add( icon );
topLeft = new BitmapText( PixelScene.pixelFont);
add( topLeft );
topRight = new BitmapText( PixelScene.pixelFont);
add( topRight );
bottomRight = new BitmapText( PixelScene.pixelFont);
add( bottomRight );
}
示例5: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add( icon );
topLeft = new BitmapText( PixelScene.font1x );
add( topLeft );
topRight = new BitmapText( PixelScene.font1x );
add( topRight );
bottomRight = new BitmapText( PixelScene.font1x );
add(bottomRight);
bottomLeft = new BitmapText( PixelScene.font1x );
add(bottomLeft);
}
示例6: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add( icon );
topLeft = new BitmapText( PixelScene.font1x );
add( topLeft );
topRight = new BitmapText( PixelScene.font1x );
add( topRight );
bottomRight = new BitmapText( PixelScene.font1x );
add( bottomRight );
}
示例7: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite( ItemSpriteSheet.TOMB, null );
add( shield );
position = new BitmapText( PixelScene.font1x );
add( position );
desc = createMultiline( 9 );
add( desc );
classIcon = new Image();
add( classIcon );
}
示例8: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite( ItemSpriteSheet.TOMB, null );
add( shield );
position = new BitmapText( PixelScene.font1x );
position.alpha(0.8f);
add( position );
desc = createMultiline( 7 );
add( desc );
depth = new BitmapText( PixelScene.font1x );
depth.alpha(0.8f);
steps = new Image();
classIcon = new Image();
add( classIcon );
level = new BitmapText( PixelScene.font1x );
level.alpha(0.8f);
}
示例9: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite(ItemSpriteSheet.TOMB, null);
add(shield);
position = new BitmapText(PixelScene.font1x);
add(position);
desc = createMultiline(9);
add(desc);
classIcon = new Image();
add(classIcon);
}
示例10: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add(icon);
topLeft = new BitmapText(PixelScene.font1x);
add(topLeft);
topRight = new BitmapText(PixelScene.font1x);
add(topRight);
bottomRight = new BitmapText(PixelScene.font1x);
add(bottomRight);
}
示例11: placeTitle
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
protected void placeTitle( Bag bag, int width ){
RenderedText txtTitle = PixelScene.renderText(
title != null ? Messages.titleCase(title) : Messages.titleCase( bag.name() ), 9 );
txtTitle.hardlight( TITLE_COLOR );
txtTitle.x = 1;
txtTitle.y = (int)(TITLE_HEIGHT - txtTitle.baseLine()) / 2f - 1;
PixelScene.align(txtTitle);
add( txtTitle );
ItemSprite gold = new ItemSprite(ItemSpriteSheet.GOLD, null);
gold.x = width - gold.width() - 1;
gold.y = (TITLE_HEIGHT - gold.height())/2f - 1;
PixelScene.align(gold);
add(gold);
BitmapText amt = new BitmapText( Integer.toString(Dungeon.gold), PixelScene.pixelFont );
amt.hardlight(TITLE_COLOR);
amt.measure();
amt.x = width - gold.width() - amt.width() - 2;
amt.y = (TITLE_HEIGHT - amt.baseLine())/2f - 1;
PixelScene.align(amt);
add(amt);
}
示例12: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
shield = new ItemSprite(ItemSpriteSheet.TOMB, null);
add(shield);
position = new BitmapText(PixelScene.font1x);
add(position);
desc = createMultiline(GuiProperties.regularFontSize());
add(desc);
classIcon = new Image();
add(classIcon);
}
示例13: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
super.createChildren();
icon = new ItemSprite();
add(icon);
emitter = new Emitter();
add(emitter);
topLeft = new BitmapText(PixelScene.font1x);
topLeft.setScale(0.8f, 0.8f);
add(topLeft);
topRight = new BitmapText(PixelScene.font1x);
topRight.setScale(0.8f, 0.8f);
add(topRight);
bottomRight = new BitmapText(PixelScene.font1x);
bottomRight.setScale(0.8f, 0.8f);
add(bottomRight);
}
示例14: PerksTab
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
public PerksTab() {
super();
float dotWidth = 0;
String[] items = cl.perks();
float pos = MARGIN;
for (int i = 0; i < items.length; i++) {
if (i > 0) {
pos += GAP;
}
BitmapText dot = PixelScene.createText("-", 6);
dot.x = MARGIN;
dot.y = pos;
if (dotWidth == 0) {
dot.measure();
dotWidth = dot.width();
}
add(dot);
RenderedTextMultiline item = PixelScene.renderMultiline(items[i], 6);
item.maxWidth((int) (WIDTH - MARGIN * 2 - dotWidth));
item.setPos(dot.x + dotWidth, pos);
add(item);
pos += item.height();
float w = item.width();
if (w > width) {
width = w;
}
}
width += MARGIN + dotWidth;
height = pos + MARGIN;
}
示例15: createChildren
import com.watabou.noosa.BitmapText; //导入依赖的package包/类
@Override
protected void createChildren() {
feature = PixelScene.renderText(9);
add(feature);
depth = new BitmapText(PixelScene.font1x);
add(depth);
icon = Icons.get(Icons.DEPTH);
add(icon);
}