Wikia

WoWWiki

Changes: API GetScreenResolutions

Edit

Back to page

m
m
 
Line 1: Line 1:
<noinclude>{{wowapi}}__NOTOC__</noinclude>Returns a list of available screen resolutions<noinclude>
+
{{wowapi}}__NOTOC__
  +
Returns a list of available screen resolutions
 
resolution1, resolution2, resolution3, ... = GetScreenResolutions()
 
resolution1, resolution2, resolution3, ... = GetScreenResolutions()
   
 
===Takes===
 
===Takes===
:{{User:Zelgadis/var_decl|Nothing| | }}
+
: Nothing
   
 
===Returns===
 
===Returns===
:{{User:Zelgadis/var_decl|String|resolutionN| }}
+
: String resolutionN
 
:: String representation of the Nth resolution
 
:: String representation of the Nth resolution
   
 
===Example===
 
===Example===
<dl><dd>
+
<dd>
 
local resolutions = {GetScreenResolutions()}
 
local resolutions = {GetScreenResolutions()}
 
for i,entry in resolutions do
 
for i,entry in resolutions do
Line 20: Line 20:
 
Resolution 2: 1024x768
 
Resolution 2: 1024x768
 
Resolution 3: 1280x1024
 
Resolution 3: 1280x1024
</dl></dd>
 
</noinclude>
 

Latest revision as of 01:10, September 5, 2006

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

Around Wikia's network

Random Wiki