Mercurial > wow > turok
diff Turok/Modules/Combat/Powerbar.lua @ 9:9400a0ff8540
Ugh
Timer:
- container update directionality
- talent update iterates over a non-volatile table to carry out updates
- index management steps organized
- talentRow status implemented, returns the spell associated with the talent chosen from that row
CombatLog:
- sort out font controls and unbork arguments
author | Nenue |
---|---|
date | Sun, 21 Feb 2016 13:08:30 -0500 |
parents | a9b8b0866ece |
children |
line wrap: on
line diff
--- a/Turok/Modules/Combat/Powerbar.lua Sun Feb 21 08:49:34 2016 -0500 +++ b/Turok/Modules/Combat/Powerbar.lua Sun Feb 21 13:08:30 2016 -0500 @@ -21,7 +21,11 @@ _G.print('PowerBar', ...) end end -print('Peep!', ...) +local uprint = function(...) + if _G.Devian and _G.DevianDB.workspace ~= 1 then + _G.print('Update', ...) + end +end local addon, tg = ... tg.what = tostring(tg.what)..'more' print(tg.what) @@ -499,7 +503,7 @@ -- we only want to update at specific points mod.Bar_Event = function(self, event, ...) local unit, token = ... - _G.print('Update', event, unit, token) + uprint( event, unit, token) if token and unit == 'player' then mod.Bar_Power(self, token) end @@ -508,7 +512,7 @@ end mod.Bar_Aura = function (self, event, unit) - _G.print('Update','bar updating function called', event, unit) + uprint('bar updating function called', event, unit) if event == 'UNIT_AURA' or event == nil then @@ -537,10 +541,10 @@ -- 1=cur, 2=max, 3=type, 4=token p[1] = UnitPower('player', p[3]) p[2] = UnitPowerMax('player', p[3]) - _G.print('Update',' ', table.concat(self.primary[token],', ')) + uprint(' ', table.concat(self.primary[token],', ')) if p[4] == 1 then - _G.print('Update', 'progress:', p[1]/p[2]) + uprint( 'progress:', p[1]/p[2]) --print(unpack(p)) self.powerText:SetText(p[1]) self:SetProgress(p[1]/p[2])