WoW API: GetScreenResolutions

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetScreenResolutions to API GetScreenResolutions without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetScreenResolutions

Returns a list of available screen resolutions

resolution1, resolution2, resolution3, ... = GetScreenResolutions()

Takes[edit]

Nothing

Returns[edit]

String resolutionN
String representation of the Nth resolution

Example[edit]

local resolutions = {GetScreenResolutions()} for i,entry in resolutions do DEFAULT_CHAT_FRAME:AddMessage(format('Resolution %u: %s', i, entry)) end Output: Resolution 1: 800x600 Resolution 2: 1024x768 Resolution 3: 1280x1024