Mercurial > wow > buffalo2
view 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 source
-- -- 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