Quantcast

Fix the profile too.

Michael Tindal [07-07-15 - 04:27]
Fix the profile too.
Filename
ElvUI_SLE/defaults/profile.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 88d8106..5ecc289 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -20,7 +20,7 @@ P['sle'] = {
 			['enabled'] = false,
 			['trans'] = false,
 			['texture'] = "",
-			['width'] = E.screenwidth/4 + 32,
+			['width'] = (E.eyefinity or E.screenwidth)/4 + 32,
 			['height'] = E.screenheight/6 - 13,
 			['xoffset'] = 0,
 			['yoffset'] = 0,
@@ -33,7 +33,7 @@ P['sle'] = {
 			['enabled'] = false,
 			['trans'] = false,
 			['texture'] = "",
-			['width'] = E.screenwidth/10 - 4,
+			['width'] = (E.eyefinity or E.screenwidth)/10 - 4,
 			['height'] = E.screenheight/5 + 11,
 			['xoffset'] = 0,
 			['yoffset'] = 0,
@@ -46,7 +46,7 @@ P['sle'] = {
 			['enabled'] = false,
 			['trans'] = false,
 			['texture'] = "",
-			['width'] = E.screenwidth/10 - 4,
+			['width'] = (E.eyefinity or E.screenwidth)/10 - 4,
 			['height'] = E.screenheight/5 + 11,
 			['xoffset'] = 0,
 			['yoffset'] = 0,
@@ -59,7 +59,7 @@ P['sle'] = {
 			['enabled'] = false,
 			['trans'] = false,
 			['texture'] = "",
-			['width'] = E.screenwidth/4 + 32,
+			['width'] = (E.eyefinity or E.screenwidth)/4 + 32,
 			['height'] = E.screenheight/20 + 5,
 			['xoffset'] = 0,
 			['yoffset'] = 0,
@@ -90,49 +90,49 @@ P['sle'] = {
 	['datatext'] = {
 		['dp1'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/5,
+			['width'] = (E.eyefinity or E.screenwidth)/5,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['dp2'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/5,
+			['width'] = (E.eyefinity or E.screenwidth)/5,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['top'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/5 - 4,
+			['width'] = (E.eyefinity or E.screenwidth)/5 - 4,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['dp3'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/5,
+			['width'] = (E.eyefinity or E.screenwidth)/5,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['dp4'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/5,
+			['width'] = (E.eyefinity or E.screenwidth)/5,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['dp5'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/4 - 60,
+			['width'] = (E.eyefinity or E.screenwidth)/4 - 60,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['bottom'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/10 - 4,
+			['width'] = (E.eyefinity or E.screenwidth)/10 - 4,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
 		['dp6'] = {
 			['enabled'] = false,
-			['width'] = E.screenwidth/4 - 60,
+			['width'] = (E.eyefinity or E.screenwidth)/4 - 60,
 			['pethide'] = true,
 			['alpha'] = 1,
 		},
@@ -305,7 +305,7 @@ P['sle'] = {
 				['distance'] = 1,
 				['xaxis'] = -0.5,
 				['yaxis'] = 0,
-				['width'] = E.screenwidth/4,
+				['width'] = (E.eyefinity or E.screenwidth)/4,
 				['rotation'] = 0,
 			},
 			['crest'] = 128,