fb13e34 - Add 2 new aura types
[wowui.git] / kehys / frame.lua
index 57578c7..4301178 100644 (file)
@@ -52,6 +52,8 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.prev = {} -- values stored from previous update
     f.alert = {}; -- alerting auras
     f.heal = {}; -- high healing auras
     f.prev = {} -- values stored from previous update
     f.alert = {}; -- alerting auras
     f.heal = {}; -- high healing auras
+    f.tankcd = {}; -- tank CD auras
+    f.stacks = {}; -- stacking aura tracking
     -- set up periodic updates
     updaters[f] = function()
         if f.updating then
     -- set up periodic updates
     updaters[f] = function()
         if f.updating then
@@ -137,10 +139,19 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.text:SetPoint("CENTER", f, "CENTER", 0, -1);
     f.text:SetFont(STANDARD_TEXT_FONT, 13);
     f.text:Hide();
     f.text:SetPoint("CENTER", f, "CENTER", 0, -1);
     f.text:SetFont(STANDARD_TEXT_FONT, 13);
     f.text:Hide();
+    f.stack = f:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall");
+    f.stack:SetPoint("BOTTOMLEFT", f.background, "BOTTOMLEFT");
+    f.stack:Hide();
     f.ready = f:CreateTexture(nil, "OVERLAY");
     f.ready:SetPoint("TOPLEFT", f, "BOTTOMLEFT", 1, 15);
     f.ready:SetPoint("BOTTOMRIGHT", f, "BOTTOMLEFT", 15, 1);
     f.ready:Hide();
     f.ready = f:CreateTexture(nil, "OVERLAY");
     f.ready:SetPoint("TOPLEFT", f, "BOTTOMLEFT", 1, 15);
     f.ready:SetPoint("BOTTOMRIGHT", f, "BOTTOMLEFT", 15, 1);
     f.ready:Hide();
+    f.defensive = f:CreateTexture(nil, "OVERLAY");
+    f.defensive:SetPoint("TOPLEFT", f.background, "TOPLEFT", 1, -1);
+    f.defensive:SetWidth(6);
+    f.defensive:SetHeight(6);
+    f.defensive:SetColorTexture(1, 0.3, 0);
+    f.defensive:Hide();
     f.targeticon = f:CreateTexture(nil, "OVERLAY");
     f.targeticon:SetPoint("CENTER", f, "TOP", 0, -1);
     f.targeticon:SetWidth(12);
     f.targeticon = f:CreateTexture(nil, "OVERLAY");
     f.targeticon:SetPoint("CENTER", f, "TOP", 0, -1);
     f.targeticon:SetWidth(12);