Mercurial > wow > buffalo2
comparison TimeManager/TimeManager.lua @ 59:07ef62fe201f
Re-write of BuffFrame module:
- uses secure hooks on blizzard BuffFrame.lua functions to determine needed action
- make use of built-in table behavior to reduce unnecessary frame updates
| author | Nenue |
|---|---|
| date | Thu, 28 Jul 2016 18:27:56 -0400 |
| parents | dd9b5f59632c |
| children |
comparison
equal
deleted
inserted
replaced
| 58:f253baf6022d | 59:07ef62fe201f |
|---|---|
| 54 end | 54 end |
| 55 | 55 |
| 56 -- runs once per ui load | 56 -- runs once per ui load |
| 57 clock.OnEnable = function(self) | 57 clock.OnEnable = function(self) |
| 58 self:SetParent(_G.UIParent) | 58 self:SetParent(_G.UIParent) |
| 59 self:SetPoint('TOPRIGHT', _G.UIParent, 'TOPRIGHT', -100, -2) | |
| 60 self:SetScript('OnUpdate', clock.OnUpdate) | 59 self:SetScript('OnUpdate', clock.OnUpdate) |
| 61 self:Show() | 60 self:Show() |
| 62 self.time:SetText('Clock stuff') | 61 self.time:SetText('Clock stuff') |
| 63 end | 62 end |
| 64 | 63 |
