@Override protected void createChildren() { texture = TextureCache.get( Assets.BUFFS_SMALL ); film = new TextureFilm( texture, SIZE, SIZE ); }
public static TextureFilm tiers() { if (tiers == null) { SmartTexture texture = TextureCache.get( Assets.ROGUE ); tiers = new TextureFilm( texture, texture.width, FRAME_HEIGHT ); } return tiers; }
public static int pick( int index, int x, int y ) { SmartTexture tx = TextureCache.get( Assets.ITEMS ); int rows = tx.width / SIZE; int row = index / rows; int col = index % rows; return tx.getPixel( col * SIZE + x, row * SIZE + y ); }
public TextureFilm( Object tx ) { texture = TextureCache.get( tx ); texWidth = texture.width; texHeight = texture.height; add( null, FULL ); }
@Override protected void createChildren() { texture = TextureCache.get( Assets.BUFFS_SMALL ); film = new TextureFilm( texture, SIZE, SIZE ); }
@Override protected void createChildren() { texture = TextureCache.get( Assets.BUFFS_SMALL ); film = new TextureFilm( texture, SIZE, SIZE ); }
public static TextureFilm tiers() { if (tiers == null) { SmartTexture texture = TextureCache.get( Assets.ROGUE ); tiers = new TextureFilm( texture, texture.width, FRAME_HEIGHT ); } return tiers; }
public static TextureFilm tiers() { if (tiers == null) { SmartTexture texture = TextureCache.get( Assets.BRIGAND ); tiers = new TextureFilm( texture, texture.width, FRAME_HEIGHT ); } return tiers; }
public static int pick( int index, int x, int y ) { SmartTexture tx = TextureCache.get( Assets.ITEMS ); int rows = tx.width / SIZE; int row = index / rows; int col = index % rows; return tx.getPixel( col * SIZE + x, row * SIZE + y ); }
public TextureFilm( Object tx ) { SmartTexture texture = TextureCache.get( tx ); texWidth = texture.width; texHeight = texture.height; add( null, FULL ); }
public static int pick( int index, int x, int y ) { Bitmap bmp = TextureCache.get( Assets.ITEMS ).bitmap; int rows = bmp.getWidth() / SIZE; int row = index / rows; int col = index % rows; return bmp.getPixel( col * SIZE + x, row * SIZE + y ); }
public static Font colorMarked( Bitmap bmp, int color, String chars ) { Font font = new Font( TextureCache.get( bmp ) ); font.splitBy( bmp, bmp.getHeight(), color, chars ); return font; }
public static Font colorMarked( Bitmap bmp, int color, String chars ) { Font font = new Font( TextureCache.get( bmp ) ); font.splitBy( bmp, bmp.getHeight(), color, chars ); return font; }
public static Font colorMarked( Bitmap bmp, int height, int color, String chars ) { Font font = new Font( TextureCache.get( bmp ) ); font.splitBy( bmp, height, color, chars ); return font; }
public static Font colorMarked( Bitmap bmp, int height, int color, String chars ) { Font font = new Font( TextureCache.get( bmp ) ); font.splitBy( bmp, height, color, chars ); return font; }
public void texture( Object tx ) { texture = tx instanceof SmartTexture ? (SmartTexture)tx : TextureCache.get( tx ); frame( new RectF( 0, 0, 1, 1 ) ); }
public static Font colorMarked( Pixmap bmp, int color, String chars ) { Font font = new Font( TextureCache.get( bmp ) ); font.splitBy( bmp, bmp.getHeight(), color, chars ); return font; }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }