WoW:API SetMapZoom: Difference between revisions
Jump to navigation
Jump to search
SetMapZoom -Documentation by Meog-
No edit summary |
m (Recategorized) |
||
Line 1: | Line 1: | ||
<center>'''SetMapZoom''' ''-Documentation by [[user:Meog|Meog]]-''</center> | <center>'''SetMapZoom''' ''-Documentation by [[user:Meog|Meog]]-''</center> | ||
Sets the | Sets what is displayed by the current world map to a specific continent and zone. | ||
SetMapZoom( | SetMapZoom(continentIndex [,zoneIndex]) | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
: | :(continentIndex [,zoneIndex]) | ||
:; | :;continentIndex : Number - Specifies the continent corresponding to the numbers of [[API_GetMapContinents|GetMapContinents()]], or 0 for whole world. | ||
:; | :;zoneIndex : Number - Specifies the zone corresponding to the numbers of [[API_GetMapZones|GetMapZones(continentIndex)]], omit for whole continent. | ||
---- | ---- | ||
Line 21: | Line 16: | ||
SetMapZoom(2, 10); -- 1. | SetMapZoom(2, 10); -- 1. | ||
SetMapZoom(2, nil); -- 2. | SetMapZoom(2, nil); -- 2. | ||
SetMapZoom(0 | SetMapZoom(2); -- 2. | ||
SetMapZoom(0); -- 3. | |||
;''Result'' | ;''Result'' | ||
Line 28: | Line 24: | ||
3. Shows both continents | 3. Shows both continents | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API World Map Functions|SetMapZoom]] |
Revision as of 19:22, 28 December 2004
Sets what is displayed by the current world map to a specific continent and zone.
SetMapZoom(continentIndex [,zoneIndex])
- Arguments
- (continentIndex [,zoneIndex])
- continentIndex
- Number - Specifies the continent corresponding to the numbers of GetMapContinents(), or 0 for whole world.
- zoneIndex
- Number - Specifies the zone corresponding to the numbers of GetMapZones(continentIndex), omit for whole continent.
- Example
SetMapZoom(2, 10); -- 1. SetMapZoom(2, nil); -- 2. SetMapZoom(2); -- 2. SetMapZoom(0); -- 3.
- Result
1. Set the current map zoom of the world map to Elvynn Forrest. 2. Shows the Eastern Kingdoms 3. Shows both continents