comparison Modules/PaperDoll.lua @ 102:1e511e9aaca5

- clean up handler loading inconsistencies; exclude free frames from anchor cluster iterations, and remove extraneous PLAYER_LOGIN handling - added a Setup method to the handler template that creates and reconciles a SavedVariables table for that module
author Nenue
date Wed, 25 Jan 2017 23:11:27 -0500
parents bb38bc0e787f
children 3992b41c637e
comparison
equal deleted inserted replaced
101:f32b63c93275 102:1e511e9aaca5
60 60
61 hooksecurefunc("PaperDollFrame_UpdateStats", function(...) 61 hooksecurefunc("PaperDollFrame_UpdateStats", function(...)
62 self:GetStats(PaperDollItemsFrame, ...) 62 self:GetStats(PaperDollItemsFrame, ...)
63 end) 63 end)
64 64
65 self:RegisterEvent('ADDON_LOADED')
66 self:RegisterEvent('INSPECT_READY') 65 self:RegisterEvent('INSPECT_READY')
67 66 Veneer:AddHandler(self)
68 self.SocketType = {}
69 end 67 end
70 68
71 function VeneerPaperDollMixin:SetupInspectFrame() 69 function VeneerPaperDollMixin:SetupInspectFrame()
72 hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(...) 70 hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(...)
73 self:GetSlotButton(InspectFrame, ...) 71 self:GetSlotButton(InspectFrame, ...)