WoW:API GetCurrentResolution: Difference between revisions
Jump to navigation
Jump to search
(part of a API redesign proposal, please don't change the layout for the next few days) |
m (Move page script moved page API GetCurrentResolution to API GetCurrentResolution without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
===Example=== | ===Example=== | ||
message('The current screen resolution is ' .. ({GetScreenResolutions()})[GetCurrentResolution()]) | message('The current screen resolution is ' .. ({GetScreenResolutions()})[GetCurrentResolution()]) | ||
Output: | Output: | ||
The current screen resolution is 1024x768 | The current screen resolution is 1024x768 |
Latest revision as of 04:45, 15 August 2023
← WoW API < GetCurrentResolution
Returns the index of the current resolution in effect
index = GetCurrentResolution()
Takes[edit]
- Nothing
Returns[edit]
- Number index
- This value will be the index of one of the values yielded by GetScreenResolutions()
Example[edit]
message('The current screen resolution is ' .. ({GetScreenResolutions()})[GetCurrentResolution()])
Output:
The current screen resolution is 1024x768