public static NinePatch get( Type type ) { switch (type) { case WINDOW: return new NinePatch( Assets.CHROME, 0, 0, 22, 22, 7 ); case TOAST: return new NinePatch( Assets.CHROME, 22, 0, 18, 18, 5 ); case TOAST_TR: return new NinePatch( Assets.CHROME, 40, 0, 18, 18, 5 ); case BUTTON: return new NinePatch( Assets.CHROME, 58, 0, 4, 4, 1 ); case TAG_RIGHT: return new NinePatch( Assets.CHROME, 22, 18, 16, 14, 3 ); case TAG_LEFT: return new NinePatch( Assets.CHROME, 39, 18, 16, 14, 3 ); case SCROLL: return new NinePatch( Assets.CHROME, 32, 32, 32, 32, 5, 11, 5, 11 ); case TAB_SET: return new NinePatch( Assets.CHROME, 64, 0, 22, 22, 7, 7, 7, 7 ); case TAB_SELECTED: return new NinePatch( Assets.CHROME, 64, 22, 10, 14, 4, 7, 4, 6 ); case TAB_UNSELECTED: return new NinePatch( Assets.CHROME, 74, 22, 10, 14, 4, 7, 4, 6 ); default: return null; } } }
public static NinePatch get( Type type ) { String Asset = Assets.CHROME; switch (type) { case WINDOW: return new NinePatch( Asset, 0, 0, 20, 20, 6 ); case TOAST: return new NinePatch( Asset, 22, 0, 18, 18, 5 ); case TOAST_TR: return new NinePatch( Asset, 40, 0, 18, 18, 5 ); case BUTTON: return new NinePatch( Asset, 58, 0, 6, 6, 2 ); case TAG: return new NinePatch( Asset, 22, 18, 16, 14, 3 ); case GEM: return new NinePatch( Asset, 0, 32, 32, 32, 13 ); case SCROLL: return new NinePatch( Asset, 32, 32, 32, 32, 5, 11, 5, 11 ); case TAB_SET: return new NinePatch( Asset, 64, 0, 20, 20, 6 ); case TAB_SELECTED: return new NinePatch( Asset, 65, 22, 8, 13, 3, 7, 3, 5 ); case TAB_UNSELECTED: return new NinePatch( Asset, 75, 22, 8, 13, 3, 7, 3, 5 ); default: return null; } } }
public static NinePatch get( Type type ) { String Asset = Assets.CHROME; switch (type) { case WINDOW: return new NinePatch( Asset, 0, 0, 20, 20, 6 ); case TOAST: return new NinePatch( Asset, 22, 0, 18, 18, 5 ); case TOAST_TR: return new NinePatch( Asset, 40, 0, 18, 18, 5 ); case BUTTON: return new NinePatch( Asset, 58, 0, 6, 6, 2 ); case TAG: return new NinePatch( Asset, 22, 18, 16, 14, 3 ); case GEM: return new NinePatch( Asset, 0, 32, 32, 32, 13 ); case SCROLL: return new NinePatch( Asset, 32, 32, 32, 32, 5, 11, 5, 11 ); case TAB_SET: return new NinePatch( Asset, 64, 0, 20, 20, 6 ); case TAB_SELECTED: return new NinePatch( Asset, 65, 22, 8, 13, 3, 7, 3, 5 ); case TAB_UNSELECTED: return new NinePatch( Asset, 75, 22, 8, 13, 3, 7, 3, 5 ); default: return null; } } }
@Override protected void createChildren() { bg = new NinePatch( Assets.STATUS, 0, 0, 128, 36, 85, 0, 45, 0 ); add( bg );
@Override protected void createChildren() { bg = new NinePatch( Assets.STATUS, 0, 0, 128, 36, 85, 0, 45, 0 ); add( bg );
@Override protected void createChildren() { shield = new NinePatch( Assets.STATUS, 80, 0, 48, 0 ); add( shield );