|
Drag[en]gine Script Module DragonScript 1.32.1
|
Sky. More...
Public Member Functions | |
Constructors | |
| Sky | new () |
| Create sky. | |
Management | |
| Color | getBgColor () |
| Background color. | |
| void | setBgColor (Color color) |
| Set background color. | |
| int | getControllerCount () |
| Number of controllers. | |
| void | setControllerCount (int count) |
| Set number of controllers. | |
| SkyController | getControllerAt (int index) |
| Get wrapper for controller. | |
| SkyController | getControllerNamed (String name) |
| Get wrapper for controller if present. | |
| int | indexOfControllerNamed (String name) |
| Index of named controller or -1 if not found. | |
| int | getLinkCount () |
| Number of links. | |
| void | setLinkCount (int count) |
| Set number of links. | |
| SkyLink | getLinkAt (int index) |
| Get wrapper for link. | |
| int | getLayerCount () |
| Number of layers. | |
| void | setLayerCount (int count) |
| Set number of layers. | |
| SkyLayer | getLayerAt (int index) |
| Get wrapper for layer. | |
| void | contentChanged () |
| Notify peer parameters changed. | |
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.