mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update np
This commit is contained in:
@@ -118,12 +118,16 @@ function mod:ConfigureElement_HealthBar(frame, configuring)
|
||||
local healthBar = frame.HealthBar
|
||||
|
||||
healthBar:SetPoint("TOP", frame, "CENTER", 0, self.db.units[frame.UnitType].castbar.height + 3)
|
||||
|
||||
local width, height = self.db.clickableWidth + ((E.PixelMode and 2) or 6), self.db.clickableHeight + 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)
|
||||
frame:GetParent():SetWidth(width)
|
||||
frame:GetParent():SetHeight(height)
|
||||
else
|
||||
frame:GetParent():SetHitRectInsets(-.5*width, -.5*width, -.5*height, -.5*height)
|
||||
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)
|
||||
frame:SetWidth(width)
|
||||
frame:SetHeight(height)
|
||||
|
||||
if frame.isTarget and self.db.useTargetScale then
|
||||
healthBar:SetHeight(self.db.units[frame.UnitType].healthbar.height * ((frame.CustomScale and frame.CustomScale * self.db.targetScale) or self.db.targetScale))
|
||||
|
||||
Reference in New Issue
Block a user