GetWindowScale

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Get window's width and height as a table. scale = getWindowScale() width = scale[1] height = scale[2]")
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{lua-function|getWindowScale|}}
 +
 
Get window's width and height as a table.
 
Get window's width and height as a table.
  
Line 4: Line 6:
 
  width = scale[1]
 
  width = scale[1]
 
  height = scale[2]
 
  height = scale[2]
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:System]]

Latest revision as of 17:54, 8 February 2014

getWindowScale()

Get window's width and height as a table.

scale = getWindowScale()
width = scale[1]
height = scale[2]
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox