More GetSpellInfo fixes
This commit is contained in:
@@ -7,7 +7,7 @@ local unpack = unpack
|
||||
local GetTime = GetTime
|
||||
local CreateFrame = CreateFrame
|
||||
local GetSpellLink = GetSpellLink
|
||||
local GetSpellInfo = GetSpellInfo
|
||||
local GetSpellInfo = Details222.GetSpellInfo
|
||||
local _GetSpellInfo = Details.GetSpellInfo
|
||||
local GameTooltip = GameTooltip
|
||||
local IsShiftKeyDown = IsShiftKeyDown
|
||||
|
||||
@@ -7,7 +7,7 @@ local unpack = unpack
|
||||
local GetTime = GetTime
|
||||
local CreateFrame = CreateFrame
|
||||
local GetSpellLink = GetSpellLink
|
||||
local GetSpellInfo = GetSpellInfo
|
||||
local GetSpellInfo = Details222.GetSpellInfo
|
||||
local _GetSpellInfo = Details.GetSpellInfo
|
||||
local GameTooltip = GameTooltip
|
||||
local IsShiftKeyDown = IsShiftKeyDown
|
||||
@@ -605,4 +605,4 @@ function spellsTab.CreateTargetBar(self, index) --~create ~target ~createtarget
|
||||
targetBar:AlignWithHeader(self.Header, "left")
|
||||
|
||||
return targetBar
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ local unpack = unpack
|
||||
local GetTime = GetTime
|
||||
local CreateFrame = CreateFrame
|
||||
local GetSpellLink = GetSpellLink
|
||||
local GetSpellInfo = GetSpellInfo
|
||||
local GetSpellInfo = Details222.GetSpellInfo
|
||||
local _GetSpellInfo = Details.GetSpellInfo
|
||||
local GameTooltip = GameTooltip
|
||||
local IsShiftKeyDown = IsShiftKeyDown
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
local Details = _G.Details
|
||||
local C_Timer = _G.C_Timer
|
||||
local GetSpellInfo = Details.GetSpellInfo
|
||||
local libwindow = LibStub("LibWindow-1.1")
|
||||
|
||||
function Details:OpenEventTrackerOptions(bFromOptionsPanel)
|
||||
@@ -262,7 +263,7 @@ function Details:CreateEventTrackerFrame(parentObject, name)
|
||||
local screenFrame = CreateFrame("frame", name, parentObject or UIParent,"BackdropTemplate")
|
||||
screenFrame:SetPoint("center", UIParent, "center")
|
||||
|
||||
if (not DetailsFramework.IsDragonflight() and not DetailsFramework.IsNonRetailWowWithRetailAPI()) then
|
||||
if (not DetailsFramework.IsDragonflightAndBeyond() and not DetailsFramework.IsNonRetailWowWithRetailAPI()) then
|
||||
screenFrame:SetMinResize (150, 40)
|
||||
screenFrame:SetMaxResize (800, 1024)
|
||||
else
|
||||
|
||||
@@ -6383,7 +6383,7 @@ do
|
||||
spellname_entry:SetPoint("left", spellname, "right", 2, 0)
|
||||
|
||||
local spellid_entry_func = function(arg1, arg2, spellid)
|
||||
local spellname, _, icon = GetSpellInfo(spellid)
|
||||
local spellname, _, icon = _GetSpellInfo(spellid)
|
||||
if (spellname) then
|
||||
spellname_entry:SetText(spellname)
|
||||
addframe.spellIconButton.icon.texture = icon
|
||||
@@ -7226,4 +7226,4 @@ do
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
end
|
||||
--]=]
|
||||
--]=]
|
||||
|
||||
@@ -221,7 +221,7 @@ function Details.Survey.OpenSpellCategoryScreen()
|
||||
local spellId = spellTable[1]
|
||||
--get a line
|
||||
local line = self:GetLine(i)
|
||||
local spellName, _, spellIcon = GetSpellInfo(spellId)
|
||||
local spellName, _, spellIcon = Details.GetSpellInfo(spellId)
|
||||
line.Icon:SetTexture(spellIcon)
|
||||
line.Icon:SetTexCoord(.1, .9, .1, .9)
|
||||
line.SpellNameText.text = spellName
|
||||
@@ -361,4 +361,4 @@ function Details.Survey.OpenSpellCategoryScreen()
|
||||
|
||||
DetailsSpellCategoryFrame.SpellScroll:RefreshScroll()
|
||||
DetailsSpellCategoryFrame:Show()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1958,7 +1958,7 @@ local empty_other_values = {}
|
||||
function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, triggertype, auratype, other_values)
|
||||
|
||||
if (not spellname) then
|
||||
spellname = select(1, GetSpellInfo(spellid))
|
||||
spellname = select(1, _detalhes.GetSpellInfo(spellid))
|
||||
end
|
||||
|
||||
Details:Destroy(empty_other_values)
|
||||
@@ -2783,4 +2783,4 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
DetailsAuraPanel:Show()
|
||||
DetailsPluginContainerWindow.OpenPlugin (DetailsAuraPanel)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user