Mercurial > wow > buffalo2
comparison BuffFrame/BuffFrame.lua @ 49:16465f3fd919
- remove UpdateAnchorAnchors and use hardlink for the one frame that this applied to
author | Nenue |
---|---|
date | Fri, 29 Apr 2016 10:50:27 -0400 |
parents | 9837069e366a |
children | d7655c4e6e06 |
comparison
equal
deleted
inserted
replaced
48:9837069e366a | 49:16465f3fd919 |
---|---|
7 -------------------------------------------- | 7 -------------------------------------------- |
8 | 8 |
9 local B = select(2,...).frame | 9 local B = select(2,...).frame |
10 local M = B:RegisterModule('BuffFrame') | 10 local M = B:RegisterModule('BuffFrame') |
11 | 11 |
12 M.PlayerBuffsActive = {} | |
12 function M:OnInitialize() | 13 function M:OnInitialize() |
13 local displays = M.displays | 14 local displays = M.displays |
14 local c= M.Conf | 15 |
15 -- suffix tables | 16 -- suffix tables |
16 | |
17 M.drawn = B.Abstract(displays, 'drawn', M.drawn ) | 17 M.drawn = B.Abstract(displays, 'drawn', M.drawn ) |
18 -- Lesser extent of guide frames that have been positioned | 18 -- Lesser extent of guide frames that have been positioned |
19 M.positioned = B.Abstract(displays, 'positioned', M.positioned) | 19 M.positioned = B.Abstract(displays, 'positioned', M.positioned) |
20 -- Backdrop style frame | 20 -- Backdrop style frame |
21 M.decors = B.Abstract(displays, 'decorator', M.decors) | 21 M.decors = B.Abstract(displays, 'decorator', M.decors) |
29 | 29 |
30 for name, display in pairs(displays) do | 30 for name, display in pairs(displays) do |
31 display.conf = setmetatable({}, { | 31 display.conf = setmetatable({}, { |
32 __index = function(_, k) | 32 __index = function(_, k) |
33 --print('config check '.. name .. k) | 33 --print('config check '.. name .. k) |
34 return c[name .. k] or c['BuffButton' .. k] | 34 return M.Conf[name .. k] or M.Conf['BuffButton' .. k] |
35 end, | 35 end, |
36 __newindex = function(_, k , v) | 36 __newindex = function(_, k , v) |
37 c[name..k] = v | 37 M.Conf[name..k] = v |
38 end, | 38 end, |
39 }) | 39 }) |
40 end | 40 end |
41 | 41 |
42 M:RegisterUnitEvent("UNIT_AURA", "player", "vehicle") | 42 M:RegisterUnitEvent("UNIT_AURA", "player", "vehicle") |
52 M.ShowMissingBuffs = (IsInGroup() and M.Conf.RaidShowMissing) | 52 M.ShowMissingBuffs = (IsInGroup() and M.Conf.RaidShowMissing) |
53 | 53 |
54 for name, auraType in pairs(displays) do | 54 for name, auraType in pairs(displays) do |
55 | 55 |
56 M.UpdateBuffs(auraType.buffName, true) | 56 M.UpdateBuffs(auraType.buffName, true) |
57 print(name, auraType) | 57 --print(name, auraType) |
58 _G[name..'Anchor']:EnableMouse(B.Conf.ConfigMode) | 58 _G[name..'Anchor']:EnableMouse(B.Conf.ConfigMode) |
59 end | 59 end |
60 | 60 |
61 M.UpdateAnchorAnchors() | |
62 M.UpdateRaidBuffs() | 61 M.UpdateRaidBuffs() |
63 M.UpdateBuffsTodo() | 62 M.UpdateBuffsTodo() |
64 end | 63 end |