WoW API: GetNumLFGResults

From AddOn Studio
Revision as of 18:22, 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 < GetNumLFGResults

Returns a list of available refresh rates

refreshrate1, refreshrate2, refreshrate3, ... = GetRefreshRates([resolution])

Takes

Number resolution (optional)
Index of the resolution you want to get the refresh rates for. Must be an index returned by GetScreenResolutions().
Passing nil defaults this argument to 1, the lowest resolution available.

Returns

Number refreshrateN
Value of the Nth refresh rate

Example

local refreshrates = {GetRefreshRates()} for i,entry in refreshrates do DEFAULT_CHAT_FRAME:AddMessage(format('Refresh rate %u: %s Hz', i, entry)) end Output: Refresh rate 1: 60 Hz Refresh rate 2: 75 Hz Refresh rate 3: 85 Hz Refresh rate 4: 100 Hz