- Updated flask and food list to BFA.

- Framework update.
- RaidCheck plugin updated.
- API added: _detalhes:GetSpecFromSerial (guid)
- API added: _detalhes:GetIconTexture (iconType, withAlpha)
- API added: _detalhes:GetRoleIcon (role)
- API added: _detalhes:GetSpecIcon (spec)
This commit is contained in:
Tercio
2018-08-19 15:27:19 -03:00
parent e3e63dcd67
commit 5217fdd9b2
9 changed files with 529 additions and 467 deletions
+22 -9
View File
@@ -4805,20 +4805,26 @@ DF.IconRowFunctions = {
local iconFrame = self.IconPool [self.NextIcon]
if (not iconFrame) then
local newIconFrame = CreateFrame ("cooldown", "$parentIconCooldown" .. self.NextIcon, self, "CooldownFrameTemplate")
local newIconFrame = CreateFrame ("frame", "$parentIcon" .. self.NextIcon, self)
newIconFrame:SetSize (self.options.icon_width, self.options.icon_height)
newIconFrame.Texture = newIconFrame:CreateTexture (nil, "background")
newIconFrame.Texture:SetAllPoints()
newIconFrame.Text = newIconFrame:CreateFontString (nil, "overlay", "GameFontNormal")
newIconFrame.Text:SetPoint ("center")
newIconFrame.Text:Hide()
newIconFrame:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
newIconFrame:SetBackdropBorderColor (0, 0, 0, 0)
newIconFrame:EnableMouse (false)
local cooldownFrame = CreateFrame ("cooldown", "$parentIconCooldown" .. self.NextIcon, self, "CooldownFrameTemplate")
cooldownFrame:SetAllPoints()
cooldownFrame:EnableMouse (false)
newIconFrame.Text = cooldownFrame:CreateFontString (nil, "overlay", "GameFontNormal")
newIconFrame.Text:SetPoint ("center")
newIconFrame.Text:Hide()
newIconFrame.Cooldown = cooldownFrame
self.IconPool [self.NextIcon] = newIconFrame
iconFrame = newIconFrame
end
@@ -4852,8 +4858,15 @@ DF.IconRowFunctions = {
return iconFrame
end,
SetIcon = function (self, spellId, borderColor, startTime, duration)
local spellName, _, spellIcon = GetSpellInfo (spellId)
SetIcon = function (self, spellId, borderColor, startTime, duration, forceTexture)
local spellName, _, spellIcon
if (not forceTexture) then
spellName, _, spellIcon = GetSpellInfo (spellId)
else
spellIcon = forceTexture
end
if (spellIcon) then
local iconFrame = self:GetIcon()
@@ -4864,10 +4877,10 @@ DF.IconRowFunctions = {
iconFrame:SetBackdropBorderColor (Plater:ParseColors (borderColor))
else
iconFrame:SetBackdropBorderColor (0, 0, 0 ,0)
end
end
if (startTime) then
CooldownFrame_Set (iconFrame, startTime, duration, true, true)
CooldownFrame_Set (iconFrame.Cooldown, startTime, duration, true, true)
if (self.options.show_text) then
iconFrame.Text:Show()