Drag[en]gine Script Module DragonScript  1.23
Dragengine.Utils.ConstructedDynamicSkinItem Class Reference

Construct dynamic skin item. More...

Inheritance diagram for Dragengine.Utils.ConstructedDynamicSkinItem:

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...
 

Detailed Description

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.

Member Function Documentation

◆ forEachProperty()

void Dragengine.Utils.ConstructedDynamicSkinItem.forEachProperty ( Block  ablock)

Visit properties with block with parameter ConstructedDynamicSkinProperty.

◆ getColorTransform()

ColorMatrix Dragengine.Utils.ConstructedDynamicSkinItem.getColorTransform ( )

Color transform to use for generated canvas elements.

◆ getImageMask()

Image Dragengine.Utils.ConstructedDynamicSkinItem.getImageMask ( )

Mask image to use or null.

◆ getOrder()

float Dragengine.Utils.ConstructedDynamicSkinItem.getOrder ( )

Order to use for generated canvas elements.

◆ getPosition()

Point Dragengine.Utils.ConstructedDynamicSkinItem.getPosition ( )

Position to use for generated canvas elements.

◆ getPropertyAt()

ConstructedDynamicSkinProperty Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyAt ( int  index)

Property at index.

◆ getPropertyCount()

int Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyCount ( )

Number of properties.

◆ getPropertyNamed()

ConstructedDynamicSkinProperty Dragengine.Utils.ConstructedDynamicSkinItem.getPropertyNamed ( String  name)

Named property or null if absent.

◆ getSize()

Point Dragengine.Utils.ConstructedDynamicSkinItem.getSize ( )

Size to use for generated canvas elements.

◆ getTransform()

TexMatrix2 Dragengine.Utils.ConstructedDynamicSkinItem.getTransform ( )

Transformation to use for generated canvas elements.

◆ getTransparency()

float Dragengine.Utils.ConstructedDynamicSkinItem.getTransparency ( )

Transparency to use for generated canvas elements.

◆ new()

ConstructedDynamicSkinItem Dragengine.Utils.ConstructedDynamicSkinItem.new ( )

Create constructed dynamic skin item.

◆ removeAllProperties()

void Dragengine.Utils.ConstructedDynamicSkinItem.removeAllProperties ( )

Remove properties.

◆ setColorTransform()

void Dragengine.Utils.ConstructedDynamicSkinItem.setColorTransform ( ColorMatrix  transform)

Set color transform to use for generated canvas elements.

◆ setImageMask()

void Dragengine.Utils.ConstructedDynamicSkinItem.setImageMask ( Image  image)

Set mask image to use or null.

◆ setOrder()

void Dragengine.Utils.ConstructedDynamicSkinItem.setOrder ( float  order)

Set order to use for generated canvas elements.

◆ setPosition()

void Dragengine.Utils.ConstructedDynamicSkinItem.setPosition ( Point  position)

Set position to use for generated canvas elements.

◆ setProperties()

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.

◆ setSize()

void Dragengine.Utils.ConstructedDynamicSkinItem.setSize ( Point  size)

Set size to use for generated canvas elements.

◆ setTransform()

void Dragengine.Utils.ConstructedDynamicSkinItem.setTransform ( TexMatrix2  transform)

Set transformation to use for generated canvas elements.

◆ setTransparency()

void Dragengine.Utils.ConstructedDynamicSkinItem.setTransparency ( float  transparency)

Set transparency to use for generated canvas elements.


The documentation for this class was generated from the following file: