Quantcast WoWInterface - View Single Post - Inspector Gadget
View Single Post
07-28-16, 04:46 AM   #13
Non-Canadian Luzer!
VincentSDSH's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 350
PMed you a zip w/ LDB and Minimap icon code added (basic implementation) -- I needed a break from coding a module for ExecAssist.

You'll want to add a stall to allow for GET_ITEM_INFO_RECEIVED to come in. If you do an item lookup via ID it'll query the server if you don't have the item cached and you have to wait for that event (arg1=item data is received for) before you proceed or otherwise safe-handle the nil. A really blunt way to do this is GetItemInfo() to a table for everything and if you get returns, call your usage routine; otherwise, watch the event for missing data and call the usage routine when the table is properly filled -- as I said, really blunt (but it could be worse: at least you know the itemID exists and don't have to deal with telling the user they typed in something wrong)
AddonsExecutive Assistant User Configurable To-Do ListLegible Mail Choose the Font for Your Mail