Thread: Update 5.1
View Single Post
08/09/19, 10:43 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
The following functions got removed / replaced:
CanItemBeSmithingExtractedOrRefined
-> Replaced by 2 functions, one for each panel:
CanItemBeDeconstructed
CanItemBeRefined


ZO_Enchanting:SetEnchantingMode(enchantingCtrl, enchantingMode)
-> Replaced by ZO_Enchanting:OnModeUpdated()
This function does not have any parameters anymore. The actual enchantingMode can be determined by reading ENCHANTING.enchantingMode now

Here is an example for the enchanting SetEnchantingMode replacement PostHook to get the changed enchantingMdoe properly:
Lua Code:
  1. origEnchantingSetEnchantMode = ZO_Enchanting.OnModeUpdated
  2.         ZO_Enchanting.OnModeUpdated = function(self, ...)
  3.             origEnchantingSetEnchantMode(self, ...)
  4.             --do your stuff here with the changed enchantingMode
  5.             --e.g. updateFiltersInInventory(self.enchantingMode)
  6.         end

Last edited by Baertram : 08/09/19 at 01:25 PM.
  Reply With Quote