From 9c760be120a83f413b58fd320555b408b2d91a69 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 28 Jul 2018 21:48:53 +0300 Subject: [PATCH] update np --- ElvUI/Modules/NamePlates/Elements/HealthBar.lua | 4 ++++ ElvUI/Modules/NamePlates/NamePlates.lua | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ElvUI/Modules/NamePlates/Elements/HealthBar.lua b/ElvUI/Modules/NamePlates/Elements/HealthBar.lua index eab714c..45378a9 100644 --- a/ElvUI/Modules/NamePlates/Elements/HealthBar.lua +++ b/ElvUI/Modules/NamePlates/Elements/HealthBar.lua @@ -118,6 +118,10 @@ function mod:ConfigureElement_HealthBar(frame, configuring) local healthBar = frame.HealthBar healthBar:SetPoint("TOP", frame, "CENTER", 0, self.db.units[frame.UnitType].castbar.height + 3) + if self.db.motionType ~= "OVERLAP" then + frame:GetParent():SetWidth(self.db.clickableWidth + ((E.PixelMode and 2) or 6)) + frame:GetParent():SetHeight(self.db.clickableHeight + self.db.units[frame.UnitType].castbar.height + 3) + end frame:SetWidth(self.db.clickableWidth + ((E.PixelMode and 2) or 6)) frame:SetHeight(self.db.clickableHeight + self.db.units[frame.UnitType].castbar.height + 3) diff --git a/ElvUI/Modules/NamePlates/NamePlates.lua b/ElvUI/Modules/NamePlates/NamePlates.lua index a08244e..9c6bc4f 100644 --- a/ElvUI/Modules/NamePlates/NamePlates.lua +++ b/ElvUI/Modules/NamePlates/NamePlates.lua @@ -59,6 +59,7 @@ function mod:SetPlateFrameLevel(frame, level, isTarget) frame.Glow:SetFrameLevel(frame.HealthBar:GetFrameLevel()-1) frame.Buffs:SetFrameLevel(level+1) frame.Debuffs:SetFrameLevel(level+1) + frame:GetParent():SetFrameLevel(level+3) end end @@ -335,8 +336,10 @@ function mod:OnShow(self, isUpdate) self.UnitFrame.UnitReaction = unitReaction if unitType == "FRIENDLY_PLAYER" or unitType == "FRIENDLY_NPC" then + self:EnableMouse(not mod.db.clickThrough.friendly) self.UnitFrame:EnableMouse(not mod.db.clickThrough.friendly) else + self:EnableMouse(not mod.db.clickThrough.enemy) self.UnitFrame:EnableMouse(not mod.db.clickThrough.enemy) end