FEATURE: Draw Explorer - BETA

Developer discussion regarding MapTool 1.4

Moderators: dorpond, trevor, Azhrei

Forum rules
Posting now open to all registered forum users.
User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: FEATURE: Draw Explorer - BETA

Post by Jagged »

Coming to an unnamed version of Maptool in the near future:
getId.jpg
getId.jpg (29.08 KiB) Viewed 391 times
From the Draw Explorer there is now a new menu action called "Get Drawing Id" that returns to the chat window, the Id of the selected drawing. These typically look like Token Ids are are something like "00000000564E3AC0110C000000000000". You can then use this Drawing Id in the following GM/Trusted Macro Only functions:

getDrawingLayer() function
Returns the layer of the specified drawing.
Usage:

Code: Select all

getDrawingLayer(mapName, GUID)
mapName is the name of the map to which the drawing element belongs.
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))
mapName is the name of the map to which the drawing element belongs.
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)
mapName is the name of the map to which the drawing element belongs.
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)
mapName is the name of the map to which the drawing element belongs.
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")]

Post Reply

Return to “MapTool 1.4”