Difference between revisions of "Legacy:Functions/Map/Layers"
From Spherical
< Legacy:Functions | Map
(created) |
(No difference)
|
Latest revision as of 23:41, 1 June 2013
Layers
- GetNumLayers(): Get number of layers in the current map.
- GetLayerName(layer): Get the name of layer.
- GetLayerWidth(layer): Get width of layer in tiles.
- GetLayerHeight(layer): Get height of layer in tiles.
- SetLayerWidth(layer, width): Set width of layer in tiles.
- SetLayerHeight(layer, height): Set height of layer in tiles.
- GetLayerAngle(layer): Get layer angle in radians.
- SetLayerAngle(layer, angle): Set layer rotation to angle radians.
- GetLayerMask(layer): Get Color mask of layer.
- SetLayerMask(layer, color_mask): Mask the layer with color_mask.
- IsLayerReflective(layer): Find if layer shows person entity reflections.
- SetLayerReflective(layer, reflect): Set reflectivity of layer.
- IsLayerVisible(layer): Find if layer is visible.
- SetLayerVisible(layer, visible): Set visibility of layer.
- SetLayerScaleFactorX(layer, factor): Set width scaling of layer to factor.
- SetLayerScaleFactorY(layer, factor): Set height scaling of layer to factor.
- SetLayerRenderer(layer, script): Run script after layer has been rendered.