Drag[en]gine Script Module DragonScript
1.23
|
Skin resource element class property for use with XML loading. More...
Public Member Functions | |
void | copyValue (ElementClass elementClass, ElementClassProperty property) |
Copy value from another element class property of the same type. More... | |
void | failedLoading (String path, ResourceLoaderType resourceType) |
Resource failed loading. More... | |
void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
Resource has finished loading. More... | |
bool | getHasPreloaded () |
Property has been preloaded. More... | |
String | getPath () |
Path to skin resource. More... | |
Skin | getSkin () |
Skin resource or null if not present. More... | |
Skin | getSkin (StubWithProperties stub, ElementClass eclass) |
Skin modified by stub property if present. More... | |
bool | logPreloadProblems (ElementClass elementClass, Console console) |
Log preloading problems. More... | |
ECPSkin | new (String name) |
Create property. More... | |
ECPSkin | new (String name, String path) |
Create property with initial path. More... | |
void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
Preload resources if supported. More... | |
void | setPath (String path) |
Set path to skin resource. More... | |
void | setSkin (Skin skin) |
Set skin resource or null if not present. More... | |
void | setValue (Object value) |
Set value of property from XML decoded value. More... | |
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
void | dispose () |
Dispose of element class property to break reference loops. More... | |
String | getName () |
Name. More... | |
Notification |
Skin resource element class property for use with XML loading.
Skin resource is set from XML using a path. Loads the resource during preloading. The value of the property is then the loaded resource. If loading fails null resource is stored.
void Dragengine.Scenery.ECPSkin.copyValue | ( | ElementClass | elementClass, |
ElementClassProperty | property | ||
) |
Copy value from another element class property of the same type.
void Dragengine.Scenery.ECPSkin.failedLoading | ( | String | path, |
ResourceLoaderType | resourceType | ||
) |
Resource failed loading.
Implements Dragengine.ResourceListener.
void Dragengine.Scenery.ECPSkin.finishedLoading | ( | String | path, |
ResourceLoaderType | resourceType, | ||
Object | resource | ||
) |
Resource has finished loading.
Implements Dragengine.ResourceListener.
bool Dragengine.Scenery.ECPSkin.getHasPreloaded | ( | ) |
Property has been preloaded.
String Dragengine.Scenery.ECPSkin.getPath | ( | ) |
Path to skin resource.
Skin Dragengine.Scenery.ECPSkin.getSkin | ( | StubWithProperties | stub, |
ElementClass | eclass | ||
) |
Skin modified by stub property if present.
If named stub property is not present or empty string the stored skin is returned. If the named stub property is present it is loaded as skin resource.
bool Dragengine.Scenery.ECPSkin.logPreloadProblems | ( | ElementClass | elementClass, |
Console | console | ||
) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPSkin Dragengine.Scenery.ECPSkin.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPSkin Dragengine.Scenery.ECPSkin.new | ( | String | name, |
String | path | ||
) |
Create property with initial path.
void Dragengine.Scenery.ECPSkin.preloadResources | ( | ElementClass | elementClass, |
PreloadCounter | counter | ||
) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPSkin.setPath | ( | String | path | ) |
Set path to skin resource.
void Dragengine.Scenery.ECPSkin.setSkin | ( | Skin | skin | ) |
Set skin resource or null if not present.
void Dragengine.Scenery.ECPSkin.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.