Wikia

WoWWiki

API GetCurrentResolution

Talk0
100,551pages on
this wiki
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
Advertisement | Your ad here

Around Wikia's network

Random Wiki