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"},
28 ["shift-type1"] = "spell",
29 ["shift-type2"] = "spell",
30 ["ctrl-type1"] = "spell",
31 ["alt-type2"] = "spell",
32 ["alt-shift-type1"] = "spell",
33 ["alt-shift-type2"] = "spell",
34 ["spell1"] = "Holy Light",
35 ["spell2"] = "Bestow Faith",
36 ["shift-spell1"] = "Flash of Light",
37 ["shift-spell2"] = "Light of the Martyr",
38 ["ctrl-spell1"] = "Cleanse",
39 ["alt-spell2"] = "Lay on Hands",
40 ["alt-shift-spell1"] = "Beacon of Light",
41 ["alt-shift-spell2"] = "Beacon of Faith",
50 ["shift-type1"] = "spell",
51 ["shift-type2"] = "spell",
52 ["ctrl-type1"] = "spell",
53 ["alt-type2"] = "spell",
54 ["spell1"] = "Healing Touch",
55 ["spell2"] = "Lifebloom",
56 ["shift-spell1"] = "Regrowth",
57 ["shift-spell2"] = "Swiftmend",
58 ["ctrl-spell1"] = "Nature's Cure",
59 ["alt-spell2"] = "Rebirth",
65 -- account-wide settings
70 BaseColor = {0, 0, 0},
71 BgColor = {0.7, 0.7, 0.7},
72 HealthColor = {0.3, 0.3, 0.3},
73 ShieldColor = {0, 0.7, 1},
74 ShieldhlColor = {0.5, 0.8, 1},
75 HealpredColor = {0.5, 0.6, 0.5},
76 HealabsorbColor = {0.1, 0.1, 0.1},
77 OverlayColorDispel = {1, 0.5, 0, 0.5},
78 OverlayColorCharm = {0.8, 0, 1, 0.5},
79 OverlayColorAlert = {1, 0, 0, 0.5},
81 [PowerTypeMana] = {0, 0.5, 1},
82 [PowerTypeRage] = {1, 0, 0},
83 [PowerTypeFocus] = {1, 0.5, 0},
84 [PowerTypeEnergy] = {1, 0.8, 0},
85 [PowerTypeRunic] = {0.8, 0, 0.2},
89 ["Psychic Assault"] = {bar=false},
90 ["Everburning Flames"] = {bar=false},
91 ["Corrupt"] = {bar=false},
92 ["Sleep Canister"] = {bar=false},
93 ["Misery"] = {bar=true},
94 ["Necrotic Embrace"] = {bar=false},
95 ["Fulminating Pulse"] = {bar=false},
96 ["Chilled Blood"] = {bar=false},
97 ["Soulblight"] = {bar=false},
98 ["Soulburst"] = {bar=false},
99 ["Soulbomb"] = {bar=false},
100 ["Shock Grenade"] = {bar=false},
102 ["Unholy Reckoning"] = {bar=false},
104 ["Carrion Plague"] = {bar=false},
105 -- Proving Grounds for testing
106 ["Aqua Bomb"] = {bar=false},
108 [209858] = {bar=false}, -- Necrotic Rot
109 [240559] = {bar=false}, -- Grievous Wound
110 [240443] = {bar=false}, -- Burst
113 OmaRFSettings = settings;
114 -- watch to not remove mana entry
115 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
117 function OmaRFLoadChar()
118 local name, realm = UnitFullName("player");
119 if chars[realm] and chars[realm][name] then
120 settings.Character = chars[realm][name];
122 settings.Character = charDefaults;