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 = {
30 [156910] = "TOPRIGHT",
31 [200025] = "TOPRIGHT",
32 [200654] = "BOTTOMLEFT",
37 ["shift-type1"] = "spell",
38 ["shift-type2"] = "spell",
39 ["ctrl-type1"] = "spell",
40 ["alt-type2"] = "spell",
41 ["alt-shift-type1"] = "spell",
42 ["alt-shift-type2"] = "spell",
43 ["spell1"] = "Holy Light",
44 ["spell2"] = "Bestow Faith",
45 ["shift-spell1"] = "Flash of Light",
46 ["shift-spell2"] = "Light of the Martyr",
47 ["ctrl-spell1"] = "Cleanse",
48 ["alt-spell2"] = "Lay on Hands",
49 ["alt-shift-spell1"] = "Beacon of Light",
50 ["alt-shift-spell2"] = "Beacon of Faith",
56 -- account-wide settings
58 Positions = {"TOPRIGHT", "BOTTOMLEFT"},
60 BaseColor = {0, 0, 0},
61 BgColor = {0.7, 0.7, 0.7},
62 HealthColor = {0.3, 0.3, 0.3},
63 ShieldColor = {0, 0.7, 1},
64 ShieldhlColor = {0.5, 0.8, 1},
65 HealpredColor = {0.5, 0.6, 0.5},
66 HealabsorbColor = {0.1, 0.1, 0.1},
67 OverlayColorDispel = {1, 0.5, 0, 0.5},
68 OverlayColorCharm = {0.8, 0, 1, 0.5},
69 OverlayColorAlert = {1, 0, 0, 0.5},
71 [PowerTypeMana] = {0, 0.5, 1},
72 [PowerTypeRage] = {1, 0, 0},
73 [PowerTypeFocus] = {1, 0.5, 0},
74 [PowerTypeEnergy] = {1, 0.8, 0},
75 [PowerTypeRunic] = {0.9, 0, 0.1},
79 ["Psychic Assault"] = true,
80 ["Everburning Flames"] = true,
82 ["Sleep Canister"] = true,
84 ["Necrotic Embrace"] = true,
85 ["Fulminating Pulse"] = true,
86 ["Chilled Blood"] = true,
87 ["Soulblight"] = true,
90 -- Proving Grounds for testing
93 [209858] = true, -- Necrotic Rot
94 [240559] = true, -- Grievous Wound
95 [240443] = true, -- Burst
98 OmaRFSettings = settings;
99 -- watch to not remove mana entry
100 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
102 local name, realm = UnitFullName("player");
103 if chars[realm] and chars[realm][name] then
104 settings.Character = chars[realm][name];
106 settings.Character = charDefaults;