c39801d - Add simple red alert aura tracking
[wowui.git] / OmaRF / Settings.lua
1 -- Settings.lua
2 local rawget = rawget;
3
4 -- configurable settings
5 -- character specific settings
6 local charDefaults = {
7     AnchorX = 0,
8     AnchorY = -330,
9     Clickheal = {},
10 };
11 local chars = {
12     ["Sylvanas"] = {
13         ["Vildana"] = {
14             AnchorX = 0,
15             AnchorY = -330,
16             Clickheal = {
17                 ["type1"] = "spell",
18                 ["type2"] = "spell",
19                 ["shift-type1"] = "spell",
20                 ["shift-type2"] = "spell",
21                 ["ctrl-type1"] = "spell",
22                 ["alt-type2"] = "spell",
23                 ["alt-shift-type1"] = "spell",
24                 ["alt-shift-type2"] = "spell",
25                 ["spell1"] = "Holy Light",
26                 ["spell2"] = "Bestow Faith",
27                 ["shift-spell1"] = "Flash of Light",
28                 ["shift-spell2"] = "Light of the Martyr",
29                 ["ctrl-spell1"] = "Cleanse",
30                 ["alt-spell2"] = "Lay on Hands",
31                 ["alt-shift-spell1"] = "Beacon of Light",
32                 ["alt-shift-spell2"] = "Beacon of Faith",
33             },
34         },
35     },
36     ["Stormreaver"] = {
37         ["Vildan"] = {
38             AnchorX = 0,
39             AnchorY = -330,
40             Clickheal = {
41                 ["type1"] = "spell",
42                 ["type2"] = "spell",
43                 ["shift-type1"] = "spell",
44                 ["shift-type2"] = "spell",
45                 ["ctrl-type1"] = "macro",
46                 ["alt-type2"] = "spell",
47                 ["alt-shift-type1"] = "spell",
48                 ["alt-shift-type2"] = "spell",
49                 ["spell1"] = "Holy Light",
50                 ["spell2"] = "Bestow Faith",
51                 ["shift-spell1"] = "Flash of Light",
52                 ["shift-spell2"] = "Light of the Martyr",
53                 ["ctrl-macro1"] = "Cleansing",
54                 ["alt-spell2"] = "Lay on Hands",
55                 ["alt-shift-spell1"] = "Beacon of Light",
56                 ["alt-shift-spell2"] = "Beacon of Faith",
57             },
58         },
59         ["Gedren"] = {
60             AnchorX = 0,
61             AnchorY = -330,
62             Clickheal = {
63                 ["type1"] = "spell",
64                 ["type2"] = "spell",
65                 ["shift-type1"] = "spell",
66                 ["shift-type2"] = "spell",
67                 ["ctrl-type1"] = "spell",
68                 ["alt-type2"] = "spell",
69                 ["spell1"] = "Healing Touch",
70                 ["spell2"] = "Lifebloom",
71                 ["shift-spell1"] = "Regrowth",
72                 ["shift-spell2"] = "Swiftmend",
73                 ["ctrl-spell1"] = "Nature's Cure",
74                 ["alt-spell2"] = "Rebirth",
75             },
76         },
77         ["Gazden"] = {
78             AnchorX = 0,
79             AnchorY = -330,
80             Clickheal = {
81                 ["type1"] = "spell",
82                 ["type2"] = "spell",
83                 ["shift-type1"] = "spell",
84                 ["ctrl-type1"] = "spell",
85                 ["spell1"] = "Healing Wave",
86                 ["spell2"] = "Chain Heal",
87                 ["shift-spell1"] = "Healing Surge",
88                 ["ctrl-spell1"] = "Purify Spirit",
89             },
90         },
91         ["Gilden"] = {
92             AnchorX = 0,
93             AnchorY = -330,
94             Clickheal = {
95                 ["type1"] = "spell",
96                 ["type2"] = "spell",
97                 ["shift-type1"] = "spell",
98                 ["shift-type2"] = "spell",
99                 ["ctrl-type1"] = "spell",
100                 ["spell1"] = "Power Word: Shield",
101                 ["spell2"] = "Penance",
102                 ["shift-spell1"] = "Shadow Mend",
103                 ["shift-spell2"] = "Shadow Covenant",
104                 ["ctrl-spell1"] = "Purify",
105             },
106         },
107         ["Gedran"] = {
108             AnchorX = 0,
109             AnchorY = -330,
110             Clickheal = {
111                 ["type1"] = "spell",
112                 --["type2"] = "macro",
113                 ["spell1"] = "Soulstone",
114                 --["macrotext2"] = "/tar [@mouseover]\n/click ExtraActionButton1\n/targetlasttarget",
115             },
116         },
117     },
118 };
119
120 -- account-wide settings
121 local settings = {
122     Width = 80,
123     Height = 40,
124     IndSize = 14,
125     BaseColor = {0, 0, 0},
126     BgColor = {0.7, 0.7, 0.7},
127     HealthColor = {0.3, 0.3, 0.3},
128     ShieldColor = {0, 0.7, 1},
129     ShieldhlColor = {0.5, 0.8, 1},
130     HealpredColor = {0.5, 0.6, 0.5},
131     HealabsorbColor = {0.1, 0.1, 0.1},
132     OverlayColorDispel = {1, 0.5, 0, 0.5},
133     OverlayColorCharm = {0.8, 0, 1, 0.5},
134     OverlayColorAlert = {1, 0, 0, 0.5},
135     MajorAuras = {
136         -- LEGION --
137         -- Antorus
138         ["Psychic Assault"] = {bar=false},
139         ["Everburning Flames"] = {bar=false},
140         ["Corrupt"] = {bar=false},
141         ["Sleep Canister"] = {bar=false},
142         ["Misery"] = {bar=true},
143         ["Necrotic Embrace"] = {bar=false},
144         ["Fulminating Pulse"] = {bar=false},
145         ["Chilled Blood"] = {bar=false},
146         ["Soulblight"] = {bar=false},
147         ["Soulburst"] = {bar=false},
148         ["Soulbomb"] = {bar=false},
149         ["Shock Grenade"] = {bar=false},
150         ["Acidic Web"] = {bar=false},
151         ["Hungering Gloom"] = {bar=true},
152         ["Empowered Pulse Grenade"] = {bar=false},
153         ["Caustic Slime"] = {bar=false},
154         ["Cloying Shadows"] = {bar=false},
155         ["Conflagration"] = {bar=false},
156         -- Trial of Valor
157         ["Unholy Reckoning"] = {bar=false},
158         -- Nighthold
159         ["Carrion Plague"] = {bar=false},
160         ["Soul Corrosion"] = {bar=false},
161         -- Proving Grounds for testing
162         ["Aqua Bomb"] = {bar=false},
163         [25771] = {bar=false}, -- Forbearance (Paladin)
164         -- Mythic+
165         [209858] = {bar=false}, -- Necrotic Rot
166         [240559] = {bar=false}, -- Grievous Wound
167         [240443] = {bar=false}, -- Burst
168         ["Dessication"] = {bar=false},
169         ["Spit Gold"] = {bar=false},
170         ["Severing Axe"] = {bar=false},
171         ["Galvanize"] = {bar=false},
172         ["Neurotoxin"] = {bar=false},
173         [257908] = {bar=false}, -- Oiled Blade
174         [268391] = {bar=false}, -- Mental Assault
175         [272571] = {bar=false}, -- Choking Waters
176         [268008] = {bar=false}, -- Snake Charm
177         [260741] = {bar=false}, -- Jagged Nettles
178         [280605] = {bar=false}, -- Brain Freeze
179         [268797] = {bar=false}, -- Transmute to Goo
180         [265889] = {bar=false}, -- Torch Strike
181         [266209] = {bar=false}, -- Wicked Frenzy
182         [258323] = {bar=false}, -- Infected Wound
183         [262513] = {bar=false}, -- Azerite Heartseeker
184         -- BATTLE FOR AZEROTH --
185         -- Uldir
186         ["Omega Vector"] = {bar={1, 0.5, 0.5, 0.5}, noicon=true},
187         ["Gestate"] = {bar=false},
188         ["Mutagenic Pathogen"] = {bar=false},
189         ["Lingering Infection"] = {bar=false},
190         ["Malodorous Miasma"] = {bar=false},
191         ["Deadly Disease"] = {bar=false},
192         ["Putrid Paroxysm"] = {bar=false},
193         ["Plasma Discharge"] = {bar=false},
194         ["Deathwish"] = {bar=false},
195         [265360] = {bar=false}, -- Roiling Deceit
196         [265662] = {bar=false}, -- Corruptor's Pact
197         ["Void Lash"] = {bar=false},
198         ["Enlarged Heart"] = {bar=false},
199         ["Unleashed Shadow"] = {bar=false},
200         ["Absorbed in Darkness"] = {bar=false},
201         [264382] = {bar=false}, -- Eye Beam TODO
202         ["Imminent Ruin"] = {bar=false},
203         ["Shadow Barrage"] = {bar=false},
204     },
205 };
206 OmaRFSettings = settings;
207
208 function OmaRFLoadChar()
209     local name, realm = UnitFullName("player");
210     if chars[realm] and chars[realm][name] then
211         settings.Character = chars[realm][name];
212     else
213         settings.Character = charDefaults;
214     end
215 end