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 = {
25 ["shift-type1"] = "spell",
26 ["shift-type2"] = "spell",
27 ["ctrl-type1"] = "spell",
28 ["alt-type2"] = "spell",
29 ["alt-shift-type1"] = "spell",
30 ["alt-shift-type2"] = "spell",
31 ["spell1"] = "Holy Light",
32 ["spell2"] = "Bestow Faith",
33 ["shift-spell1"] = "Flash of Light",
34 ["shift-spell2"] = "Light of the Martyr",
35 ["ctrl-spell1"] = "Cleanse",
36 ["alt-spell2"] = "Lay on Hands",
37 ["alt-shift-spell1"] = "Beacon of Light",
38 ["alt-shift-spell2"] = "Beacon of Faith",
47 ["shift-type1"] = "spell",
48 ["shift-type2"] = "spell",
49 ["ctrl-type1"] = "spell",
50 ["alt-type2"] = "spell",
51 ["spell1"] = "Healing Touch",
52 ["spell2"] = "Lifebloom",
53 ["shift-spell1"] = "Regrowth",
54 ["shift-spell2"] = "Swiftmend",
55 ["ctrl-spell1"] = "Nature's Cure",
56 ["alt-spell2"] = "Rebirth",
62 -- account-wide settings
66 BaseColor = {0, 0, 0, 0.5},
67 BgColor = {0.1, 0.1, 0.1, 0.4},
68 HealthColor = {0.5, 0.5, 0.5},
69 ShieldColor = {0.1, 0.8, 1},
70 ShieldhlColor = {0.5, 0.8, 1},
71 HealpredColor = {0.5, 0.6, 0.5},
72 HealabsorbColor = {0.1, 0.1, 0.1},
74 [PowerTypeMana] = {0, 0.5, 1},
75 [PowerTypeRage] = {1, 0, 0},
76 [PowerTypeFocus] = {1, 0.5, 0},
77 [PowerTypeEnergy] = {1, 0.8, 0},
78 [PowerTypeRunic] = {0.8, 0, 0.2},
81 OmaUFSettings = settings;
82 -- watch to not remove mana entry
83 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
85 function OmaUFLoadChar()
86 local name, realm = UnitFullName("player");
87 if chars[realm] and chars[realm][name] then
88 settings.Character = chars[realm][name];
90 settings.Character = charDefaults;