Caching C_TransmogCollection.GetAppearanceSources names
This was in response to http://www.wowinterface.com/forums/s...ad.php?t=53787, but it had little to do with it
I've been sorting the visuals alphabetically in WardrobeSort but GetAppearanceSources would not include the name and quality half of the time So I first had to cache them all :( There is TRANSMOG_COLLECTION_ITEM_UPDATE but it doesn't have any return values for the respective item, instead it uses WardrobeCollectionFrame.tooltipAppearanceID or something Is there a better way to go about this? Lua Code:
|
Don't know if this helps, but you could try responding to the event and setting the next frame-OnUpdate there. That's what I do when mass querying item info.
|
Quote:
I thought of different ways to do it, but it mostly seemed to only complicate things further for me Especially since TRANSMOG_COLLECTION_ITEM_UPDATE doesn't have any arguments like GET_ITEM_INFO_RECEIVED does, and is generally not used for mass querying, but only for the mouseovered visual on the gametooltip _____ Another question, the previously posted code is generating a lot of garbage when caching(?) or sorting. It jumps between 1-9 MB of memory, but I have no idea why :confused: I do call WardrobeCollectionFrame_GetSortedAppearanceSources for every visual until the name is cached, but that shouldn't use that much memory ... right? (Edit 7/17) I finally realized discarding tables every OnUpdate until name was finally included is not really a memory-efficient way to do this (╯°□°)╯︵ ┻━┻ |
All times are GMT -6. The time now is 05:09 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI