Drag[en]gine Script Module DragonScript  1.23
Dragengine.Preloading.StubElementTexture Class Reference

Stub for element texture. More...

Inheritance diagram for Dragengine.Preloading.StubElementTexture:
Dragengine.Preloading.StubWithProperties Dragengine.ResourceListener

Public Member Functions

void failedLoading (String path, ResourceLoaderType resourceType)
 Resource has failed loading. More...
 
void finishedLoading (String path, ResourceLoaderType resourceType, Object resource)
 Resource has finished loading. More...
 
Color getColorTint ()
 Color tint or null to not replace the color tint. More...
 
String getPathSkin ()
 Skin path or null to not replace the skin. More...
 
Skin getSkin ()
 Skin. More...
 
String getTextureName ()
 Texture name. More...
 
TexMatrix2 getTransform ()
 Texture coordinates transformation or null to not replace the transformation. More...
 
void loadResources ()
 Load resources. More...
 
StubElementTexture new (String textureName)
 Create stub element texture. More...
 
StubElementTexture new (StubElementTexture stub)
 Create copy of stub element texture. More...
 
void preloadResources ()
 Add preload resources. More...
 
void setColorTint (Color color)
 Set color tint or null to not replace the color tint. More...
 
void setCounter (PreloadCounter counter)
 Set counter. More...
 
void setPathSkin (String pathSkin)
 Set skin path or null to not replace the skin. More...
 
void setTransform (TexMatrix2 transform)
 Set texture coordinates transformation or null to not replace the transformation. More...
 
bool verifyPreloading (StubElement element, Console console)
 Verify if a resource failed loading and print the problems to the console. More...
 
void writeToFile (FileWriter writer)
 Write stub to file. More...
 
- Public Member Functions inherited from Dragengine.Preloading.StubWithProperties
Dictionary getProperties ()
 Copy of all properties as dictionary mapping String key to String value. More...
 
bool getPropertyBoolFor (String key, bool default)
 Boolean property value or default value if absent. More...
 
int getPropertyCount ()
 Number of properties. More...
 
float getPropertyFloatFor (String key, float default)
 Floating point property value or default value if absent. More...
 
int getPropertyIntFor (String key, int default)
 Integer property value or default value if absent. More...
 
Array getPropertyKeys ()
 Property keys (String array). More...
 
String getPropertyValueFor (String key, String default)
 Value of property or default value if absent. More...
 
bool hasPropertyWithKey (String key)
 Property key is present. More...
 
StubWithProperties new ()
 Create stub with properties. More...
 
StubWithProperties new (StubWithProperties stub)
 Create copy of stub with properties. More...
 
void readPropertiesFromFile (FileReader reader)
 Read properties from file. More...
 
void removeAllProperties ()
 Remove all properties. More...
 
void removePropertyWithKey (String key)
 Remove property if present. More...
 
void setFrom (Dictionary properties)
 Set all properties from dictionary mapping String key to String value. More...
 
void setFrom (StubWithProperties properties)
 Set properties from another StubWithProperties. More...
 
void setPropertyBoolFor (String key, bool value)
 Set property. More...
 
void setPropertyFloatFor (String key, float value)
 Set property. More...
 
void setPropertyIntFor (String key, int value)
 Set property. More...
 
void setPropertyValueFor (String key, String value)
 Set property. More...
 
void writePropertiesToFile (FileWriter writer)
 Write properties to file. More...
 
Notification

Static Public Member Functions

static StubElementTexture readFromFile (FileReader reader)
 Read stub from file. More...
 

Additional Inherited Members

- Public Attributes inherited from Dragengine.Preloading.StubWithProperties
Dictionary pProperties
 Properties. More...
 

Detailed Description

Stub for element texture.

Used during asynchronous loading to hold the settings of a element texture until all resources have been loaded.

Member Function Documentation

◆ failedLoading()

void Dragengine.Preloading.StubElementTexture.failedLoading ( String  path,
ResourceLoaderType  resourceType 
)

Resource has failed loading.

Implements Dragengine.ResourceListener.

◆ finishedLoading()

void Dragengine.Preloading.StubElementTexture.finishedLoading ( String  path,
ResourceLoaderType  resourceType,
Object  resource 
)

Resource has finished loading.

Implements Dragengine.ResourceListener.

◆ getColorTint()

Color Dragengine.Preloading.StubElementTexture.getColorTint ( )

Color tint or null to not replace the color tint.

◆ getPathSkin()

String Dragengine.Preloading.StubElementTexture.getPathSkin ( )

Skin path or null to not replace the skin.

◆ getSkin()

Skin Dragengine.Preloading.StubElementTexture.getSkin ( )

Skin.

◆ getTextureName()

String Dragengine.Preloading.StubElementTexture.getTextureName ( )

Texture name.

◆ getTransform()

TexMatrix2 Dragengine.Preloading.StubElementTexture.getTransform ( )

Texture coordinates transformation or null to not replace the transformation.

◆ loadResources()

void Dragengine.Preloading.StubElementTexture.loadResources ( )

Load resources.

◆ new() [1/2]

StubElementTexture Dragengine.Preloading.StubElementTexture.new ( String  textureName)

Create stub element texture.

◆ new() [2/2]

StubElementTexture Dragengine.Preloading.StubElementTexture.new ( StubElementTexture  stub)

Create copy of stub element texture.

◆ preloadResources()

void Dragengine.Preloading.StubElementTexture.preloadResources ( )

Add preload resources.

◆ readFromFile()

static StubElementTexture Dragengine.Preloading.StubElementTexture.readFromFile ( FileReader  reader)
static

Read stub from file.

◆ setColorTint()

void Dragengine.Preloading.StubElementTexture.setColorTint ( Color  color)

Set color tint or null to not replace the color tint.

◆ setCounter()

void Dragengine.Preloading.StubElementTexture.setCounter ( PreloadCounter  counter)

Set counter.

◆ setPathSkin()

void Dragengine.Preloading.StubElementTexture.setPathSkin ( String  pathSkin)

Set skin path or null to not replace the skin.

◆ setTransform()

void Dragengine.Preloading.StubElementTexture.setTransform ( TexMatrix2  transform)

Set texture coordinates transformation or null to not replace the transformation.

◆ verifyPreloading()

bool Dragengine.Preloading.StubElementTexture.verifyPreloading ( StubElement  element,
Console  console 
)

Verify if a resource failed loading and print the problems to the console.

Returns
true if all resources loaded successfully.

◆ writeToFile()

void Dragengine.Preloading.StubElementTexture.writeToFile ( FileWriter  writer)

Write stub to file.


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