96ad366 - Add Shaman settings
authorAleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sat, 24 Feb 2018 02:49:18 +0000
committerAleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sat, 24 Feb 2018 02:49:18 +0000
OmaAB/ActionBars.lua
OmaRF/OmaRF.toc
OmaRF/Settings.lua
OmaRF/ShamanIndicators.lua [new file with mode: 0644]
OmaTMW/TellMeWhen.lua

index 937d1d0..012c5f9 100644 (file)
@@ -121,6 +121,7 @@ local chars = {
     ["Stormreaver"] = {
         ["Vildan"] = {1, 2, 3, 4,},
         ["Gedren"] = {1, 2, 3, 4,},
+        ["Gazden"] = {1, 2, 3, 4,},
     },
 };
 
index b7d7326..ed7deb5 100644 (file)
@@ -8,5 +8,6 @@ Settings.lua
 Indicators.lua
 DruidIndicators.lua
 PaladinIndicators.lua
+ShamanIndicators.lua
 Events.lua
 RaidFrame.lua
index bdcfb86..e812e98 100644 (file)
@@ -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 (file)
index 0000000..20820d6
--- /dev/null
@@ -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
index b7ba1e8..fd9b0fc 100644 (file)
@@ -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);