9405379 - Add focus frame
[wowui.git] / OmaRF / Settings.lua
1 -- Settings.lua
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;
7 local rawget = rawget;
8
9 -- configurable settings
10 -- character specific settings
11 local charDefaults = {
12     Positions = {"TOPRIGHT", "BOTTOMLEFT"},
13     Width = 80,
14     Height = 40,
15     AnchorX = 0,
16     AnchorY = -330,
17     WatchedAuras = {
18     },
19     Clickheal = {
20     },
21 };
22 local chars = {
23     ["Stormreaver"] = {
24         ["Vildan"] = {
25             Positions = {"TOPRIGHT", "BOTTOMLEFT"},
26             Width = 80,
27             Height = 40,
28             AnchorX = 0,
29             AnchorY = -330,
30             WatchedAuras = {
31                 [53563] = "TOPRIGHT",
32                 [156910] = "TOPRIGHT",
33                 [200025] = "TOPRIGHT",
34                 [200654] = "BOTTOMLEFT",
35             },
36             Clickheal = {
37                 ["type1"] = "spell",
38                 ["type2"] = "spell",
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",
53             },
54         },
55         ["Gedren"] = {
56             Positions = {"TOPLEFT", "TOPRIGHT", "BOTTOMLEFT"},
57             Width = 80,
58             Height = 40,
59             AnchorX = 0,
60             AnchorY = -330,
61             WatchedAuras = {
62                 ["Rejuvenation"] = "TOPRIGHT",
63                 ["Lifebloom"] = "TOPLEFT",
64             },
65             Clickheal = {
66                 ["type1"] = "spell",
67                 ["type2"] = "spell",
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",
78             },
79         },
80     },
81 };
82
83 -- account-wide settings
84 local settings = {
85     IndSize = 14,
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},
96     PowerColors = {
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.9, 0, 0.1},
102     },
103     MajorAuras = {
104         -- Antorus
105         ["Psychic Assault"] = true,
106         ["Everburning Flames"] = true,
107         ["Corrupt"] = true,
108         ["Sleep Canister"] = true,
109         ["Misery"] = true,
110         ["Necrotic Embrace"] = true,
111         ["Fulminating Pulse"] = true,
112         ["Chilled Blood"] = true,
113         ["Soulblight"] = true,
114         ["Soulburst"] = true,
115         ["Soulbomb"] = true,
116         -- Proving Grounds for testing
117         ["Aqua Bomb"] = true,
118         -- Mythic+
119         [209858] = true, -- Necrotic Rot
120         [240559] = true, -- Grievous Wound
121         [240443] = true, -- Burst
122     },
123 };
124 OmaRFSettings = settings;
125 -- watch to not remove mana entry
126 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
127
128 function OmaRFLoadChar()
129     local name, realm = UnitFullName("player");
130     if chars[realm] and chars[realm][name] then
131         settings.Character = chars[realm][name];
132     else
133         settings.Character = charDefaults;
134     end
135 end