Layers.js (system script)
From Spheriki
The system script layers.js manipulates a maplayer to be visible or invisible.
Contents |
[edit]
Usage
RequireSystemScript("layers.js");
[edit]
Variables and functions of convert.js
- GetTileIndex(tile_name)
- Returns the number of the tile if you give it the name of the tile
- Its the opposite of GetTileName(tile_index).
- GetLayerIndex(layer_name)
- Returns the index number of the layer if you give it the name of the layer
- Its the opposite of GetLayerName(layer_index).
TODO: Other functions to describe
- ConvertLayer(layer_index, tile_index, dont_remember_details)
- IsLayerConverted(layer_index)
- ToggleLayer(layer_index, tile_index)
- RevertLayer(layer_index)
- ClearLayerTileDetails(layer_index)
[edit]
Notes
- This library contains more functions, but most of their functionality is made obsolete by the function SetLayerVisible()
[edit]
Known bugs
- not checked
[edit]

