Drag[en]gine Script Module DragonScript
1.23
|
Construct dynamic skin item. More...
Public Member Functions | |
void | forEachProperty (Block ablock) |
Visit properties with block with parameter ConstructedDynamicSkinProperty. More... | |
ColorMatrix | getColorTransform () |
Color transform to use for generated canvas elements. More... | |
Image | getImageMask () |
Mask image to use or null. More... | |
float | getOrder () |
Order to use for generated canvas elements. More... | |
Point | getPosition () |
Position to use for generated canvas elements. More... | |
ConstructedDynamicSkinProperty | getPropertyAt (int index) |
Property at index. More... | |
int | getPropertyCount () |
Number of properties. More... | |
ConstructedDynamicSkinProperty | getPropertyNamed (String name) |
Named property or null if absent. More... | |
Point | getSize () |
Size to use for generated canvas elements. More... | |
TexMatrix2 | getTransform () |
Transformation to use for generated canvas elements. More... | |
float | getTransparency () |
Transparency to use for generated canvas elements. More... | |
ConstructedDynamicSkinItem | new () |
Create constructed dynamic skin item. More... | |
void | removeAllProperties () |
Remove properties. More... | |
void | setColorTransform (ColorMatrix transform) |
Set color transform to use for generated canvas elements. More... | |
void | setImageMask (Image image) |
Set mask image to use or null. More... | |
void | setOrder (float order) |
Set order to use for generated canvas elements. More... | |
void | setPosition (Point position) |
Set position to use for generated canvas elements. More... | |
void | setProperties (Skin skin, int texture) |
Set properties from skin texture properties. More... | |
void | setSize (Point size) |
Set size to use for generated canvas elements. More... | |
void | setTransform (TexMatrix2 transform) |
Set transformation to use for generated canvas elements. More... | |
void | setTransparency (float transparency) |
Set transparency to use for generated canvas elements. More... | |
Construct dynamic skin item.
Defines a set of images to modify texture property with inside a ConstructedDynamicSkin. The order value is used to apply item canvas in the correct order.
void Dragengine.Utils.ConstructedDynamicSkinItem.forEachProperty | ( | Block | ablock | ) |
Visit properties with block with parameter ConstructedDynamicSkinProperty.
ColorMatrix Dragengine.Utils.ConstructedDynamicSkinItem.getColorTransform | ( | ) |
Color transform to use for generated canvas elements.
Image Dragengine.Utils.ConstructedDynamicSkinItem.getImageMask | ( | ) |
Mask image to use or null.
float Dragengine.Utils.ConstructedDynamicSkinItem.getOrder | ( | ) |
Order to use for generated canvas elements.
Point Dragengine.Utils.ConstructedDynamicSkinItem.getPosition | ( | ) |
Position to use for generated canvas elements.
ConstructedDynamicSkinProperty Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyAt | ( | int | index | ) |
Property at index.
int Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyCount | ( | ) |
Number of properties.
ConstructedDynamicSkinProperty Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyNamed | ( | String | name | ) |
Named property or null if absent.
Point Dragengine.Utils.ConstructedDynamicSkinItem.getSize | ( | ) |
Size to use for generated canvas elements.
TexMatrix2 Dragengine.Utils.ConstructedDynamicSkinItem.getTransform | ( | ) |
Transformation to use for generated canvas elements.
float Dragengine.Utils.ConstructedDynamicSkinItem.getTransparency | ( | ) |
Transparency to use for generated canvas elements.
ConstructedDynamicSkinItem Dragengine.Utils.ConstructedDynamicSkinItem.new | ( | ) |
Create constructed dynamic skin item.
void Dragengine.Utils.ConstructedDynamicSkinItem.removeAllProperties | ( | ) |
Remove properties.
void Dragengine.Utils.ConstructedDynamicSkinItem.setColorTransform | ( | ColorMatrix | transform | ) |
Set color transform to use for generated canvas elements.
void Dragengine.Utils.ConstructedDynamicSkinItem.setImageMask | ( | Image | image | ) |
Set mask image to use or null.
void Dragengine.Utils.ConstructedDynamicSkinItem.setOrder | ( | float | order | ) |
Set order to use for generated canvas elements.
void Dragengine.Utils.ConstructedDynamicSkinItem.setPosition | ( | Point | position | ) |
Set position to use for generated canvas elements.
void Dragengine.Utils.ConstructedDynamicSkinItem.setProperties | ( | Skin | skin, |
int | texture | ||
) |
Set properties from skin texture properties.
Removes all properties then adds a one property for each property defined in skin texture. Supported are properties of type value, color and image. Not supported properties are ignored.
void Dragengine.Utils.ConstructedDynamicSkinItem.setSize | ( | Point | size | ) |
Set size to use for generated canvas elements.
void Dragengine.Utils.ConstructedDynamicSkinItem.setTransform | ( | TexMatrix2 | transform | ) |
Set transformation to use for generated canvas elements.
void Dragengine.Utils.ConstructedDynamicSkinItem.setTransparency | ( | float | transparency | ) |
Set transparency to use for generated canvas elements.