From 58423e0e34d3df47c2accc1d85b72ad4872fb5c9 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 19 Aug 2014 19:32:27 +0200 Subject: [PATCH] Cheap trick to hide portraits when the unit is offline --- oUF_P3lim.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index d3bf507..9f2cdec 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -22,6 +22,10 @@ end local function PostUpdateHealth(element, unit, cur, max) local ScrollFrame = element.__owner.Portrait.scrollFrame + if(element.disconnected) then + cur = 0 + end + local offset = -(230 * (1 - cur / max)) ScrollFrame:SetPoint('LEFT', offset, 0) ScrollFrame:SetHorizontalScroll(offset) -- 1.7.9.5