From 04fc0f2d131138f6e52efa1ea79c3ba466059381 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 26 Sep 2013 05:34:13 +0000 Subject: [PATCH] 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 --- OvaleBestAction.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.9.5