setLineCap

From RPTools Wiki
Revision as of 15:38, 26 February 2018 by Jagged (talk | contribs) (Created page with "{{MacroFunction |name=setLineCap |version=1.4.1.9 |trusted=true |description= Sets the eraser setting of the drawing that corresponds to the map and drawing id. If Set to {{co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setLineCap() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.4.1.9
Sets the eraser setting of the drawing that corresponds to the map and drawing id. If Set to false(0) the drawing will be displayed normally, but if set to true(1) the drawing will erase all below.

Usage

getLineCap(mapName, drawingId, capType)

Parameters

  • mapName - A string containing the name of the map.
  • drawingId - A string containing the id of the drawing. The easiest way to discover a drawing's Id is via the Draw Explorer interface.
  • boolean - The value of the setting to set, true(1) or false(0).

Example

[h:setLineCap("Grasslands", "0000000094218C675800000000000000",0)]
[h:refreshDrawing("Grasslands", "0000000094218C675800000000000000")]
[h:setLineCap("Grasslands", "00000000CCF6B567CC00000000000000",1)]
[h:refreshDrawing("Grasslands", "00000000CCF6B567CC00000000000000")]

See Also