View Single Post
09/14/15, 03:49 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Hey zgwortz,

welcome to ESO lua developing.
Afaik there is no library for new added/updated icons at the inventory lists.

Don't take my addon FCO ItemSaver as a copy&paste addon as it grew during my learning sessions of lua
I bet there are several parts I could improve in it.

But the general approach to hook the inventory listView and add the textures is the same as ItemSaver is using:
-Hook the PLAYER_INVENTORY.inventories.listView.dataTypes[n]
-save the original callbackFunction
-create a new callback function which calls the original callback function first, and then execute your additional code

You can check my addon's function CreateTextures() to get the code example.
  Reply With Quote