Lua error fixes after patch 8.1.5 and removed "ItemButtonTemplate", works well with patch 8.2 #84


  • Fixed
Closed
  • qenozis created this issue Jul 13, 2019

    "ItemButtonTemplate" has been removed in patch 8.1.5, so to make this addon work again, replace phrase "Button" with "ItemButton" and  "ItemButtonTemplate" with "SecureActionButtonTemplate" in every CreateFrame() function in the file BankItems.lua, for example:

     

    CreateFrame("Button", "BankItems_Item"..i, BankItems_Frame, "ItemButtonTemplate")

    to:

    CreateFrame("ItemButton", "BankItems_Item"..i, BankItems_Frame, "SecureActionButtonTemplate")

     

    There are 6 places to do this replacement and the addon is back to life. You can find them by searching phrase "ItemButtonTemplate" in the file. Save changes and reload your UI in game or relog.

  • qenozis added a tag Fixed Jul 13, 2019
  • qenozis added an attachment BankItems.lua Jul 13, 2019

    BankItems.lua file fix fixes

    Or just download and replace the attached file in the installed addon directory (but leave the original name of the file "BankItems.lua", uploading here makes the name lowercase unfortunately).

  • Spundot posted a comment Jul 29, 2019

     Thanks for this! Your fix works brilliantly!

  • therealstoneweather posted a comment Sep 14, 2019

    awesome thanks, the people who responded to my issue i guess forget that some people (like me) really don't know too much about lua, and as such leave out what to them would be obvious details, this fixed it, thanks again!

  • n0proxy posted a comment Jan 8, 2020

    This fix is also laid out in #79 if anyone wants another source/detailed way to go about fixing this

  • Burstroc closed issue Sep 18, 2020

To post a comment, please login or register a new account.