Wikia

WoWWiki

API GetScreenResolutions

Talk0
102,280pages on
this wiki
Revision as of 18:42, September 3, 2006 by WoWWiki-Zelgadis (Talk | contribs)

WoW API < GetScreenResolutionsReturns a list of available screen resolutions
resolution1, resolution2, resolution3, ... = GetScreenResolutions()

Takes

Nothing

Returns

String
resolutionN
String representation of the Nth resolution

Example

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

</dd>

Around Wikia's network

Random Wiki