Example usage for Java com.badlogic.gdx.scenes.scene2d.ui Skin fields, constructors, methods, implement or subclass
The text is from its open source code.
Skin(FileHandle skinFile) Creates a skin containing the resources in the specified skin JSON file. | |
Skin(TextureAtlas atlas) Creates a skin containing the texture regions from the specified atlas. | |
Skin(FileHandle skinFile, TextureAtlas atlas) Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas. | |
Skin() Creates an empty skin. |
void | add(String name, Object resource) |
void | add(String name, Object resource, Class type) |
void | addRegions(TextureAtlas atlas) Adds all named texture regions from the atlas. |
String | find(Object resource) Returns the name of the specified style object, or null if it is not in the skin. |
T | get(String name, Class |
T | get(Class |
ObjectMap | getAll(Class Returns the name to resource mapping for the specified type, or null if no resources of that type exist. |
TextureAtlas | getAtlas() Returns the TextureAtlas that resources in this skin reference, or null. |
Color | getColor(String name) |
Drawable | getDrawable(String name) Returns a registered drawable. |
BitmapFont | getFont(String name) |
TextureRegion | getRegion(String name) Returns a registered texture region. |
TiledDrawable | getTiledDrawable(String name) Returns a registered tiled drawable. |
void | load(FileHandle skinFile) Adds all resources in the specified skin JSON file. |
Drawable | newDrawable(String name, Color tint) Returns a tinted copy of a drawable found in the skin via #getDrawable(String) . |
Drawable | newDrawable(Drawable drawable, Color tint) Returns a tinted copy of a drawable found in the skin via #getDrawable(String) . |
T | optional(String name, Class |