0051bb4 - add death strike tracking
[wowui.git] / kehys / frame.lua
index 4f1615f..f740c77 100644 (file)
@@ -57,6 +57,8 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.buff1 = {}; -- custom buff indicator 1
     f.buff2 = {}; -- custom buff indicator 2
     f.incoming = {}; -- incoming ability indicator
     f.buff1 = {}; -- custom buff indicator 1
     f.buff2 = {}; -- custom buff indicator 2
     f.incoming = {}; -- incoming ability indicator
+    f.rolename = nil; -- TANK, HEALER, DAMAGER, NONE
+    f.isdk = nil; -- DK death strike tracker for DK tanks
     f.raid = true;
     f.rounds = 0;
     -- set up periodic updates
     f.raid = true;
     f.rounds = 0;
     -- set up periodic updates
@@ -137,6 +139,11 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.overlay:SetPoint("BOTTOMRIGHT", f.background, "BOTTOMRIGHT");
     f.overlay:SetColorTexture(1, 1, 1);
     f.overlay:Hide();
     f.overlay:SetPoint("BOTTOMRIGHT", f.background, "BOTTOMRIGHT");
     f.overlay:SetColorTexture(1, 1, 1);
     f.overlay:Hide();
+    f.bottomwarn = f:CreateTexture(nil, "ARTWORK", nil, 1);
+    f.bottomwarn:SetPoint("TOPLEFT", f.background, "BOTTOMLEFT", 16, 5);
+    f.bottomwarn:SetPoint("BOTTOMRIGHT", f.background, "BOTTOMRIGHT", -16, 1);
+    f.bottomwarn:SetColorTexture(1, 0.3, 0.1, 0.66);
+    f.bottomwarn:Hide();
     f.role = f:CreateTexture(nil, "ARTWORK", nil, 2);
     f.role:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", -3, 3);
     f.role:SetPoint("TOPLEFT", f, "BOTTOMRIGHT", -15, 15);
     f.role = f:CreateTexture(nil, "ARTWORK", nil, 2);
     f.role:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", -3, 3);
     f.role:SetPoint("TOPLEFT", f, "BOTTOMRIGHT", -15, 15);