setOverlayVisible

From RPTools Wiki
Revision as of 13:28, 20 October 2021 by Phergus (talk | contribs) (Create page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setOverlayVisible() Function

Introduced in version 1.11.0
Use to toggle the visible status of an Overlay as seen in the Windows -> Overlay menu.

Usage

setOverlayVisible(name, visible)

Parameters

  • name - Overlay name.
  • visible - A 1 or 0 to make the overlay visible or not.

Example

Hide an overlay:
[r: setOverlayVisible("MyOverlay", 0)]

Returns:

None.

See Also

Version Changes

  • 1.11.0 - Function added