Fandom

WoWWiki

API GetScreenResolutions

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetScreenResolutions

Returns a list of available screen resolutions

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

TakesEdit

Nothing

ReturnsEdit

String resolutionN
String representation of the Nth resolution

ExampleEdit

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

Also on Fandom

Random Wiki