mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update np
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user