Mercurial > wow > turok
diff Turok/Modules/Combat/Castbar.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/Castbar.lua Sun Feb 21 08:49:34 2016 -0500 +++ b/Turok/Modules/Combat/Castbar.lua Sun Feb 21 13:08:30 2016 -0500 @@ -8,7 +8,7 @@ local print, tostring, tonumber, rep, pairs, min, format, unpack, select, strpad = print, tostring, tonumber, string.rep, pairs, math.min, string.format, unpack, select, string.rep local GetTime, UnitCastingInfo, UnitChannelInfo, GetSpellInfo, GetSpellTabInfo = GetTime, UnitCastingInfo, UnitChannelInfo, GetSpellInfo, GetSpellTabInfo local floor = math.floor -local T = Turok +local T, _G = Turok, _G local db local PING_CEILING = 190 -- transpacific local PING_MIDLINE = 100 @@ -20,6 +20,16 @@ _G.print('Tek', ...) end end +local uprint = function(...) + if _G.Devian and _G.DevianDB.workspace ~= 1 then + _G.print('Update', ...) + end +end +local mprint = function(...) + if _G.Devian and _G.DevianDB.workspace ~= 1 then + _G.print('Main', ...) + end +end local EVENT_COLOR = '|cFF44FF44' local EVENT_COLOR2 = '|cFF88FF88' @@ -449,7 +459,7 @@ self.percent = self.fill_inverse and 0 or 1 self.elapsed = time - s.endTime end - --_G.print('Update',' ',self.unit, self.value, self.percent) + uprint(' ',self.unit, self.value, self.percent) else self.value = 1000 self.percent = 1 @@ -464,7 +474,7 @@ -- There is no event data such as spellID directly available, so this is essentially the biggest constraint we have on what -- the castingbar can depend on. function mod:UpdateUnit(unit) - local print = function(...) _G.print('Update', ...) end + local print = function(...) uprint(...) end print(cText 'GUID changed:|cFFFFFF99', unit) local c = mod.castbar[unit] if c.channeling or c.casting then @@ -502,7 +512,7 @@ end end mod.PLAYER_TARGET_CHANGED = function(self, ...) - _G.print('Main', cPink(self),...) + mprint(cPink(self),...) self:UpdateUnit('target') end mod.PLAYER_FOCUS_CHANGED = function(self)