4 local indSize = OmaRFSettings.IndSize;
5 local rhomb = "Interface\\AddOns\\OmaRF\\images\\rhomb";
6 local square = "Interface\\AddOns\\OmaRF\\images\\square";
9 OmaRFIndicators.Class["DRUID"] = M;
11 [33763] = "TOPLEFT", -- Lifebloom
12 [774] = "TR1", -- Rejuvenation
13 [102352] = "TR2", -- Cenarion Ward (102351 is the pre-buff)
14 [207386] = "TR3", -- Spring Blossoms (207385 is the talent)
15 [155777] = "TR3", -- Germination (either this or Spring Blossoms taken)
16 [8936] = "TR4", -- Regrowth
17 [200389] = "TR5", -- Cultivation
20 function M.Setup(base)
22 inds["TOPLEFT"] = base:CreateTexture(nil, "OVERLAY");
23 inds["TOPLEFT"]:SetPoint("TOPLEFT", base, "TOPLEFT");
24 inds["TOPLEFT"]:SetWidth(indSize);
25 inds["TOPLEFT"]:SetHeight(indSize);
26 inds["TOPLEFT"]:SetTexture(rhomb);
27 inds["TOPLEFT"]:SetVertexColor(0, 1, 0.5);
28 inds["TOPLEFT"]:Hide();
29 inds["TOPLEFT"].text = base:CreateFontString(nil, "OVERLAY", "GameFontHighlight");
30 inds["TOPLEFT"].text:SetPoint("BOTTOMRIGHT", inds["TOPLEFT"], "BOTTOMRIGHT");
31 inds["TOPLEFT"].text:Hide();
32 for _, pos in pairs({"TR1", "TR2", "TR3", "TR4", "TR5"}) do
33 inds[pos] = base:CreateTexture(nil, "OVERLAY");
34 inds[pos]:SetWidth(indSize/2);
35 inds[pos]:SetHeight(indSize/2);
36 inds[pos]:SetTexture(square);
39 inds["TR1"]:SetPoint("TOPRIGHT");
40 inds["TR1"]:SetVertexColor(0.8, 0, 1);
41 inds["TR2"]:SetPoint("TOPRIGHT", inds["TR1"], "TOPLEFT");
42 inds["TR2"]:SetVertexColor(0.4, 1, 0);
43 inds["TR3"]:SetPoint("TOPRIGHT", inds["TR1"], "BOTTOMRIGHT");
44 inds["TR3"]:SetVertexColor(1, 0.2, 0);
45 inds["TR4"]:SetPoint("TOPRIGHT", inds["TR2"], "BOTTOMRIGHT");
46 inds["TR4"]:SetVertexColor(0, 1, 0);
47 inds["TR5"]:SetPoint("TOPRIGHT", inds["TR3"], "BOTTOMRIGHT");
48 inds["TR5"]:SetVertexColor(0, 1, 0.5);