Dejunk (Sell & Destroy Junk)

Dejunk (Sell & Destroy Junk)

1M Downloads

Humble feature request: Add another parameter to the DejunkBindings_AddToList function for adding items via code.

JoeyJFranklin opened this issue ยท 0 comments

commented

If a user has for example three accounts that they play on then when they add a new item to their inclusions list they have to A) copy the DeJunk saved variable file to the other 2 account's folder B) export their inclusion list or C) just add it on the other two accounts. If however the DejunkBindings_AddToList was changed to something like this

function DejunkBindings_AddToList(listKey, customID)
  local name, link = GameTooltip:GetItem()
  if name and link then
    local id = GetItemInfoFromHyperlink(link)
    Lists[listKey]:Add(id)
  elseif customID then
    Lists[listKey]:Add(customID)
  end
end

then a user could maintain a list of itemIDs in an addon of their own creation that added them to Dejunk programmatically when they logged in.