Commit 85346d07 authored by Merathilis's avatar Merathilis

Merge branch 'development' into ptr

parents 5dc2fefc 26a2690e
### Version 11.28 [ ETA: Soon ]
### Version 11.29 [ ETA: Soon ]
**New Additions:**
Added an option to play a sound if you select an unit. Disabled by default. Requested a lot.
**Bug Fixes:**
**Misc. Changes:**
___
### Version 11.28 for patch 8.3 [ January 14th 2020 ]
**New Additions:**
Added an option to let Unitframe and/or Nameplate frames update their Health, Power, and/or Auras at consistent rate (between 0.1 and 0.5 of a second) rather than using Blizzard's event system for when to update. This is an opt-in method that is less recommended but might solve issues where the update isn't received correctly otherwise.
Added an option to play a sound if you select a unit and/or if you receive a battle resurrect. Both are disabled by default.
Quest Icons, Raid Marker, and Healer Icon on nameplates will now be shown in nameonly mode.
Added Tank Icon, which is similar to Healer Icon in PVP.
**Bug Fixes:**
Fixed Reverse fill on Power elements on Unitframes.
Fixed Hovered Hyperlinks when scrolling in the Chat.
Fixed Unitframes (other than Player) which had their Power style set to Offset from being unchangeable.
Fixed Target Buff Default Filters.
Fixed Cooldown Text Defaults.
Fixed an issue where a profile error about 'global' or 'private' not existing would happen from the Skin module.
Fixed the Classification indicator on nameplates.
Fixed (hopefully) a Smart Aura Position setting issue which would cause the Buffs and Debuffs on Unitframes to cause a SetPoint error.
**Misc. Changes:**
Added more position values for the Elite Icon on Nameplates.
Added the ability to show Toy ID when Tooltips have the Spell ID setting enabled.
Removed Cooldown Top Aura font override setting as it's not needed, the setting for Buff or Debuffs are in their Aura settings.
Reworked the way we attempt to skin other addon’s options which use the Ace3 library.
Removed some of the excessive options in Buff Indicator which were overrides which were left over from the old code.
Simplified the OrderHall Talent Frame skin (which is also used by the new 8.3 talent frame).
Optimized more of the Bag module code.
___
### Version 11.27 [ December 14th 2019 ]
......
......@@ -160,7 +160,7 @@ local function updateIcon(element, unit, index, offset, filter, isDebuff, visibl
nameplateShowSelf, spellID, canApply, isBossDebuff, casterIsPlayer, nameplateShowAll,
timeMod, effect1, effect2, effect3 = UnitAura(unit, index, filter)
-- ElvUI block
-- ElvUI changed block
if element.forceShow or element.forceCreate then
spellID = 47540
name, _, texture = GetSpellInfo(spellID)
......@@ -530,6 +530,7 @@ local function ForceUpdate(element)
return Update(element.__owner, 'ForceUpdate', element.__owner.unit)
end
-- ElvUI changed block
local onUpdateElapsed, onUpdateWait = 0, 0.25
local function onUpdateAuras(self, elapsed)
if onUpdateElapsed > onUpdateWait then
......@@ -558,17 +559,22 @@ local function SetAuraUpdateMethod(self, state, force)
end
end
end
-- end block
local function Enable(self)
-- ElvUI changed block
if not self.updateAurasFrame then
self.updateAurasFrame = CreateFrame('Frame', nil, self)
self.updateAurasFrame.__owner = self
end
-- end block
if(self.Buffs or self.Debuffs or self.Auras) then
-- ElvUI changed block
self.SetAuraUpdateSpeed = SetAuraUpdateSpeed
self.SetAuraUpdateMethod = SetAuraUpdateMethod
SetAuraUpdateMethod(self, self.effectiveAura, true)
-- end block
local buffs = self.Buffs
if(buffs) then
......@@ -635,9 +641,11 @@ local function Enable(self)
end
local function Disable(self)
-- ElvUI changed block
if self.updateAurasFrame then
self.updateAurasFrame:SetScript('OnUpdate', nil)
end
-- end block
if(self.Buffs or self.Debuffs or self.Auras) then
self:UnregisterEvent('UNIT_AURA', UpdateAuras)
......
......@@ -269,6 +269,7 @@ local function SetColorThreat(element, state)
end
end
-- ElvUI changed block
local onUpdateElapsed, onUpdateWait = 0, 0.25
local function onUpdateHealth(self, elapsed)
if onUpdateElapsed > onUpdateWait then
......@@ -301,6 +302,7 @@ local function SetHealthUpdateMethod(self, state, force)
end
end
end
-- end block
local function Enable(self, unit)
local element = self.Health
......@@ -312,9 +314,11 @@ local function Enable(self, unit)
element.SetColorTapping = SetColorTapping
element.SetColorThreat = SetColorThreat
-- ElvUI changed block
self.SetHealthUpdateSpeed = SetHealthUpdateSpeed
self.SetHealthUpdateMethod = SetHealthUpdateMethod
SetHealthUpdateMethod(self, self.effectiveHealth, true)
-- end block
if(element.colorDisconnected) then
self:RegisterEvent('UNIT_CONNECTION', ColorPath)
......@@ -347,7 +351,7 @@ local function Disable(self)
if(element) then
element:Hide()
element:SetScript('OnUpdate', nil)
element:SetScript('OnUpdate', nil) -- ElvUI changed
self:UnregisterEvent('UNIT_HEALTH_FREQUENT', Path)
self:UnregisterEvent('UNIT_HEALTH', Path)
self:UnregisterEvent('UNIT_MAXHEALTH', Path)
......
......@@ -38,10 +38,14 @@ local function Update(self, event)
element:PreUpdate()
end
local isLeader = UnitLeadsAnyGroup(unit)
-- ElvUI changed block
local isLeader
if IsInInstance() then
isLeader = UnitIsGroupLeader(unit)
else
isLeader = UnitLeadsAnyGroup(unit)
end
-- end block
if(isLeader) then
element:Show()
......
......@@ -347,6 +347,7 @@ local function SetFrequentUpdates(element, state)
end
end
-- ElvUI changed block
local onUpdateElapsed, onUpdateWait = 0, 0.25
local function onUpdatePower(self, elapsed)
if onUpdateElapsed > onUpdateWait then
......@@ -382,6 +383,7 @@ local function SetPowerUpdateMethod(self, state, force)
end
end
end
-- end block
local function Enable(self)
local element = self.Power
......@@ -394,9 +396,11 @@ local function Enable(self)
element.SetColorThreat = SetColorThreat
element.SetFrequentUpdates = SetFrequentUpdates
-- ElvUI changed block
self.SetPowerUpdateSpeed = SetPowerUpdateSpeed
self.SetPowerUpdateMethod = SetPowerUpdateMethod
SetPowerUpdateMethod(self, self.effectivePower, true)
-- end block
if(element.colorDisconnected) then
self:RegisterEvent('UNIT_CONNECTION', ColorPath)
......@@ -434,7 +438,7 @@ local function Disable(self)
if(element) then
element:Hide()
element:SetScript('OnUpdate', nil)
element:SetScript('OnUpdate', nil) -- ElvUI changed
self:UnregisterEvent('UNIT_DISPLAYPOWER', Path)
self:UnregisterEvent('UNIT_MAXPOWER', Path)
self:UnregisterEvent('UNIT_POWER_BAR_HIDE', Path)
......
This diff is collapsed.
......@@ -179,7 +179,7 @@ local DEVELOPERS = {
"Omega1970",
"Hydrazine",
"Blazeflack",
"NihilisticPandemonium",
"|cffff2020NihilisticPandemonium|r",
"|cffff7d0aMerathilis|r",
"|cff4fd8d1S|cff50dabfi|cff51ddaem|cff52df9dp|cff53e18cy|cff5ae27b, |cff91de5bb|cffaddb4bu|cffc8d93bt |cffd8c73dm|cffdabc44y |cffdda652n|cffe09e59a|cffe39861m|cffe69268e |cffed8777n|cffef828ae|cfff17d9ce|cfff378aed|cfff573c0s |cffe668d2t|cffd962d5o |cffbe57dcb|cffac62dce |cff8099d7l|cff6ab5d4o|cff54d1d1n|cff4fd8d1g|cff4fd8d1e|cff4fd8d1r|cff4fd8d1.",
"|cff0070DEAzilroka|r",
......
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