WoW API: GetCurrentResolution

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetCurrentResolution to API GetCurrentResolution without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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