public synchronized void hardlight(int color){ this.color = color; for (RenderedText word : words) { if (word != null) word.hardlight( color ); } }
public void textColor( int value ) { text.hardlight( value ); }
public void hardlight( int color ){ title.hardlight( color ); }
public void textColor( int value ) { text.hardlight( value ); }
public void hardlight( int color ){ title.hardlight( color ); }
if (str.startsWith(UNDERSCORE) && str.endsWith(UNDERSCORE)){ word = new RenderedText(str.substring(1, str.length()-1), size); word.hardlight(0xFFFF44); } else { if (str.startsWith(UNDERSCORE)){ word = new RenderedText(str, size); if (highlighting) word.hardlight(0xFFFF44); else if (color != -1) word.hardlight(color);
title.hardlight(Window.TITLE_COLOR); title.x = (w - title.width()) / 2f; title.y = (top - title.baseLine()) / 2f;
public MobTitle( Mob mob ) { name = PixelScene.renderText( Messages.titleCase( mob.name ), 9 ); name.hardlight( TITLE_COLOR ); add( name ); image = mob.sprite(); add( image ); health = new HealthBar(); health.level(mob); add( health ); buffs = new BuffIndicator( mob ); add( buffs ); }
title.hardlight(Window.TITLE_COLOR); title.x = (w - title.width()) / 2f; title.y = (top - title.baseLine()) / 2f;
public MobTitle( Mob mob ) { name = PixelScene.renderText( Messages.titleCase( mob.name ), 9 ); name.hardlight( TITLE_COLOR ); add( name ); image = mob.sprite(); add( image ); health = new HealthBar(); health.level(mob); add( health ); buffs = new BuffIndicator( mob ); add( buffs ); }
title.hardlight( TITLE_COLOR ); title.x = (WIDTH - title.width()) / 2; title.y = (TTL_HEIGHT - title.height()) / 2;
title.hardlight( TITLE_COLOR ); title.x = (WIDTH - title.width()) / 2; title.y = (TTL_HEIGHT - title.height()) / 2;
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); }
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); }
title.hardlight(Window.TITLE_COLOR); title.x = (w - title.width()) / 2f; title.y = (16 - title.baseLine()) / 2f;
} else { btnCombine.enable(false); energyCost.hardlight(1, 0, 0);
title.hardlight(Window.TITLE_COLOR); title.x = (w - title.width()) / 2f; title.y = (16 - title.baseLine()) / 2f;
} else { btnCombine.enable(false); energyCost.hardlight(1, 0, 0);
name.hardlight(Window.TITLE_COLOR); depth.hardlight(Window.TITLE_COLOR); level.hardlight(Window.TITLE_COLOR);
name.hardlight(Window.TITLE_COLOR); depth.hardlight(Window.TITLE_COLOR); level.hardlight(Window.TITLE_COLOR);