setOverlayVisible

From RPTools Wiki
Revision as of 22:39, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page setOverlayVisible to SetOverlayVisible without leaving a redirect: Converting page title to first-letter uppercase)
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