2 local PowerTypeMana = Enum.PowerType.Mana;
3 local PowerTypeRage = Enum.PowerType.Rage;
4 local PowerTypeFocus = Enum.PowerType.Focus;
5 local PowerTypeEnergy = Enum.PowerType.Energy;
6 local PowerTypeRunic = Enum.PowerType.RunicPower;
9 -- configurable settings
10 -- character specific settings
11 local charDefaults = {
12 Positions = {"TOPRIGHT", "BOTTOMLEFT"},
23 Positions = {"TOPRIGHT", "BOTTOMLEFT"},
28 [156910] = "TOPRIGHT",
29 [200025] = "TOPRIGHT",
30 [200654] = "BOTTOMLEFT",
35 ["shift-type1"] = "spell",
36 ["shift-type2"] = "spell",
37 ["ctrl-type1"] = "spell",
38 ["alt-type2"] = "spell",
39 ["alt-shift-type1"] = "spell",
40 ["alt-shift-type2"] = "spell",
41 ["spell1"] = "Holy Light",
42 ["spell2"] = "Bestow Faith",
43 ["shift-spell1"] = "Flash of Light",
44 ["shift-spell2"] = "Light of the Martyr",
45 ["ctrl-spell1"] = "Cleanse",
46 ["alt-spell2"] = "Lay on Hands",
47 ["alt-shift-spell1"] = "Beacon of Light",
48 ["alt-shift-spell2"] = "Beacon of Faith",
52 Positions = {"TOPLEFT", "TOPRIGHT", "BOTTOMLEFT"},
56 ["Rejuvenation"] = "TOPRIGHT",
57 ["Lifebloom"] = "TOPLEFT",
62 ["shift-type1"] = "spell",
63 ["shift-type2"] = "spell",
64 ["ctrl-type1"] = "spell",
65 ["alt-type2"] = "spell",
66 ["spell1"] = "Healing Touch",
67 ["spell2"] = "Lifebloom",
68 ["shift-spell1"] = "Regrowth",
69 ["shift-spell2"] = "Swiftmend",
70 ["ctrl-spell1"] = "Nature's Cure",
71 ["alt-spell2"] = "Rebirth",
77 -- account-wide settings
82 BaseColor = {0, 0, 0},
83 BgColor = {0.7, 0.7, 0.7},
84 HealthColor = {0.3, 0.3, 0.3},
85 ShieldColor = {0, 0.7, 1},
86 ShieldhlColor = {0.5, 0.8, 1},
87 HealpredColor = {0.5, 0.6, 0.5},
88 HealabsorbColor = {0.1, 0.1, 0.1},
89 OverlayColorDispel = {1, 0.5, 0, 0.5},
90 OverlayColorCharm = {0.8, 0, 1, 0.5},
91 OverlayColorAlert = {1, 0, 0, 0.5},
93 [PowerTypeMana] = {0, 0.5, 1},
94 [PowerTypeRage] = {1, 0, 0},
95 [PowerTypeFocus] = {1, 0.5, 0},
96 [PowerTypeEnergy] = {1, 0.8, 0},
97 [PowerTypeRunic] = {0.8, 0, 0.2},
101 ["Psychic Assault"] = {bar=false},
102 ["Everburning Flames"] = {bar=false},
103 ["Corrupt"] = {bar=false},
104 ["Sleep Canister"] = {bar=false},
105 ["Misery"] = {bar=true},
106 ["Necrotic Embrace"] = {bar=false},
107 ["Fulminating Pulse"] = {bar=false},
108 ["Chilled Blood"] = {bar=false},
109 ["Soulblight"] = {bar=false},
110 ["Soulburst"] = {bar=false},
111 ["Soulbomb"] = {bar=false},
112 ["Shock Grenade"] = {bar=false},
114 ["Unholy Reckoning"] = {bar=false},
115 -- Proving Grounds for testing
116 ["Aqua Bomb"] = {bar=false},
118 [209858] = {bar=false}, -- Necrotic Rot
119 [240559] = {bar=false}, -- Grievous Wound
120 [240443] = {bar=false}, -- Burst
123 OmaRFSettings = settings;
124 -- watch to not remove mana entry
125 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
127 function OmaRFLoadChar()
128 local name, realm = UnitFullName("player");
129 if chars[realm] and chars[realm][name] then
130 settings.Character = chars[realm][name];
132 settings.Character = charDefaults;