View Single Post
Unread 07-03-12, 06:56 PM   #50
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Mod
Featured
Join Date: Sep 2008
Posts: 1,172
Is GetTexture() bugged? I've been struggling for ages with a buff reminder script which works on live but doesn't on beta. It behaves extremely strangely: GetTexture() (in this case at least) returns nil, while a valid texture is set. This code, for instance:

Code:
texture = select(3, GetSpellInfo(buff))
self.icon:SetTexture(texture)
print(texture)
print(self.icon:GetTexture())
Returns:

Interface\Icons\Spell_Holy_InnerFire
nil
The texture is set, though. Similarly, when I do it directly:

Code:
self.icon:SetTexture(select(3, GetSpellInfo(buff)))
The texture is set, but GetTexture() returns nil.
Haleth is offline