Wikia

WoWWiki

Watchlist Recent changes

Talk:API GameTooltip SetOwner

Back to page

I think it does slightly more... Edit

For example open your backpack and run this command:

/run GameTooltip:SetOwner(ContainerFrame0Item1);

Game tooltip will in fact display information about item in the first slot of your backpack! Without in fact calling GameTooltip:SetBagItem(). This slightly confuses me as then it is not clear where this information comes from and what :SetBagItem(), :SetInventoryItem() are actually for... Anyone knows? Fibby 23:31, 19 September 2007 (UTC)

Solution Edit

This happens because of the new tooltip update system as it will execute the default OnEnter function of the item frame on every update. To avoid this, simply change the frame.UpdateTooltip parameter to your update function. For example, if you have a function called:

MyAddon_ItemFrame_OnUpdate(a) { ... }

Put this in the OnLoad event of the frame:

this.UpdateTooltip = MyAddon_ItemFrame_OnUpdate(a);

--Uniring 14:56, 6 November 2007 (UTC)

Pages on WoWWiki

95,776pages on
this wiki

Latest Photos

Add a Photo
58,077photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki