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"},
25 Positions = {"TOPRIGHT", "BOTTOMLEFT"},
32 [156910] = "TOPRIGHT",
33 [200025] = "TOPRIGHT",
34 [200654] = "BOTTOMLEFT",
39 ["shift-type1"] = "spell",
40 ["shift-type2"] = "spell",
41 ["ctrl-type1"] = "spell",
42 ["alt-type2"] = "spell",
43 ["alt-shift-type1"] = "spell",
44 ["alt-shift-type2"] = "spell",
45 ["spell1"] = "Holy Light",
46 ["spell2"] = "Bestow Faith",
47 ["shift-spell1"] = "Flash of Light",
48 ["shift-spell2"] = "Light of the Martyr",
49 ["ctrl-spell1"] = "Cleanse",
50 ["alt-spell2"] = "Lay on Hands",
51 ["alt-shift-spell1"] = "Beacon of Light",
52 ["alt-shift-spell2"] = "Beacon of Faith",
56 Positions = {"TOPLEFT", "TOPRIGHT", "BOTTOMLEFT"},
62 ["Rejuvenation"] = "TOPRIGHT",
63 ["Lifebloom"] = "TOPLEFT",
68 ["shift-type1"] = "spell",
69 ["shift-type2"] = "spell",
70 ["ctrl-type1"] = "spell",
71 ["alt-type2"] = "spell",
72 ["spell1"] = "Healing Touch",
73 ["spell2"] = "Lifebloom",
74 ["shift-spell1"] = "Regrowth",
75 ["shift-spell2"] = "Swiftmend",
76 ["ctrl-spell1"] = "Nature's Cure",
77 ["alt-spell2"] = "Rebirth",
83 -- account-wide settings
86 BaseColor = {0, 0, 0},
87 BgColor = {0.7, 0.7, 0.7},
88 HealthColor = {0.3, 0.3, 0.3},
89 ShieldColor = {0, 0.7, 1},
90 ShieldhlColor = {0.5, 0.8, 1},
91 HealpredColor = {0.5, 0.6, 0.5},
92 HealabsorbColor = {0.1, 0.1, 0.1},
93 OverlayColorDispel = {1, 0.5, 0, 0.5},
94 OverlayColorCharm = {0.8, 0, 1, 0.5},
95 OverlayColorAlert = {1, 0, 0, 0.5},
97 [PowerTypeMana] = {0, 0.5, 1},
98 [PowerTypeRage] = {1, 0, 0},
99 [PowerTypeFocus] = {1, 0.5, 0},
100 [PowerTypeEnergy] = {1, 0.8, 0},
101 [PowerTypeRunic] = {0.8, 0, 0.2},
105 ["Psychic Assault"] = true,
106 ["Everburning Flames"] = true,
108 ["Sleep Canister"] = true,
110 ["Necrotic Embrace"] = true,
111 ["Fulminating Pulse"] = true,
112 ["Chilled Blood"] = true,
113 ["Soulblight"] = true,
114 ["Soulburst"] = true,
116 -- Proving Grounds for testing
117 ["Aqua Bomb"] = true,
119 [209858] = true, -- Necrotic Rot
120 [240559] = true, -- Grievous Wound
121 [240443] = true, -- Burst
124 OmaRFSettings = settings;
125 -- watch to not remove mana entry
126 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
128 function OmaRFLoadChar()
129 local name, realm = UnitFullName("player");
130 if chars[realm] and chars[realm][name] then
131 settings.Character = chars[realm][name];
133 settings.Character = charDefaults;