setZoom

From RPTools Wiki
Revision as of 08:26, 30 April 2015 by Wolph42 (talk | contribs) (Created page with "{{MacroFunction |name=setZoom |version=1.4 |description= Sets the zoom level of the viewport. |usage= <source lang="mtmacro" line> setZoom(z) </source> '''Parameters''' * {{cod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setZoom() Function

Introduced in version 1.4
Sets the zoom level of the viewport.

Usage

setZoom(z)

Parameters

  • z - The zoom level of the viewport (the current zoom level can be seen at the bottom of the maptool screen. You can also use getZoom()

Example

Set the zoom level to default (= 0)
[h: setZoom(0)]

See Also