当前位置: 首页>>代码示例>>Java>>正文


Java BitmapText类代码示例

本文整理汇总了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);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:27,代码来源:RankingsScene.java

示例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);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:18,代码来源:ItemSlot.java

示例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);
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:27,代码来源:RankingsScene.java

示例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 );
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:18,代码来源:ItemSlot.java

示例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);
}
 
开发者ID:ConsideredHamster,项目名称:YetAnotherPixelDungeon,代码行数:21,代码来源:ItemSlot.java

示例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 );
}
 
开发者ID:FthrNature,项目名称:unleashed-pixel-dungeon,代码行数:18,代码来源:ItemSlot.java

示例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 );
}
 
开发者ID:HalcyonFish,项目名称:OHSCompSciClubPixelDungeon,代码行数:18,代码来源:RankingsScene.java

示例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);
}
 
开发者ID:wolispace,项目名称:soft-pixel-dungeon,代码行数:27,代码来源:RankingsScene.java

示例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);
}
 
开发者ID:skynet67,项目名称:pixel-dungeon-rebirth,代码行数:18,代码来源:RankingsScene.java

示例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);
}
 
开发者ID:skynet67,项目名称:pixel-dungeon-rebirth,代码行数:18,代码来源:ItemSlot.java

示例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);
}
 
开发者ID:00-Evan,项目名称:shattered-pixel-dungeon,代码行数:25,代码来源:WndBag.java

示例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);
}
 
开发者ID:NYRDS,项目名称:pixel-dungeon-remix,代码行数:18,代码来源:RankingsScene.java

示例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);
}
 
开发者ID:NYRDS,项目名称:pixel-dungeon-remix,代码行数:24,代码来源:ItemSlot.java

示例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;
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:39,代码来源:WndClass.java

示例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);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:12,代码来源:WndJournal.java


注:本文中的com.watabou.noosa.BitmapText类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。