084e0f6 - Tidy up some events
[wowui.git] / OmaRF / PaladinIndicators.lua
1 -- PaladinIndicators.lua
2 local pairs = pairs;
3
4 local indSize = OmaRFSettings.IndSize;
5 local rhomb = "Interface\\AddOns\\OmaRF\\images\\rhomb";
6 local positions = {"TOPRIGHT", "BOTTOMLEFT"};
7
8 local M = {};
9 OmaRFIndicators.Class["PALADIN"] = M;
10 M.Auras = {
11     [53563] = "TOPRIGHT", -- Beacon of Light
12     [156910] = "TOPRIGHT", -- Beacon of Faith
13     [200025] = "TOPRIGHT", -- Beacon of Virtue
14     [200654] = "BOTTOMLEFT", -- Tyr's Deliverance
15 }
16
17 function M.Setup(base)
18     local inds = {};
19     inds["TOPRIGHT"] = base:CreateTexture(nil, "OVERLAY");
20     inds["TOPRIGHT"]:SetPoint("TOPRIGHT", base, "TOPRIGHT");
21     inds["TOPRIGHT"]:SetWidth(indSize);
22     inds["TOPRIGHT"]:SetHeight(indSize);
23     inds["TOPRIGHT"]:SetTexture(rhomb);
24     inds["TOPRIGHT"]:SetVertexColor(1, 0, 0);
25     inds["TOPRIGHT"]:Hide();
26     inds["BOTTOMLEFT"] = base:CreateTexture(nil, "OVERLAY");
27     inds["BOTTOMLEFT"]:SetPoint("BOTTOMLEFT", base, "BOTTOMLEFT");
28     inds["BOTTOMLEFT"]:SetWidth(indSize);
29     inds["BOTTOMLEFT"]:SetHeight(indSize);
30     inds["BOTTOMLEFT"]:SetTexture(rhomb);
31     inds["BOTTOMLEFT"]:SetVertexColor(1, 0.5, 0);
32     inds["BOTTOMLEFT"]:Hide();
33     inds["BOTTOMLEFT"].text = base:CreateFontString(nil, "OVERLAY", "GameFontHighlight");
34     inds["BOTTOMLEFT"].text:SetPoint("BOTTOMRIGHT", inds["BOTTOMLEFT"], "BOTTOMRIGHT");
35     inds["BOTTOMLEFT"].text:Hide();
36     return inds;
37 end