View Single Post
03-03-14, 11:39 AM   #10
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
I just tried this with my lvl 13 shaman (don't has windfury right now):
Lua Code:
  1. hooksecurefunc('TemporaryEnchantFrame_Update', function(self,...)
  2.     local a = GetSpellTexture(8232) --(windfury)
  3.     TempEnchant1Icon:SetTexture(a)
  4. end)

Result: texture is 'empty' (means GetTexture() returns the correct path but the texture is not visible).

So I tried
Lua Code:
  1. hooksecurefunc('TemporaryEnchantFrame_Update', function(self,...)
  2.     local a = GetSpellTexture(8024) --(Flametongue)
  3.     TempEnchant1Icon:SetTexture(a)
  4. end)

Shows the texture as expected. (lvl 14 shaman has Flametongue)

Then I tried

Lua Code:
  1. hooksecurefunc('TemporaryEnchantFrame_Update', function(self,...)
  2.     local a = GetSpellTexture(8232) --windfury
  3.     ActionButton1Icon:SetTexture(a)
  4.     TempEnchant1Icon:SetTexture(a)
  5. end)
(I know its senseless ... just to see what would happen)

Result: TempEnchant1Icon shows the windfury texture.

Last edited by Duugu : 03-03-14 at 12:25 PM.
  Reply With Quote