Layers.js (system script)

From Spheriki

Jump to: navigation, search

The system script layers.js manipulates a maplayer to be visible or invisible.


Contents

Usage

RequireSystemScript("layers.js");


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)

Notes

  • This library contains more functions, but most of their functionality is made obsolete by the function SetLayerVisible()


Known bugs

  • not checked


See also

Personal tools