Advertisement
Marth8880

Untitled

Dec 30th, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement