|
Drag[en]gine Script Module DragonScript 1.35
|
Dictionary of images element class property for use with XML loading. More...
Public Member Functions | |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| void | forEach (Block ablock) |
| Visit images with block with String id and Image value. | |
| Image | getAt (String id) |
| Image with identifier or null if absent. | |
| int | getCount () |
| Number of images. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| ECPImageMap | new (String name) |
| Create property. | |
| void | removeAll () |
| Remove all images. | |
| void | removeAllPath () |
| Remove all path. | |
| void | setAt (String id, Image image) |
| Set image for identifier. | |
| void | setPathAt (String id, String path) |
| Set path to load for identifier. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| String | getName () |
| Name. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
| Public Member Functions inherited from Dragengine.ResourceListener | |
| void | finishedLoading (String filename, ResourceLoaderType resourceType, Object resource) |
| Resource finished loading successfully. | |
| void | failedLoading (String filename, ResourceLoaderType resourceType) |
| Resource failed loading. | |
Public Attributes | |
| PreloadCounter | pCounter |
| Array | pFailedLoading |
| bool | pHasPreloaded |
| Dictionary | pPath |
Dictionary of images element class property for use with XML loading.
Similar to ECPImage but assigns each image a unique name. This is useful to define a list of images to use mapped against well known identifiers. Also allows to map the same image to multiple unique identifiers if required.
| void Dragengine.Scenery.ECPImageMap.dispose | ( | ) |
Dispose of element class property to break reference loops.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References dispose(), and new().
Referenced by dispose().
| void Dragengine.Scenery.ECPImageMap.forEach | ( | Block | ablock | ) |
Visit images with block with String id and Image value.
Referenced by setValue().
| Image Dragengine.Scenery.ECPImageMap.getAt | ( | String | id | ) |
Image with identifier or null if absent.
References pPath, setAt(), and setPathAt().
Referenced by getHasPreloaded(), and setAt().
| int Dragengine.Scenery.ECPImageMap.getCount | ( | ) |
Number of images.
Referenced by removeAll().
| bool Dragengine.Scenery.ECPImageMap.getHasPreloaded | ( | ) |
| ECPImageMap Dragengine.Scenery.ECPImageMap.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
Referenced by dispose(), new(), and setValue().
| void Dragengine.Scenery.ECPImageMap.removeAll | ( | ) |
| void Dragengine.Scenery.ECPImageMap.removeAllPath | ( | ) |
Remove all path.
Referenced by setPathAt().
| void Dragengine.Scenery.ECPImageMap.setAt | ( | String | id, |
| Image | image ) |
| void Dragengine.Scenery.ECPImageMap.setPathAt | ( | String | id, |
| String | path ) |
Set path to load for identifier.
References pPath, removeAll(), and removeAllPath().
Referenced by getAt().
| void Dragengine.Scenery.ECPImageMap.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References Dragengine.ResourceListener.failedLoading(), Dragengine.ResourceListener.finishedLoading(), forEach(), getHasPreloaded(), Dragengine.Scenery.ElementClassProperty.logPreloadProblems(), new(), pCounter, pFailedLoading, pHasPreloaded, pPath, Dragengine.Scenery.ElementClassProperty.preloadResources(), removeAll(), setAt(), and setValue().
Referenced by setValue().
| PreloadCounter Dragengine.Scenery.ECPImageMap.pCounter |
Referenced by setValue().
| Array Dragengine.Scenery.ECPImageMap.pFailedLoading |
Referenced by setValue().
| bool Dragengine.Scenery.ECPImageMap.pHasPreloaded |
Referenced by setValue().
| Dictionary Dragengine.Scenery.ECPImageMap.pPath |
Referenced by getAt(), new(), setPathAt(), and setValue().