Commit e3362b0a authored by Azilroka's avatar Azilroka

Revert "Test commit to oUF. Thanks @ls-. @Azilroka, @Simpy we need monitor...

Revert "Test commit to oUF. Thanks @ls-. @Azilroka, @Simpy we need monitor this. Proably revert it. Dunno, keep an eye open."

This reverts commit 9fafc235.
parent c0085145
...@@ -336,9 +336,9 @@ local function initObject(unit, style, styleFunc, header, ...) ...@@ -336,9 +336,9 @@ local function initObject(unit, style, styleFunc, header, ...)
-- NAME_PLATE_UNIT_ADDED fires after the frame is shown, so there's no -- NAME_PLATE_UNIT_ADDED fires after the frame is shown, so there's no
-- need to call UAE multiple times -- need to call UAE multiple times
--if(not object.isNamePlate) then if(not object.isNamePlate) then
object:SetScript('OnShow', onShow) object:SetScript('OnShow', onShow)
--end end
for element in next, elements do for element in next, elements do
object:EnableElement(element, objectUnit) object:EnableElement(element, objectUnit)
...@@ -804,7 +804,6 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars) ...@@ -804,7 +804,6 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars)
nameplate.style = style nameplate.style = style
nameplate.unitFrame = CreateFrame('Button', prefix..nameplate:GetName(), nameplate) nameplate.unitFrame = CreateFrame('Button', prefix..nameplate:GetName(), nameplate)
nameplate.unitFrame:Hide()
nameplate.unitFrame:EnableMouse(false) nameplate.unitFrame:EnableMouse(false)
nameplate.unitFrame.isNamePlate = true nameplate.unitFrame.isNamePlate = true
...@@ -823,8 +822,7 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars) ...@@ -823,8 +822,7 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars)
-- UAE is called after the callback to reduce the number of -- UAE is called after the callback to reduce the number of
-- ForceUpdate calls layout devs have to do themselves -- ForceUpdate calls layout devs have to do themselves
--nameplate.unitFrame:UpdateAllElements(event) nameplate.unitFrame:UpdateAllElements(event)
nameplate.unitFrame:Show()
elseif(event == 'NAME_PLATE_UNIT_REMOVED' and unit) then elseif(event == 'NAME_PLATE_UNIT_REMOVED' and unit) then
local nameplate = C_NamePlate.GetNamePlateForUnit(unit) local nameplate = C_NamePlate.GetNamePlateForUnit(unit)
if(not nameplate) then return end if(not nameplate) then return end
...@@ -834,7 +832,6 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars) ...@@ -834,7 +832,6 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars)
if(nameplateCallback) then if(nameplateCallback) then
nameplateCallback(nameplate.unitFrame, event, unit) nameplateCallback(nameplate.unitFrame, event, unit)
end end
nameplate.unitFrame:Hide()
end end
end) end)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment