From eb790a37b1a9ec0ac9bd731e8469c6efabe1744b Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 26 Sep 2019 19:39:23 +0200 Subject: [PATCH] unitframes: use fixed layers for power and health --- api/unitframes.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 2efc9455..29fabbdb 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -903,8 +903,10 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) f.hp = CreateFrame("Frame",nil, f) f.hp.bar = CreateFrame("StatusBar", nil, f.hp) + f.hp.bar:SetFrameLevel(8) f.power = CreateFrame("Frame",nil, f) f.power.bar = CreateFrame("StatusBar", nil, f.power) + f.hp.bar:SetFrameLevel(4) f.glow = CreateFrame("Frame", nil, f) f.hpLeftText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall")