public SimpleButton( Image image ) { super(); this.image.copy( image ); width = image.width; height = image.height; }
public SimpleButton( Image image ) { super(); this.image.copy( image ); width = image.width; height = image.height; }
public SimpleButton( Image image ) { super(); this.image.copy( image ); width = image.width; height = image.height; }
public Image( Image src ) { this(); copy( src ); }
public Image( Image src ) { this(); copy( src ); }
public Image( Image src ) { this(); copy( src ); }
public void checked( boolean value ) { if (checked != value) { checked = value; icon.copy( Icons.get( checked ? Icons.CHECKED : Icons.UNCHECKED ) ); } }
public IconTab( Image icon ){ super(); this.icon.copy(icon); this.defaultFrame = icon.frame(); }
public IconTab( Image icon ){ super(); this.icon.copy(icon); this.defaultFrame = icon.frame(); }
public void checked( boolean value ) { if (checked != value) { checked = value; icon.copy( Icons.get( checked ? Icons.CHECKED : Icons.UNCHECKED ) ); } }
public void checked( boolean value ) { if (checked != value) { checked = value; icon.copy( Icons.get( checked ? Icons.CHECKED : Icons.UNCHECKED ) ); } }
public DifficultyButton( int d ) { super(); difficulty = d; image.copy( Icons.get( difficulty ) ); image.am = ( YetAnotherPixelDungeon.lastDifficulty() == difficulty ? 1.0f : 0.5f ); width = image.width; height = image.height; }
public ListItem( Badges.Badge badge ) { super(); this.badge = badge; icon.copy( BadgeBanner.image( badge.image )); label.text( badge.description ); }
public ListItem( Badges.Badge badge ) { super(); this.badge = badge; icon.copy( BadgeBanner.image( badge.image )); label.text( badge.desc() ); }
public ListItem( Badges.Badge badge ) { super(); this.badge = badge; icon.copy( BadgeBanner.image( badge.image )); label.text( badge.desc() ); }
@Override protected void layout() { super.layout(); icon.copy( Icons.get( bag.icon() ) ); icon.x = x + (width - icon.width) / 2; icon.y = y + (height - icon.height) / 2 + 1 - (selected ? 0 : 1); // if (!selected && icon.y < y + CUT) { // RectF frame = icon.frame(); // frame.top += (y + CUT - icon.y) / icon.texture.height; // icon.frame( frame ); // icon.y = y + CUT; // } } }
public ListItem( Image icon, String text, int d ) { super(); this.icon.copy(icon); label.text( text ); if (d >= 0) { depth.text(Integer.toString(d)); depth.measure(); if (d == Dungeon.depth) { label.hardlight(TITLE_COLOR); depth.hardlight(TITLE_COLOR); } } }
public ListItem( Image icon, String text, int d ) { super(); this.icon.copy(icon); label.text( text ); if (d >= 0) { depth.text(Integer.toString(d)); depth.measure(); if (d == Dungeon.depth) { label.hardlight(TITLE_COLOR); depth.hardlight(TITLE_COLOR); } } }
public ListItem( Image icon, String text, int d ) { super(); this.icon.copy(icon); label.text( text ); if (d >= 0) { depth.text(Integer.toString(d)); depth.measure(); if (d == Dungeon.depth) { label.hardlight(TITLE_COLOR); depth.hardlight(TITLE_COLOR); } } }
public ListItem( Image icon, String text, int d ) { super(); this.icon.copy(icon); label.text( text ); if (d >= 0) { depth.text(Integer.toString(d)); depth.measure(); if (d == Dungeon.depth) { label.hardlight(TITLE_COLOR); depth.hardlight(TITLE_COLOR); } } }