View Single Post
11/09/14, 04:39 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by justinbarrett View Post
I am simply trying to get the screen size in X to pass on to my exp bar background for dynamic ui scaling, but cannot seem to find it(the way to return screen size) anywhere...
can anyone help?
I did look on the wiki but saw no clear answer...and the wiki is not the easiest to navigate if you are new to this kind of coding.
Try:
Lua Code:
  1. GuiRoot:GetWidth()  -- for the width
  2. GuiRoot:GetHeight() -- for the height
  Reply With Quote