comparison Modules/Bank.lua @ 125:3f4794dca91b

template load order and Script handlers linkage
author Nenue
date Sun, 15 Oct 2017 16:47:22 -0400
parents
children 3de635cda288
comparison
equal deleted inserted replaced
124:07fe8fae8ca8 125:3f4794dca91b
1 --
2 -- Background data gathering for things that are only available from set places
3
4
5 local print = DEVIAN_WORKSPACE and function(...) print('Bank', ...) end or nop
6 local profileUpdate, needsUpdate
7 VeneerBankDBMixin = {}
8 local m = VeneerBankDBMixin
9
10 function m:Setup()
11 self:RegisterEvent('BANKFRAME_OPENED')
12 self:RegisterEvent('BANKFRAME_CLOSED')
13
14 self:SetPoint('CENTER', UIParent, 'CENTER')
15 self:SetSize(100,100)
16 m.Info:SetPoint('CENTER', self, 'CENTER')
17
18 self:Show()
19 print('Setup()')
20
21
22 self.Info:SetFontObject(GameFontNormal)
23 self.Info:SetText('Setup')
24
25 for k,v in pairs(self) do
26 print(k,v)
27 end
28 end
29
30 function m:OnEvent(event)
31 print('OnEvent', event)
32 self.Info:SetText(event)
33 end
34
35
36
37