Mercurial > wow > buffalo2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Modules/Bank.lua Sun Oct 15 16:47:22 2017 -0400 @@ -0,0 +1,37 @@ +-- +-- Background data gathering for things that are only available from set places + + +local print = DEVIAN_WORKSPACE and function(...) print('Bank', ...) end or nop +local profileUpdate, needsUpdate +VeneerBankDBMixin = {} +local m = VeneerBankDBMixin + +function m:Setup() + self:RegisterEvent('BANKFRAME_OPENED') + self:RegisterEvent('BANKFRAME_CLOSED') + + self:SetPoint('CENTER', UIParent, 'CENTER') + self:SetSize(100,100) + m.Info:SetPoint('CENTER', self, 'CENTER') + + self:Show() + print('Setup()') + + + self.Info:SetFontObject(GameFontNormal) + self.Info:SetText('Setup') + + for k,v in pairs(self) do + print(k,v) + end +end + +function m:OnEvent(event) + print('OnEvent', event) + self.Info:SetText(event) +end + + + +