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"] = true,
102 ["Everburning Flames"] = true,
104 ["Sleep Canister"] = true,
106 ["Necrotic Embrace"] = true,
107 ["Fulminating Pulse"] = true,
108 ["Chilled Blood"] = true,
109 ["Soulblight"] = true,
110 ["Soulburst"] = true,
112 -- Proving Grounds for testing
113 ["Aqua Bomb"] = true,
115 [209858] = true, -- Necrotic Rot
116 [240559] = true, -- Grievous Wound
117 [240443] = true, -- Burst
120 OmaRFSettings = settings;
121 -- watch to not remove mana entry
122 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
124 function OmaRFLoadChar()
125 local name, realm = UnitFullName("player");
126 if chars[realm] and chars[realm][name] then
127 settings.Character = chars[realm][name];
129 settings.Character = charDefaults;