From e99f38fc0b52e98f648fc317d73fd4c7a44f5446 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 9 Nov 2012 16:11:53 +0400 Subject: [PATCH] Variables replacement for frames sizing --- ElvUI_SLE/modules/backgrounds/backgrounds.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ElvUI_SLE/modules/backgrounds/backgrounds.lua b/ElvUI_SLE/modules/backgrounds/backgrounds.lua index 533b2a6..00589f5 100644 --- a/ElvUI_SLE/modules/backgrounds/backgrounds.lua +++ b/ElvUI_SLE/modules/backgrounds/backgrounds.lua @@ -59,17 +59,18 @@ end --Frames Size function BG:FramesSize() - BGb:SetWidth(E.db.sle.backgrounds.bottom.width) - BGb:SetHeight(E.db.sle.backgrounds.bottom.height) + local db = E.db.sle.backgrounds + BGb:SetWidth(db.bottom.width) + BGb:SetHeight(db.bottom.height) - BGl:SetWidth(E.db.sle.backgrounds.left.width) - BGl:SetHeight(E.db.sle.backgrounds.left.height) + BGl:SetWidth(db.left.width) + BGl:SetHeight(db.left.height) - BGr:SetWidth(E.db.sle.backgrounds.right.width) - BGr:SetHeight(E.db.sle.backgrounds.right.height) + BGr:SetWidth(db.right.width) + BGr:SetHeight(db.right.height) - BGa:SetWidth(E.db.sle.backgrounds.action.width) - BGa:SetHeight(E.db.sle.backgrounds.action.height) + BGa:SetWidth(db.action.width) + BGa:SetHeight(db.action.height) end --Frames points -- 1.7.9.5