mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update np
This commit is contained in:
@@ -316,6 +316,7 @@ function mod:GetUnitInfo(frame)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mod:OnShow(self, isUpdate)
|
function mod:OnShow(self, isUpdate)
|
||||||
|
self = self or this
|
||||||
if mod.db.motionType == "OVERLAP" then
|
if mod.db.motionType == "OVERLAP" then
|
||||||
self:SetWidth(0.01)
|
self:SetWidth(0.01)
|
||||||
self:SetHeight(0.01)
|
self:SetHeight(0.01)
|
||||||
@@ -382,7 +383,7 @@ function mod:OnShow(self, isUpdate)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mod:OnHide(self)
|
function mod:OnHide(self)
|
||||||
--local self = this
|
self = self or this
|
||||||
mod.VisiblePlates[self.UnitFrame] = nil
|
mod.VisiblePlates[self.UnitFrame] = nil
|
||||||
|
|
||||||
self.UnitFrame.unit = nil
|
self.UnitFrame.unit = nil
|
||||||
@@ -390,7 +391,7 @@ function mod:OnHide(self)
|
|||||||
|
|
||||||
mod:HideAuraIcons(self.UnitFrame.Buffs)
|
mod:HideAuraIcons(self.UnitFrame.Buffs)
|
||||||
mod:HideAuraIcons(self.UnitFrame.Debuffs)
|
mod:HideAuraIcons(self.UnitFrame.Debuffs)
|
||||||
--mod:ClearStyledPlate(self.UnitFrame)
|
mod:ClearStyledPlate(self.UnitFrame)
|
||||||
self.UnitFrame:UnregisterAllEvents()
|
self.UnitFrame:UnregisterAllEvents()
|
||||||
self.UnitFrame.Glow.r, self.UnitFrame.Glow.g, self.UnitFrame.Glow.b = nil, nil, nil
|
self.UnitFrame.Glow.r, self.UnitFrame.Glow.g, self.UnitFrame.Glow.b = nil, nil, nil
|
||||||
self.UnitFrame.Glow:Hide()
|
self.UnitFrame.Glow:Hide()
|
||||||
@@ -514,9 +515,8 @@ function mod:OnCreated(frame)
|
|||||||
local moveUp = frame.UnitFrame.moveUp:CreateAnimation("Move")
|
local moveUp = frame.UnitFrame.moveUp:CreateAnimation("Move")
|
||||||
moveUp:SetDuration(0)
|
moveUp:SetDuration(0)
|
||||||
moveUp:SetOffset(0, -35)
|
moveUp:SetOffset(0, -35)
|
||||||
moveUp:SetOrder(1)
|
|
||||||
moveUp = frame.UnitFrame.moveUp:CreateAnimation("Move")
|
moveUp = frame.UnitFrame.moveUp:CreateAnimation("Move")
|
||||||
moveUp:SetDuration(0.5)
|
moveUp:SetDuration(0.3)
|
||||||
moveUp:SetOffset(0, 35)
|
moveUp:SetOffset(0, 35)
|
||||||
moveUp:SetSmoothing("Out")
|
moveUp:SetSmoothing("Out")
|
||||||
moveUp:SetOrder(2)
|
moveUp:SetOrder(2)
|
||||||
@@ -560,8 +560,8 @@ function mod:OnCreated(frame)
|
|||||||
|
|
||||||
self:OnShow(frame)
|
self:OnShow(frame)
|
||||||
|
|
||||||
frame:SetScript("OnShow", function() self:OnShow(this) end)
|
frame:SetScript("OnShow", self.OnShow)
|
||||||
frame:SetScript("OnHide", function() self:OnHide(this) end)
|
frame:SetScript("OnHide", self.OnHide)
|
||||||
|
|
||||||
HookScript(HealthBar, "OnValueChanged", self.UpdateElement_HealthOnValueChanged)
|
HookScript(HealthBar, "OnValueChanged", self.UpdateElement_HealthOnValueChanged)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user