Mercurial > wow > turok
diff Turok/Modules/Timer/Presets.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 | 0b1a2f3dbfc4 |
line wrap: on
line diff
--- a/Turok/Modules/Timer/Presets.lua Sun Feb 21 08:49:34 2016 -0500 +++ b/Turok/Modules/Timer/Presets.lua Sun Feb 21 13:08:30 2016 -0500 @@ -1,8 +1,12 @@ local ADDON, Tk = ... local T = Tk.Addon local mod, tinsert, ipairs, pairs = T.modules.TimerControl, tinsert, ipairs, pairs -local print = function(...) print('TimerPresets', ...) end - +local print = function(...) + if not DEBUG then return end + if _G.Devian and _G.DevianDB.workspace ~= 1 then + _G.print('TimerPresets', ...) + end +end --- Timer config presets @@ -42,7 +46,7 @@ }, ["DoTs"] = { anchor ='BOTTOM', anchorTo='TOP', - parent='TekplayerCastBar', + parent='TkPowerBar', display = 'icon', size = 48, height = 48, width = 48, @@ -201,7 +205,7 @@ absolute = true, x = 0, y = -10, width = 300, height = 10, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', - parent = 'TekplayerCastBar', padding = 0, spacing = 0, + parent = 'TkPowerBar', padding = 0, spacing = 0, foreground_inset = 0, foreground_color = {1,1,1,1}, foreground_blend = 'ADD', background_color = {0,0,0,0}, @@ -224,7 +228,7 @@ { virtual = true, name = "Hunter", playerClass = 'HUNTER', unit = 'player', container = 'default', display= 'icon', }, { virtual = true, name = "HunterSticky", inherits = "Hunter", - showAura = true, persist = true, }, + overrideAura = true, persist = true, }, { virtual = true, name = "HunterBar", playerClass = 'HUNTER', unit = 'player', }, ---- Talents @@ -237,7 +241,15 @@ inherits= "HunterSticky", name = "Animal Power", type = 'cooldown', talentRow = 5, - trace = true}, + trace = true, + args = { + talentRow = { + default = {overrideDuration = nil}, + [1] = {overrideDuration = 15}, + [3] = {overrideDuration = 40}, + }, + }, + }, --- Spells { inherits = 'Hunter', name = "Camouflage", @@ -279,7 +291,7 @@ hideIcon = true, leftText = "", rightText = "%p", width = 300, height = 8,padding = 0, spacing = 0, - absolute = true, x = 0, y = 0, anchor = 'TOPLEFT', anchorTo = 'TOPLEFT', parent = 'TekplayerCastBar', strata='MEDIUM', + absolute = true, x = 0, y = 0, anchor = 'TOPLEFT', anchorTo = 'TOPLEFT', parent = 'TkPowerBar', strata='MEDIUM', foreground_color = {1,.125,0.43,1}, foreground_blend = 'ADD', foreground_inset = 0, background_color = {.5,.5,.5,0}, background_blend = 'BLEND', }, @@ -291,7 +303,7 @@ hideIcon = true, leftText = "", rightText= "", width= 330, height = 12, padding = 0, - absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TekplayerCastBar', level = 1, + absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TkPowerBar', level = 1, foreground_color = {1,0,0,1}, foreground_blend = 'BLEND', sound_active = '', sound_hidden = '', sound_passive = '', }, @@ -303,7 +315,7 @@ hideIcon = true, leftText = "", rightText= "", height = 12, width= 160, padding = 0, - absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TekplayerCastBar', level = 2, + absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TkPowerBar', level = 2, foreground_color = {1,1,0,1}, foreground_blend = 'BLEND', sound_active = '', sound_hidden = '', sound_passive = '', }, @@ -365,7 +377,7 @@ unit = 'target', filters = 'PLAYER|HARMFUL', spellID = 184915, playerClass = 'PRIEST', specPage = 3, - parent = 'TekplayerCastBar', + parent = 'TkPowerBar', container = 'DoTs', order = 1, sound_active = '',