From 02986a2b37988aa6995c03c77ddb3924333f09ec Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Thu, 20 Sep 2018 01:04:32 +0300 Subject: [PATCH] Add disc priest --- OmaAB/ActionBars.lua | 1 + OmaRF/OmaRF.toc | 1 + OmaRF/PriestIndicators.lua | 24 ++++++++++++++++++++++++ OmaRF/Settings.lua | 16 ++++++++++++++++ OmaUF/Settings.lua | 16 ++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 OmaRF/PriestIndicators.lua diff --git a/OmaAB/ActionBars.lua b/OmaAB/ActionBars.lua index 82680c6..5b2233b 100644 --- a/OmaAB/ActionBars.lua +++ b/OmaAB/ActionBars.lua @@ -126,6 +126,7 @@ local chars = { ["Gazden"] = {1, 2, 3, 4,}, ["Gedran"] = {1, 2, 3, 4,}, ["Iled"] = {1, 2, 3, 4,}, + ["Gilden"] = {1, 2, 3, 4,}, }, }; diff --git a/OmaRF/OmaRF.toc b/OmaRF/OmaRF.toc index 0227052..0bae210 100644 --- a/OmaRF/OmaRF.toc +++ b/OmaRF/OmaRF.toc @@ -8,6 +8,7 @@ Settings.lua Indicators.lua DruidIndicators.lua PaladinIndicators.lua +PriestIndicators.lua ShamanIndicators.lua Events.lua RaidFrame.lua diff --git a/OmaRF/PriestIndicators.lua b/OmaRF/PriestIndicators.lua new file mode 100644 index 0000000..00b752e --- /dev/null +++ b/OmaRF/PriestIndicators.lua @@ -0,0 +1,24 @@ +-- PriestIndicators.lua +local indSize = OmaRFSettings.IndSize; +local rhomb = "Interface\\AddOns\\OmaRF\\images\\rhomb"; + +local M = {}; +OmaRFIndicators.Class["PRIEST"] = M; +M.Auras = { + [194384] = "BOTTOMRIGHT", -- Atonement +} + +function M.Setup(base) + local inds = {}; + inds["BOTTOMRIGHT"] = base:CreateTexture(nil, "OVERLAY"); + inds["BOTTOMRIGHT"]:SetPoint("BOTTOMRIGHT", base, "BOTTOMRIGHT"); + inds["BOTTOMRIGHT"]:SetWidth(indSize); + inds["BOTTOMRIGHT"]:SetHeight(indSize); + inds["BOTTOMRIGHT"]:SetTexture(rhomb); + inds["BOTTOMRIGHT"]:SetVertexColor(1, 0.8, 0); + inds["BOTTOMRIGHT"]:Hide(); + inds["BOTTOMRIGHT"].text = base:CreateFontString(nil, "OVERLAY", "GameFontHighlight"); + inds["BOTTOMRIGHT"].text:SetPoint("BOTTOMRIGHT", inds["BOTTOMRIGHT"], "BOTTOMRIGHT"); + inds["BOTTOMRIGHT"].text:Hide(); + return inds; +end diff --git a/OmaRF/Settings.lua b/OmaRF/Settings.lua index 932499c..f2ceaa2 100644 --- a/OmaRF/Settings.lua +++ b/OmaRF/Settings.lua @@ -88,6 +88,22 @@ local chars = { ["ctrl-spell1"] = "Purify Spirit", }, }, + ["Gilden"] = { + AnchorX = 0, + AnchorY = -330, + Clickheal = { + ["type1"] = "spell", + ["type2"] = "spell", + ["shift-type1"] = "spell", + ["shift-type2"] = "spell", + ["ctrl-type1"] = "spell", + ["spell1"] = "Power Word: Shield", + ["spell2"] = "Penance", + ["shift-spell1"] = "Shadow Mend", + ["shift-spell2"] = "Shadow Covenant", + ["ctrl-spell1"] = "Purify", + }, + }, ["Gedran"] = { AnchorX = 0, AnchorY = -330, diff --git a/OmaUF/Settings.lua b/OmaUF/Settings.lua index 50f31e2..837ffb9 100644 --- a/OmaUF/Settings.lua +++ b/OmaUF/Settings.lua @@ -71,6 +71,22 @@ local chars = { ["alt-spell2"] = "Rebirth", }, }, + ["Gilden"] = { + AnchorX = 0, + AnchorY = -330, + Clickheal = { + ["type1"] = "spell", + ["type2"] = "spell", + ["shift-type1"] = "spell", + ["shift-type2"] = "spell", + ["ctrl-type1"] = "spell", + ["spell1"] = "Power Word: Shield", + ["spell2"] = "Penance", + ["shift-spell1"] = "Shadow Mend", + ["shift-spell2"] = "Shadow Covenant", + ["ctrl-spell1"] = "Purify", + }, + }, }, }; -- 2.39.5