comparison ObjectiveTracker.lua @ 3:3397aae1f44d

- use the correct key value when searching for action buttons - handle pre-built frames from XML
author Nenue
date Thu, 31 Mar 2016 07:32:05 -0400
parents a2396b03ce63
children
comparison
equal deleted inserted replaced
2:a2396b03ce63 3:3397aae1f44d
200 isHandled = true 200 isHandled = true
201 end 201 end
202 if not isHandled then 202 if not isHandled then
203 print('|cFFFF4400'..event..'|r', ...) 203 print('|cFFFF4400'..event..'|r', ...)
204 end 204 end
205 --@debug@
206 if Devian and Devian.InWorkspace() then
207 frame_guide_init(Scroller)
208 frame_guide(Scroller, Scroller)
209 end
210 end 205 end
211 206
212 mod.SetEvents = function() 207 mod.SetEvents = function()
213 208
214 for event, _ in pairs(SmallEvents) do 209 for event, _ in pairs(SmallEvents) do
221 mod:SetScript('OnEvent', mod.OnEvent) 216 mod:SetScript('OnEvent', mod.OnEvent)
222 end 217 end
223 218
224 function mod:OnInitialize() 219 function mod:OnInitialize()
225 self.InitializeTrackers() 220 self.InitializeTrackers()
226 221 self.InitializeXPTracker()
227 mod.SetEvents() 222 mod.SetEvents()
228 ObjectiveTrackerFrame:UnregisterAllEvents() 223 ObjectiveTrackerFrame:UnregisterAllEvents()
229 ObjectiveTrackerFrame:Hide() 224 ObjectiveTrackerFrame:Hide()
230 225
231 end 226 end