From 02a7ed387c595a43d67fa03040d9a5e181662660 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 13 Nov 2012 12:17:25 +0400 Subject: [PATCH] Catching up with Elv in UF code --- ElvUI_SLE/modules/unitframes/units/player.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/unitframes/units/player.lua b/ElvUI_SLE/modules/unitframes/units/player.lua index 6109b27..e1840eb 100644 --- a/ElvUI_SLE/modules/unitframes/units/player.lua +++ b/ElvUI_SLE/modules/unitframes/units/player.lua @@ -68,18 +68,19 @@ function UF:Update_PlayerFrame(frame, db) if USE_PORTRAIT_OVERLAY or not USE_PORTRAIT then PORTRAIT_WIDTH = 0 - if USE_POWERBAR_OFFSET then - CLASSBAR_WIDTH = CLASSBAR_WIDTH - POWERBAR_OFFSET - end end if USE_PORTRAIT then - CLASSBAR_WIDTH = math.ceil((UNIT_WIDTH - (BORDER*2)) - PORTRAIT_WIDTH) + CLASSBAR_WIDTH = (UNIT_WIDTH - (BORDER*2)) - PORTRAIT_WIDTH end if USE_POWERBAR_OFFSET then CLASSBAR_WIDTH = CLASSBAR_WIDTH - POWERBAR_OFFSET end + + if USE_MINI_POWERBAR then + POWERBAR_WIDTH = POWERBAR_WIDTH / 2 + end end health:ClearAllPoints() -- 1.7.9.5