Allow a "texture" parameter for SpellInfo to use a specific texture.
Johnny C. Lam [09-26-13 - 05:34]
Allow a "texture" parameter for SpellInfo to use a specific texture.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1029 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleBestAction.lua b/OvaleBestAction.lua
index 6a71a03..85bb08e 100644
--- a/OvaleBestAction.lua
+++ b/OvaleBestAction.lua
@@ -783,10 +783,13 @@ function OvaleBestAction:GetActionInfo(element)
end
end
end
+ if si.texture then
+ actionTexture = "Interface\\Icons\\" .. si.texture
+ end
end
local spellName = OvaleData:GetSpellName(spellId)
- actionTexture = API_GetSpellTexture(spellId)
+ actionTexture = actionTexture or API_GetSpellTexture(spellId)
actionInRange = API_IsSpellInRange(spellName, target)
actionUsable = API_IsUsableSpell(spellId)
actionShortcut = nil