public void frame( int x, int y, int width, int height) { base.frame( x, y, width, height ); this.width = width; this.height = height; }
public void frame( int x, int y, int width, int height) { base.frame( x, y, width, height ); this.width = width; this.height = height; }
@Override public void frame( RectF frame ) { scaleX = 1; scaleY = 1; offsetX = 0; offsetY = 0; super.frame( new RectF( 0, 0, 1, 1 ) ); }
public IconTab( Image icon ){ super(); this.icon.copy(icon); this.defaultFrame = icon.frame(); }
public static Image tile( int index ) { Image img = new Image( instance.texture ); img.frame( instance.tileset.get( index ) ); return img; }
public static Image tile(int pos, int tile ) { Image img = new Image( instance.texture ); img.frame( instance.tileset.get( instance.getTileVisual( pos, tile, true ) ) ); return img; }
public Image image(int tileX, int tileY){ if (!needsRender(tileX + mapWidth*tileY)){ return null; } else { Image img = new Image(texture); img.frame(tileset.get(data[tileX + mapWidth * tileY])); return img; } }
public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
public static Image tile(int pos, int tile ) { RectF uv = instance.tileset.get( instance.getTileVisual( pos, tile, true ) ); if (uv == null) return null; Image img = new Image( instance.texture ); img.frame(uv); return img; }
public DashboardItem( String text, int index ) { super(); image.frame( image.texture.uvRect( index * IMAGE_SIZE, 0, (index + 1) * IMAGE_SIZE, IMAGE_SIZE ) ); this.label.text( text ); setSize( SIZE, SIZE ); }
public DashboardItem( String text, int index ) { super(); image.frame( image.texture.uvRect( index * IMAGE_SIZE, 0, (index + 1) * IMAGE_SIZE, IMAGE_SIZE ) ); this.label.text( text ); setSize( SIZE, SIZE ); }
public Image image(int tileX, int tileY){ if (!needsRender(tileX + mapWidth*tileY)){ return null; } else { Image img = new Image(texture); img.frame(tileset.get(data[tileX + mapWidth * tileY])); return img; } }
public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
public BuffIcon( Buff buff ){ super(); this.buff = buff; icon = new Image( texture ); icon.frame( film.get( buff.icon() ) ); add( icon ); }
public DashboardItem( String text, int index ) { super(); image.frame( image.texture.uvRect( index * IMAGE_SIZE, 0, (index + 1) * IMAGE_SIZE, IMAGE_SIZE ) ); this.label.text( text ); this.label.measure(); setSize( SIZE, SIZE ); }
public BuffIcon( Buff buff ){ super(); this.buff = buff; icon = new Image( texture ); icon.frame( film.get( buff.icon() ) ); add( icon ); }
public static Image avatar( HeroClass cl, int armorTier ) { RectF patch = tiers().get( armorTier ); Image avatar = new Image( cl.spritesheet() ); RectF frame = avatar.texture.uvRect( 1, 0, FRAME_WIDTH, FRAME_HEIGHT ); frame.shift( patch.left, patch.top ); avatar.frame( frame ); return avatar; } }
public static Image avatar( HeroClass cl, int armorTier ) { RectF patch = tiers().get( armorTier ); Image avatar = new Image( cl.spritesheet() ); RectF frame = avatar.texture.uvRect( 1, 0, FRAME_WIDTH, FRAME_HEIGHT ); frame.shift( patch.left, patch.top ); avatar.frame( frame ); return avatar; } }
public static Image avatar( HeroClass cl, int armorTier ) { RectF patch = tiers().get( armorTier ); Image avatar = new Image( cl.spritesheet() ); RectF frame = avatar.texture.uvRect( 1, 0, FRAME_WIDTH, FRAME_HEIGHT ); frame.offset( patch.left, patch.top ); avatar.frame( frame ); return avatar; } }