daily pastebin goal
42%
SHARE
TWEET

Untitled

Marth8880 Dec 30th, 2014 192 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1.         local screenWidth, screenHeight = ScriptCB_GetScreenInfo()
  2.         local aspectRatio = screenWidth / screenHeight
  3.                 print("ME5_MiscFunctions:    Width: "..screenWidth.."    Height: "..screenHeight.."    Aspect Ratio: "..aspectRatio)
  4.         if aspectRatio <= 1.4 then
  5.                         print("ME5_MiscFunctions: Aspect Ratio is 4:3; loading scopes as such")
  6.                 ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\ar\\ar43\\ar.lvl")
  7.         elseif aspectRatio <= 1.63 and aspectRatio >= 1.5 then
  8.                         print("ME5_MiscFunctions: Aspect Ratio is 16:10; loading scopes as such")
  9.                 ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\ar\\ar1610\\ar.lvl")
  10.         elseif aspectRatio <= 1.9 and aspectRatio >= 1.63 then
  11.                         print("ME5_MiscFunctions: Aspect Ratio is 16:9; loading scopes as such")
  12.                 ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\ar\\ar169\\ar.lvl")
  13.         else
  14.                         print("ME5_MiscFunctions: Error! Invalid aspect ratio ("..aspectRatio..")! Defaulting to workaround")
  15.                 ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\ar\\ar.lvl")
  16.         end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top