API GetCurrentResolution
Talk0
98,468pages on
this wiki
this wiki
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