C_Vignettes .GetNumVignettes
Jump to navigation
Jump to search
Links |
---|
Info |
Added in 5.4.0 |
![]() |
This no longer exists on any flavor of the game. |
![]() |
This is no longer a part of the World of Warcraft API.
|
Returns the number of vignettes currently visible to the player.
numVignettes = C_Vignettes.GetNumVignettes()
Returns
- numVignettes
- Number - number of vignettes currently visible on the player's minimap (either as icons or directional arrows).
Example
To print the names of all currently visible vignettes:
local numVignettes = C_Vignettes.GetNumVignettes() for i=1, numVignettes do local vigInstanceID = C_Vignettes.GetVignetteInstanceID(i) local ofsX, ofsY, name = C_Vignettes. GetVignetteInfoFromInstanceID(vigInstanceID) print(i, name, " at +(" .. ofsX .. ", " .. ofsY .. ")") end if numVignettes == 0 then print("No vignettes are currently visible") end
Patch history
Patch 8.0.1 (2018-07-17): Removed.
Patch 5.4.0 (2013-09-10): Added.