-- DruidIndicators.lua local pairs = pairs; local indSize = OmaRFSettings.IndSize; local rhomb = "Interface\\AddOns\\OmaRF\\images\\rhomb"; local square = "Interface\\AddOns\\OmaRF\\images\\square"; local M = {}; OmaRFIndicators.Class["DRUID"] = M; M.Auras = { ["Lifebloom"] = "TOPLEFT", ["Rejuvenation"] = "TR1", ["Cenarion Ward"] = "TR2", ["Spring Blossoms"] = "TR3", ["Rejuvenation (Germination)"] = "TR3", ["Regrowth"] = "TR4", ["Cultivation"] = "TR5", } function M.Setup(base) local inds = {}; for _, pos in pairs({"TOPLEFT"}) do inds[pos] = base:CreateTexture(nil, "OVERLAY"); inds[pos]:SetPoint(pos, base, pos); inds[pos]:SetWidth(indSize); inds[pos]:SetHeight(indSize); inds[pos]:SetTexture(rhomb); inds[pos]:SetVertexColor(0, 1, 0.5); inds[pos]:Hide(); inds[pos].text = base:CreateFontString(nil, "OVERLAY", "GameFontHighlight"); inds[pos].text:SetPoint("BOTTOMRIGHT", inds[pos], "BOTTOMRIGHT"); inds[pos].text:Hide(); end for _, pos in pairs({"TR1", "TR2", "TR3", "TR4", "TR5"}) do inds[pos] = base:CreateTexture(nil, "OVERLAY"); inds[pos]:SetWidth(indSize/2); inds[pos]:SetHeight(indSize/2); inds[pos]:SetTexture(square); inds[pos]:Hide(); end inds["TR1"]:SetPoint("TOPRIGHT"); inds["TR1"]:SetVertexColor(0.8, 0, 1); inds["TR2"]:SetPoint("TOPRIGHT", inds["TR1"], "TOPLEFT"); inds["TR2"]:SetVertexColor(0.4, 1, 0); inds["TR3"]:SetPoint("TOPRIGHT", inds["TR1"], "BOTTOMRIGHT"); inds["TR3"]:SetVertexColor(1, 0.2, 0); inds["TR4"]:SetPoint("TOPRIGHT", inds["TR2"], "BOTTOMRIGHT"); inds["TR4"]:SetVertexColor(0, 1, 0); inds["TR5"]:SetPoint("TOPRIGHT", inds["TR3"], "BOTTOMRIGHT"); inds["TR5"]:SetVertexColor(0, 1, 0.5); return inds; end