b00e4e3 - Add new mythic boss abilities
[wowui.git] / kehys / frame.lua
index 0e17ed7..4f1615f 100644 (file)
@@ -55,7 +55,9 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.tankcd = {}; -- tank CD auras
     f.stacks = {}; -- stacking aura tracking
     f.buff1 = {}; -- custom buff indicator 1
     f.tankcd = {}; -- tank CD auras
     f.stacks = {}; -- stacking aura tracking
     f.buff1 = {}; -- custom buff indicator 1
+    f.buff2 = {}; -- custom buff indicator 2
     f.incoming = {}; -- incoming ability indicator
     f.incoming = {}; -- incoming ability indicator
+    f.raid = true;
     f.rounds = 0;
     -- set up periodic updates
     updaters[f] = function()
     f.rounds = 0;
     -- set up periodic updates
     updaters[f] = function()
@@ -153,18 +155,24 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f.ready:SetPoint("TOPLEFT", f, "BOTTOMLEFT", 1, 15);
     f.ready:SetPoint("BOTTOMRIGHT", f, "BOTTOMLEFT", 15, 1);
     f.ready:Hide();
     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.buffind1 = f:CreateTexture(nil, "OVERLAY");
     f.buffind1:SetPoint("TOPRIGHT", f.background, "TOPRIGHT", -1, -1);
     f.buffind1:SetWidth(6);
     f.buffind1:SetHeight(6);
     f.buffind1:SetColorTexture(0.8, 0.1, 0.1);
     f.buffind1:Hide();
     f.buffind1 = f:CreateTexture(nil, "OVERLAY");
     f.buffind1:SetPoint("TOPRIGHT", f.background, "TOPRIGHT", -1, -1);
     f.buffind1:SetWidth(6);
     f.buffind1:SetHeight(6);
     f.buffind1:SetColorTexture(0.8, 0.1, 0.1);
     f.buffind1:Hide();
+    f.buffind2 = f:CreateTexture(nil, "OVERLAY");
+    f.buffind2:SetPoint("TOPLEFT", f.background, "TOPLEFT", 1, -1);
+    f.buffind2:SetWidth(4);
+    f.buffind2:SetHeight(4);
+    f.buffind2:SetColorTexture(0.8, 0.7, 0.1);
+    f.buffind2:Hide();
+    f.defensive = f:CreateTexture(nil, "OVERLAY", nil, 1);
+    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);