mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
test
This commit is contained in:
@@ -98,20 +98,20 @@ local function UpdateTooltip()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnEnter()
|
local function OnEnter(self)
|
||||||
if not this:IsVisible() then return end
|
if not self:IsVisible() then return end
|
||||||
|
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT", -5, -5)
|
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT", -5, -5)
|
||||||
this:UpdateTooltip()
|
self:UpdateTooltip()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnLeave()
|
local function OnLeave()
|
||||||
GameTooltip:Hide()
|
GameTooltip:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnClick()
|
local function OnClick(self)
|
||||||
if this.index and this.index > 0 then
|
if self.index and self.index >= 0 then
|
||||||
CancelPlayerBuff(this.index)
|
CancelPlayerBuff(self.index)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -136,9 +136,9 @@ function A:CreateIcon(button)
|
|||||||
E:SetInside(button.highlight)
|
E:SetInside(button.highlight)
|
||||||
|
|
||||||
button.UpdateTooltip = UpdateTooltip
|
button.UpdateTooltip = UpdateTooltip
|
||||||
button:SetScript("OnEnter", OnEnter)
|
button:SetScript("OnEnter", function() OnEnter(this) end)
|
||||||
button:SetScript("OnLeave", OnLeave)
|
button:SetScript("OnLeave", function() OnLeave() end)
|
||||||
button:SetScript("OnClick", OnClick)
|
button:SetScript("OnClick", function() OnClick(this) end)
|
||||||
|
|
||||||
E:SetTemplate(button, "Default")
|
E:SetTemplate(button, "Default")
|
||||||
end
|
end
|
||||||
@@ -414,15 +414,15 @@ function A:UpdateHeader(header)
|
|||||||
weaponPosition = 1
|
weaponPosition = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, 23 do
|
for i = 1, 24 do
|
||||||
local aura, _ = freshTable()
|
local aura, _ = freshTable()
|
||||||
aura.index, aura.untilCancelled = GetPlayerBuff(i, filter)
|
local buffIndex = GetPlayerBuff(i - 1, filter)
|
||||||
if aura.index < 0 then
|
aura.icon = GetPlayerBuffTexture(buffIndex)
|
||||||
releaseTable(aura)
|
if aura.icon then
|
||||||
else
|
aura.count, aura.dispelType, aura.expires = GetPlayerBuffApplications(buffIndex), GetPlayerBuffDispelType(buffIndex), GetPlayerBuffTimeLeft(buffIndex)
|
||||||
aura.icon, aura.count, aura.dispelType, aura.expires = GetPlayerBuffTexture(aura.index), GetPlayerBuffApplications(aura.index), GetPlayerBuffDispelType(aura.index), GetPlayerBuffTimeLeft(aura.index)
|
aura.index = buffIndex
|
||||||
aura.filter = filter
|
aura.filter = filter
|
||||||
sortingTable[i+1] = aura
|
tinsert(sortingTable, aura)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user