WoW:API SetMapZoom: Difference between revisions

m
Recategorized
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 zoom to a specific zone
Sets what is displayed by the current world map to a specific continent and zone.


  SetMapZoom(continent, zone)
  SetMapZoom(continentIndex [,zoneIndex])


----
----
;''Arguments''
;''Arguments''


:Number continent, Number zone
:(continentIndex [,zoneIndex])
:;continent : number specifies the continent corresponding to the numbers of [[API_GetCurrentMapContinent|GetCurrentMapContinent]]
:;continentIndex : Number - Specifies the continent corresponding to the numbers of [[API_GetMapContinents|GetMapContinents()]], or 0 for whole world.
:;zone : number specifies the zone corresponding to the numbers of [[API_GetCurrentMapZone|GetCurrentMapZone]]
:;zoneIndex : Number - Specifies the zone corresponding to the numbers of [[API_GetMapZones|GetMapZones(continentIndex)]], omit for whole continent.
 
----
;''Returns''
 
:;nil


----
----
Line 21: Line 16:
  SetMapZoom(2, 10); -- 1.
  SetMapZoom(2, 10); -- 1.
  SetMapZoom(2, nil); -- 2.
  SetMapZoom(2, nil); -- 2.
  SetMapZoom(0, nil); -- 3.
SetMapZoom(2); -- 2.
  SetMapZoom(0); -- 3.


;''Result''
;''Result''
Line 28: Line 24:
  3. Shows both continents
  3. Shows both continents


----
;''Description''
: Sets the zoom to a specific zone.
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API World Map Functions|SetMapZoom]]
Anonymous user