Drag[en]gine Script Module DragonScript
1.23
|
Dynamic skin. More...
Public Member Functions | |
Constructors | |
DynamicSkin | new () |
Create dynamic skin. More... | |
Management | |
int | getRenderableCount () |
Number of renderables. More... | |
bool | hasRenderable (String name) |
Named renderable is present. More... | |
int | indexOfRenderable (String name) |
Index of named renderable or -1 if absent. More... | |
void | addRenderable (String name, DynamicSkinRenderableType type) |
Add named renderable. More... | |
void | removeRenderable (String name) |
Remove named renderable. More... | |
void | removeAllRenderables () |
Remove all renderables. More... | |
DynamicSkinRenderableType | getTypeAt (int renderable) |
Type of renderable at index. More... | |
float | getValueAt (int renderable) |
Renderable value or null if not set. \verrsion 1.20. More... | |
void | setValueAt (int renderable, float value) |
Set renderable value. More... | |
Color | getColorAt (int renderable) |
Renderable color or null if not set. More... | |
void | setColorAt (int renderable, Color color) |
Set renderable color. More... | |
Image | getImageAt (int renderable) |
Renderable image or null if not set. More... | |
void | setImageAt (int renderable, Image image) |
Set renderable image or null if not set. More... | |
CanvasView | getCanvasAt (int renderable) |
Renderable canvas or null if not set. More... | |
void | setCanvasAt (int renderable, CanvasView canvas) |
Set renderable canvas or null if not set. More... | |
void | setCanvasAt (int renderable, CanvasView canvas, int componentCount) |
Set renderable canvas or null if not set. More... | |
void | setCanvasAt (int renderable, CanvasView canvas, int componentCount, int bitCount) |
Set renderable canvas or null if not set. More... | |
Camera | getCameraAt (int renderable) |
Renderable camera or null if not set. More... | |
void | setCameraAt (int renderable, Camera camera) |
Set renderable camera or null if not set. More... | |
VideoPlayer | getVideoPlayerAt (int renderable) |
Renderable video player or null if not set. More... | |
void | setVideoPlayerAt (int renderable, VideoPlayer videoPlayer) |
Set renderable video player or null if not set. More... | |
Dynamic skin.
This is a native class.
void Dragengine.Scenery.DynamicSkin.addRenderable | ( | String | name, |
DynamicSkinRenderableType | type | ||
) |
Add named renderable.
EInvalidParam | Named renderable is present. |
Camera Dragengine.Scenery.DynamicSkin.getCameraAt | ( | int | renderable | ) |
Renderable camera or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.camera. |
CanvasView Dragengine.Scenery.DynamicSkin.getCanvasAt | ( | int | renderable | ) |
Renderable canvas or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.canvas. |
Color Dragengine.Scenery.DynamicSkin.getColorAt | ( | int | renderable | ) |
Renderable color or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.color. |
Image Dragengine.Scenery.DynamicSkin.getImageAt | ( | int | renderable | ) |
Renderable image or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.image. |
int Dragengine.Scenery.DynamicSkin.getRenderableCount | ( | ) |
Number of renderables.
DynamicSkinRenderableType Dragengine.Scenery.DynamicSkin.getTypeAt | ( | int | renderable | ) |
Type of renderable at index.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
float Dragengine.Scenery.DynamicSkin.getValueAt | ( | int | renderable | ) |
Renderable value or null if not set. \verrsion 1.20.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.value. |
VideoPlayer Dragengine.Scenery.DynamicSkin.getVideoPlayerAt | ( | int | renderable | ) |
Renderable video player or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.videoPlayer. |
bool Dragengine.Scenery.DynamicSkin.hasRenderable | ( | String | name | ) |
Named renderable is present.
int Dragengine.Scenery.DynamicSkin.indexOfRenderable | ( | String | name | ) |
Index of named renderable or -1 if absent.
DynamicSkin Dragengine.Scenery.DynamicSkin.new | ( | ) |
Create dynamic skin.
void Dragengine.Scenery.DynamicSkin.removeAllRenderables | ( | ) |
Remove all renderables.
void Dragengine.Scenery.DynamicSkin.removeRenderable | ( | String | name | ) |
Remove named renderable.
EInvalidParam | Named renderable is absent. |
void Dragengine.Scenery.DynamicSkin.setCameraAt | ( | int | renderable, |
Camera | camera | ||
) |
Set renderable camera or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.camera. |
void Dragengine.Scenery.DynamicSkin.setCanvasAt | ( | int | renderable, |
CanvasView | canvas | ||
) |
Set renderable canvas or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.canvas. |
void Dragengine.Scenery.DynamicSkin.setCanvasAt | ( | int | renderable, |
CanvasView | canvas, | ||
int | componentCount | ||
) |
Set renderable canvas or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.canvas. |
EInvalidParam | componentCount is less than 1. |
EInvalidParam | componentCount is greater than 4. |
void Dragengine.Scenery.DynamicSkin.setCanvasAt | ( | int | renderable, |
CanvasView | canvas, | ||
int | componentCount, | ||
int | bitCount | ||
) |
Set renderable canvas or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.canvas. |
EInvalidParam | componentCount is less than 1. |
EInvalidParam | componentCount is greater than 4. |
EInvalidParam | bitCount is not 8, 16 or 32. |
void Dragengine.Scenery.DynamicSkin.setColorAt | ( | int | renderable, |
Color | color | ||
) |
Set renderable color.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.color. |
void Dragengine.Scenery.DynamicSkin.setImageAt | ( | int | renderable, |
Image | image | ||
) |
Set renderable image or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.image. |
void Dragengine.Scenery.DynamicSkin.setValueAt | ( | int | renderable, |
float | value | ||
) |
Set renderable value.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.value. |
void Dragengine.Scenery.DynamicSkin.setVideoPlayerAt | ( | int | renderable, |
VideoPlayer | videoPlayer | ||
) |
Set renderable video player or null if not set.
EOutOfBoundary | renderable is less than 0 or greater than or equal to getRenderableCount(). |
EInvalidParam | Renderable is not of type DynamicSkinRenderableType.videoFrame. |