本文整理汇总了Java中com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite.Glowing方法的典型用法代码示例。如果您正苦于以下问题:Java ItemSprite.Glowing方法的具体用法?Java ItemSprite.Glowing怎么用?Java ItemSprite.Glowing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite
的用法示例。
在下文中一共展示了ItemSprite.Glowing方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fillFields
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
private void fillFields( int image, ItemSprite.Glowing glowing, int titleColor, String title, String info ) {
IconTitle titlebar = new IconTitle();
titlebar.icon( new ItemSprite( image, glowing ) );
titlebar.label( Utils.capitalize( title ), titleColor );
titlebar.setRect( 0, 0, WIDTH, 0 );
add( titlebar );
BitmapTextMultiline txtInfo = PixelScene.createMultiline( info, 6 );
txtInfo.maxWidth = WIDTH;
txtInfo.measure();
txtInfo.x = titlebar.left();
txtInfo.y = titlebar.bottom() + GAP;
add( txtInfo );
resize( WIDTH, (int)(txtInfo.y + txtInfo.height()) );
}
示例2: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
public ItemSprite.Glowing glowing() {
return (type == Type.HEAP || type == Type.FOR_SALE) && items.size() > 0 ? items.peek().glowing() : null;
}
示例3: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return glyph != null ? glyph.glowing() : null;
}
示例4: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
public ItemSprite.Glowing glowing() {
return null;
}
示例5: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return potionGlow;
}
示例6: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return enchantment != null ? enchantment.glowing() : null;
}
示例7: imbuePotion
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
public Item imbuePotion(Potion potion){
potionAttrib = potion;
potionAttrib.ownedByFruit = true;
potionAttrib.image = ItemSpriteSheet.BLANDFRUIT;
if (potionAttrib instanceof PotionOfHealing){
name = Messages.get(this, "sunfruit");
potionGlow = new ItemSprite.Glowing( 0x2EE62E );
} else if (potionAttrib instanceof PotionOfStrength){
name = Messages.get(this, "rotfruit");
potionGlow = new ItemSprite.Glowing( 0xCC0022 );
} else if (potionAttrib instanceof PotionOfParalyticGas){
name = Messages.get(this, "earthfruit");
potionGlow = new ItemSprite.Glowing( 0x67583D );
} else if (potionAttrib instanceof PotionOfInvisibility){
name = Messages.get(this, "blindfruit");
potionGlow = new ItemSprite.Glowing( 0xE5D273 );
} else if (potionAttrib instanceof PotionOfLiquidFlame){
name = Messages.get(this, "firefruit");
potionGlow = new ItemSprite.Glowing( 0xFF7F00 );
} else if (potionAttrib instanceof PotionOfFrost){
name = Messages.get(this, "icefruit");
potionGlow = new ItemSprite.Glowing( 0x66B3FF );
} else if (potionAttrib instanceof PotionOfMindVision){
name = Messages.get(this, "fadefruit");
potionGlow = new ItemSprite.Glowing( 0xB8E6CF );
} else if (potionAttrib instanceof PotionOfToxicGas){
name = Messages.get(this, "sorrowfruit");
potionGlow = new ItemSprite.Glowing( 0xA15CE5 );
} else if (potionAttrib instanceof PotionOfLevitation) {
name = Messages.get(this, "stormfruit");
potionGlow = new ItemSprite.Glowing( 0x1C3A57 );
} else if (potionAttrib instanceof PotionOfPurity) {
name = Messages.get(this, "dreamfruit");
potionGlow = new ItemSprite.Glowing( 0x8E2975 );
} else if (potionAttrib instanceof PotionOfExperience) {
name = Messages.get(this, "starfruit");
potionGlow = new ItemSprite.Glowing( 0xA79400 );
}
return this;
}
示例8: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return YELLOW;
}
示例9: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return BLACK;
}
示例10: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return potionGlow;
}
示例11: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return GREEN;
}
示例12: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return WHITE;
}
示例13: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return GREY;
}
示例14: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return fuse != null ? new ItemSprite.Glowing( 0xFF0000, 0.6f) : null;
}
示例15: glowing
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; //导入方法依赖的package包/类
@Override
public ItemSprite.Glowing glowing() {
return BLUE;
}