Drag[en]gine Script Module DragonScript
1.21
|
Public Member Functions | |
Constructors | |
Sky | new () |
Create sky. More... | |
Management | |
Color | getBgColor () |
Background color. More... | |
void | setBgColor (Color color) |
Set background color. More... | |
int | getControllerCount () |
Number of controllers. More... | |
void | setControllerCount (int count) |
Set number of controllers. More... | |
SkyController | getControllerAt (int index) |
Get wrapper for controller. More... | |
SkyController | getControllerNamed (String name) |
Get wrapper for controller if present. More... | |
int | indexOfControllerNamed (String name) |
Index of named controller or -1 if not found. More... | |
int | getLinkCount () |
Number of links. More... | |
void | setLinkCount (int count) |
Set number of links. More... | |
SkyLink | getLinkAt (int index) |
Get wrapper for link. More... | |
int | getLayerCount () |
Number of layers. More... | |
void | setLayerCount (int count) |
Set number of layers. More... | |
SkyLayer | getLayerAt (int index) |
Get wrapper for layer. More... | |
void | contentChanged () |
Notify peer parameters changed. More... | |
Sky.
This is a native class.
void Dragengine.Scenery.Sky.contentChanged | ( | ) |
Notify peer parameters changed.
Use after changing one or more parameters. If possible avoid changing parameters while sky instances use this sky.
Color Dragengine.Scenery.Sky.getBgColor | ( | ) |
Background color.
SkyController Dragengine.Scenery.Sky.getControllerAt | ( | int | index | ) |
Get wrapper for controller.
index | Index of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller. |
EOutOfBoundary | controller is less than -getControllerCount() or larger than or equal to getControllerCount(). |
int Dragengine.Scenery.Sky.getControllerCount | ( | ) |
Number of controllers.
SkyController Dragengine.Scenery.Sky.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
SkyLayer Dragengine.Scenery.Sky.getLayerAt | ( | int | index | ) |
Get wrapper for layer.
EOutOfBoundary | layer is less than 0 or larger than or equal to getLayerCount(). |
int Dragengine.Scenery.Sky.getLayerCount | ( | ) |
Number of layers.
SkyLink Dragengine.Scenery.Sky.getLinkAt | ( | int | index | ) |
Get wrapper for link.
EOutOfBoundary | link is less than 0 or larger than or equal to getLinkCount(). |
int Dragengine.Scenery.Sky.getLinkCount | ( | ) |
Number of links.
int Dragengine.Scenery.Sky.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
Sky Dragengine.Scenery.Sky.new | ( | ) |
Create sky.
void Dragengine.Scenery.Sky.setBgColor | ( | Color | color | ) |
Set background color.
void Dragengine.Scenery.Sky.setControllerCount | ( | int | count | ) |
Set number of controllers.
Sets all controllers to default vaules.
void Dragengine.Scenery.Sky.setLayerCount | ( | int | count | ) |
Set number of layers.
Sets all layers to default vaules.
void Dragengine.Scenery.Sky.setLinkCount | ( | int | count | ) |
Set number of links.
Sets all links to default vaules.