update np

This commit is contained in:
Bunny67
2018-07-28 21:48:53 +03:00
parent 31a64d0ca8
commit 9c760be120
2 changed files with 7 additions and 0 deletions
@@ -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)
+3
View File
@@ -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