f2bb494 - Change to coloring health bar instead of name in UF
[wowui.git] / OmaRF / Settings.lua
index 997e4c7..80a3e41 100644 (file)
@@ -9,6 +9,7 @@ local rawget = rawget;
 -- configurable settings
 -- character specific settings
 local charDefaults = {
 -- configurable settings
 -- character specific settings
 local charDefaults = {
+    Positions = {"TOPRIGHT", "BOTTOMLEFT"},
     Width = 80,
     Height = 40,
     AnchorX = 0,
     Width = 80,
     Height = 40,
     AnchorX = 0,
@@ -21,6 +22,7 @@ local charDefaults = {
 local chars = {
     ["Stormreaver"] = {
         ["Vildan"] = {
 local chars = {
     ["Stormreaver"] = {
         ["Vildan"] = {
+            Positions = {"TOPRIGHT", "BOTTOMLEFT"},
             Width = 80,
             Height = 40,
             AnchorX = 0,
             Width = 80,
             Height = 40,
             AnchorX = 0,
@@ -50,12 +52,36 @@ local chars = {
                 ["alt-shift-spell2"] = "Beacon of Faith",
             },
         },
                 ["alt-shift-spell2"] = "Beacon of Faith",
             },
         },
+        ["Gedren"] = {
+            Positions = {"TOPLEFT", "TOPRIGHT", "BOTTOMLEFT"},
+            Width = 80,
+            Height = 40,
+            AnchorX = 0,
+            AnchorY = -330,
+            WatchedAuras = {
+                ["Rejuvenation"] = "TOPRIGHT",
+                ["Lifebloom"] = "TOPLEFT",
+            },
+            Clickheal = {
+                ["type1"] = "spell",
+                ["type2"] = "spell",
+                ["shift-type1"] = "spell",
+                ["shift-type2"] = "spell",
+                ["ctrl-type1"] = "spell",
+                ["alt-type2"] = "spell",
+                ["spell1"] = "Healing Touch",
+                ["spell2"] = "Lifebloom",
+                ["shift-spell1"] = "Regrowth",
+                ["shift-spell2"] = "Swiftmend",
+                ["ctrl-spell1"] = "Nature's Cure",
+                ["alt-spell2"] = "Rebirth",
+            },
+        },
     },
 };
 
 -- account-wide settings
 local settings = {
     },
 };
 
 -- account-wide settings
 local settings = {
-    Positions = {"TOPRIGHT", "BOTTOMLEFT"},
     IndSize = 14,
     BaseColor = {0, 0, 0},
     BgColor = {0.7, 0.7, 0.7},
     IndSize = 14,
     BaseColor = {0, 0, 0},
     BgColor = {0.7, 0.7, 0.7},
@@ -72,7 +98,7 @@ local settings = {
         [PowerTypeRage] = {1, 0, 0},
         [PowerTypeFocus] = {1, 0.5, 0},
         [PowerTypeEnergy] = {1, 0.8, 0},
         [PowerTypeRage] = {1, 0, 0},
         [PowerTypeFocus] = {1, 0.5, 0},
         [PowerTypeEnergy] = {1, 0.8, 0},
-        [PowerTypeRunic] = {0.9, 0, 0.1},
+        [PowerTypeRunic] = {0.8, 0, 0.2},
     },
     MajorAuras = {
         -- Antorus
     },
     MajorAuras = {
         -- Antorus
@@ -99,9 +125,11 @@ OmaRFSettings = settings;
 -- watch to not remove mana entry
 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
 
 -- watch to not remove mana entry
 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
 
-local name, realm = UnitFullName("player");
-if chars[realm] and chars[realm][name] then
-    settings.Character = chars[realm][name];
-else
-    settings.Character = charDefaults;
+function OmaRFLoadChar()
+    local name, realm = UnitFullName("player");
+    if chars[realm] and chars[realm][name] then
+        settings.Character = chars[realm][name];
+    else
+        settings.Character = charDefaults;
+    end
 end
 end