getDrawingLayer() function
Returns the layer of the specified drawing.
Usage:
Code: Select all
getDrawingLayer(mapName, GUID)
GUID is the Id of the drawing, taken from the Draw Explorer "Get Drawing Id" menu action.
setDrawingLayer() function
Changes the layer of the specified drawing.
Usage:
Code: Select all
setDrawingLayer(mapName, GUID, layer))
GUID is the Id of the drawing, taken from the Draw Explorer "Get Drawing Id" menu action.
Layer specifies the layer to which the drawing will be moved and may be "TOKEN", "GM", "OBJECT" or "BACKGROUND"
bringDrawingToFront() function
Moves the specified drawing to the top of its layer, above any other drawings in that layer.
Usage:
Code: Select all
bringDrawingToFront(mapName, GUID)
GUID is the Id of the drawing, taken from the Draw Explorer "Get Drawing Id" menu action.
sendDrawingToBack() function
Moves the specified drawing to the bottom of its layer, behind any other drawings in that layer.
Usage:
Code: Select all
sendDrawingToBack(mapName, GUID)
GUID is the Id of the drawing, taken from the Draw Explorer "Get Drawing Id" menu action.
Examples:
Code: Select all
[r:getDrawingLayer("Castle","00000000564E3AC0110C000000000000")]
[r:setDrawingLayer("Castle","00000000564E3AC0110C000000000000","GM")]
[r:setDrawingLayer("Castle","00000000564E3AC0110C000000000000","BACKGROUND")]
[r:sendDrawingToBack("Castle","00000000564E3AC0110C000000000000")]
[r:bringDrawingToFront("Castle","00000000564E3AC0110C000000000000")]