|
Skin | build (String filename) |
| Build skin using filename. More...
|
|
void | buildSkin () |
| Build skin. More...
|
|
void | addTexture (String name) |
| Add texture. More...
|
|
void | addPropertyValue (int texture, String type, String texCoordSet, String renderable, float value) |
| Add value texture property. More...
|
|
void | addPropertyColor (int texture, String type, String texCoordSet, String renderable, Color color) |
| Add color texture property. More...
|
|
void | addPropertyImage (int texture, String type, String texCoordSet, String renderable, String pathImage, Image image) |
| Add image texture property. More...
|
|
void | addPropertyVideo (int texture, String type, String texCoordSet, String renderable, String pathVideo, Video video, bool sharedTime) |
| Add video texture property. More...
|
|
void | addPropertyConstructed (int texture, String type, String texCoordSet, String renderable, Color color, bool tileX, bool tileY, Point3 size) |
| Add constructed texture property. More...
|
|
void | addPropertyMapped (int texture, String type, String texCoordSet, String renderable, CurveBezier redCurve, SkinPropertyMappedInputType redInputType, Vector2 redInputRange, bool redInputClamped, String redBone, CurveBezier greenCurve, SkinPropertyMappedInputType greenInputType, Vector2 greenInputRange, bool greenInputClamped, String greenBone, CurveBezier blueCurve, SkinPropertyMappedInputType blueInputType, Vector2 blueInputRange, bool blueInputClamped, String blueBone, CurveBezier alphaCurve, SkinPropertyMappedInputType alphaInputType, Vector2 alphaInputRange, bool alphaInputClamped, String alphaBone) |
| Add mapped texture property. More...
|
|
void | addPropertyMapped (int texture, String type, String texCoordSet, String renderable, int red, int green, int blue, int alpha) |
| Add mapped texture property. More...
|
|
void | setPropertyBone (int texture, int property, String bone) |
| Set bone name of texture property. More...
|
|
void | constructedOpenContent (int texture, int property) |
| Open constructed property content node. More...
|
|
void | addNodeImage (Point3 position, Point3 size, float rotation, float shear, float brightness, float contrast, float gamma, Color colorize, float transparency, SkinPropertyNodeCombineMode combineMode, String path, Image image, Point repeat) |
| Add image node to open node. More...
|
|
void | addNodeText (Point3 position, Point3 size, float rotation, float shear, float brightness, float contrast, float gamma, Color colorize, float transparency, SkinPropertyNodeCombineMode combineMode, String path, Font font, float fontSize, String text, Color color) |
| Add text node to open node. More...
|
|
void | addNodeShape (Point3 position, Point3 size, float rotation, float shear, float brightness, float contrast, float gamma, Color colorize, float transparency, SkinPropertyNodeCombineMode combineMode, int shapeType, Color fillColor, Color lineColor, float thickness) |
| Add shape node to open node. More...
|
|
void | addNodeGroup (Point3 position, Point3 size, float rotation, float shear, float brightness, float contrast, float gamma, Color colorize, float transparency, SkinPropertyNodeCombineMode combineMode) |
| Add group node to open node. More...
|
|
void | nextNodeAsMask () |
| Set the next node created using addNode*() call as node mask. More...
|
|
void | closeNode () |
| Close open node. More...
|
|
Skin builder.
Builds skin resource without requiring a skin resource file. The created skin can either be unnamed (if filename is empty string) or named (if filename is not empty string). Named skins can not clash with filenames present in the virtual file system. For this reason use unnamed skins if possible. Using named skins though can be useful if you want to provide skin resources to scripts not needing to know if the path they try to load is a build skin instead of a resource one.
To use the skin builder create a subclass and implement SkinBuilder.buildSkin() . You are only allowed to call methods from SkinBuilder from inside this function call. To create the skin call SkinBuilder.build() . This will call SkinBuilder.buildSkin() to fill a new skin resource with content. Once finished the build method returns the ready to use skin resource. Otherwise an exception is thrown.
This is a native class.