Fandom

WoWWiki

API GetCurrentResolution

104,754pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetCurrentResolution

Returns the index of the current resolution in effect

index = GetCurrentResolution()

TakesEdit

Nothing

ReturnsEdit

Number index
This value will be the index of one of the values yielded by GetScreenResolutions()

ExampleEdit

message('The current screen resolution is ' .. ({GetScreenResolutions()})[GetCurrentResolution()])

Output:

The current screen resolution is 1024x768

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.