View Single Post
09-18-14, 10:37 AM   #11
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Lombra View Post
There's a perfect event to use for the texture thing, too. You should be able to use the frame in question, I reckon.
Code:
CharacterBackSlot:HookScript("OnEvent", function(self, event, slot, hasItem)
	if event == "PLAYER_EQUIPMENT_CHANGED" and slot == self:GetID() and not hasItem then
		self.icon:SetTexture([[stuff]])
	end
end)
Nope, the event is okay, but the server side is very slow handling the items you equip or put them into bags or delete them, so the texture changes will be late and glitchy.
  Reply With Quote