From: Aleksi Blinnikka Date: Sat, 24 Feb 2018 02:49:18 +0000 (+0200) Subject: Add Shaman settings X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/96ad366e5121bcaaa6621ffac6d085fdbb34c34a?ds=sidebyside;hp=cba0622bf3b096b15c0496c09d2b908f943f3f1e Add Shaman settings --- diff --git a/OmaAB/ActionBars.lua b/OmaAB/ActionBars.lua index 937d1d0..012c5f9 100644 --- a/OmaAB/ActionBars.lua +++ b/OmaAB/ActionBars.lua @@ -121,6 +121,7 @@ local chars = { ["Stormreaver"] = { ["Vildan"] = {1, 2, 3, 4,}, ["Gedren"] = {1, 2, 3, 4,}, + ["Gazden"] = {1, 2, 3, 4,}, }, }; diff --git a/OmaRF/OmaRF.toc b/OmaRF/OmaRF.toc index b7d7326..ed7deb5 100644 --- a/OmaRF/OmaRF.toc +++ b/OmaRF/OmaRF.toc @@ -8,5 +8,6 @@ Settings.lua Indicators.lua DruidIndicators.lua PaladinIndicators.lua +ShamanIndicators.lua Events.lua RaidFrame.lua diff --git a/OmaRF/Settings.lua b/OmaRF/Settings.lua index bdcfb86..e812e98 100644 --- a/OmaRF/Settings.lua +++ b/OmaRF/Settings.lua @@ -59,6 +59,20 @@ local chars = { ["alt-spell2"] = "Rebirth", }, }, + ["Gazden"] = { + AnchorX = 0, + AnchorY = -330, + Clickheal = { + ["type1"] = "spell", + ["type2"] = "spell", + ["shift-type1"] = "spell", + ["ctrl-type1"] = "spell", + ["spell1"] = "Healing Wave", + ["spell2"] = "Chain Heal", + ["shift-spell1"] = "Healing Surge", + ["ctrl-spell1"] = "Purify Spirit", + }, + }, }, }; diff --git a/OmaRF/ShamanIndicators.lua b/OmaRF/ShamanIndicators.lua new file mode 100644 index 0000000..20820d6 --- /dev/null +++ b/OmaRF/ShamanIndicators.lua @@ -0,0 +1,26 @@ +-- PaladinIndicators.lua +local pairs = pairs; + +local indSize = OmaRFSettings.IndSize; +local rhomb = "Interface\\AddOns\\OmaRF\\images\\rhomb"; + +local M = {}; +OmaRFIndicators.Class["SHAMAN"] = M; +M.Auras = { + [61295] = "TOPRIGHT", -- Riptide +} + +function M.Setup(base) + local inds = {}; + inds["TOPRIGHT"] = base:CreateTexture(nil, "OVERLAY"); + inds["TOPRIGHT"]:SetPoint("TOPRIGHT", base, "TOPRIGHT"); + inds["TOPRIGHT"]:SetWidth(indSize); + inds["TOPRIGHT"]:SetHeight(indSize); + inds["TOPRIGHT"]:SetTexture(rhomb); + inds["TOPRIGHT"]:SetVertexColor(0, 0.5, 1); + inds["TOPRIGHT"]:Hide(); + inds["TOPRIGHT"].text = base:CreateFontString(nil, "OVERLAY", "GameFontHighlight"); + inds["TOPRIGHT"].text:SetPoint("BOTTOMRIGHT", inds["TOPRIGHT"], "BOTTOMRIGHT"); + inds["TOPRIGHT"].text:Hide(); + return inds; +end diff --git a/OmaTMW/TellMeWhen.lua b/OmaTMW/TellMeWhen.lua index b7ba1e8..fd9b0fc 100644 --- a/OmaTMW/TellMeWhen.lua +++ b/OmaTMW/TellMeWhen.lua @@ -115,7 +115,7 @@ local function updateAuraFrame(frame) if UnitExists(unit) and (not frame.spec or frame.spec == currentSpec) then local name, icon, count, duration, expires; for _, aura in pairs(frame.auras) do - name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter); + name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter); if name then if count > 0 then frame.stack:SetText(count);