|
Drag[en]gine Script Module DragonScript 1.35
|
Image 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. | |
| void | failedLoading (String filename, ResourceLoaderType resourceType) |
| Resource failed loading. | |
| void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
| Resource has finished loading. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| Image | getImage () |
| Image resource or null if not present. | |
| Image | getImage (StubWithProperties stub, ElementClass eclass) |
| Image modified by stub property if present. | |
| String | getPath () |
| Path to image resource. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| ECPImage | new (String name) |
| Create property. | |
| ECPImage | new (String name, String path) |
| Create property with initial path. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
| void | setImage (Image image) |
| Set image resource or null if not present. | |
| void | setPath (String path) |
| Set path to image resource. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| String | getName () |
| Name. | |
| Public Member Functions inherited from Dragengine.ResourceListener | |
Image resource element class property for use with XML loading.
Image 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.ECPImage.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property ) |
Copy value from another element class property of the same type.
References getHasPreloaded().
Referenced by logPreloadProblems().
| void Dragengine.Scenery.ECPImage.failedLoading | ( | String | filename, |
| ResourceLoaderType | resourceType ) |
Resource failed loading.
Implements Dragengine.ResourceListener.
References preloadResources().
Referenced by getImage().
| void Dragengine.Scenery.ECPImage.finishedLoading | ( | String | path, |
| ResourceLoaderType | resourceType, | ||
| Object | resource ) |
Resource has finished loading.
Implements Dragengine.ResourceListener.
References getPath().
Referenced by getImage().
| bool Dragengine.Scenery.ECPImage.getHasPreloaded | ( | ) |
| Image Dragengine.Scenery.ECPImage.getImage | ( | ) |
Image resource or null if not present.
References setPath().
Referenced by getHasPreloaded(), and getImage().
| Image Dragengine.Scenery.ECPImage.getImage | ( | StubWithProperties | stub, |
| ElementClass | eclass ) |
Image modified by stub property if present.
If named stub property is not present or empty string the stored image is returned. If the named stub property is present it is loaded as image resource.
References failedLoading(), finishedLoading(), getImage(), logPreloadProblems(), and new().
| String Dragengine.Scenery.ECPImage.getPath | ( | ) |
Path to image resource.
Referenced by finishedLoading(), and setPath().
| bool Dragengine.Scenery.ECPImage.logPreloadProblems | ( | ElementClass | elementClass, |
| Console | console ) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References copyValue().
Referenced by getImage().
| ECPImage Dragengine.Scenery.ECPImage.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References new().
Referenced by getImage(), new(), and new().
| ECPImage Dragengine.Scenery.ECPImage.new | ( | String | name, |
| String | path ) |
Create property with initial path.
References new().
| void Dragengine.Scenery.ECPImage.preloadResources | ( | ElementClass | elementClass, |
| PreloadCounter | counter ) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setValue().
Referenced by failedLoading().
| void Dragengine.Scenery.ECPImage.setImage | ( | Image | image | ) |
Set image resource or null if not present.
Referenced by setValue().
| void Dragengine.Scenery.ECPImage.setPath | ( | String | path | ) |
| void Dragengine.Scenery.ECPImage.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setImage().
Referenced by preloadResources().