WoW API: GetCurrentResolution

From AddOn Studio
Revision as of 18:21, 3 September 2006 by WoWWiki>WoWWiki-Zelgadis (part of a API redesign proposal, please don't change the layout for the next few days)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetCurrentResolution

Returns the index of the current resolution in effect

index = GetCurrentResolution()

Takes

Nothing

Returns

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

Example

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