bb359ca - Update OmaGtfo spell sounds
[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         ["Gedran"] = {
92             AnchorX = 0,
93             AnchorY = -330,
94             Clickheal = {
95                 ["type1"] = "spell",
96                 --["type2"] = "macro",
97                 ["spell1"] = "Soulstone",
98                 --["macrotext2"] = "/tar [@mouseover]\n/click ExtraActionButton1\n/targetlasttarget",
99             },
100         },
101     },
102 };
103
104 -- account-wide settings
105 local settings = {
106     Width = 80,
107     Height = 40,
108     IndSize = 14,
109     BaseColor = {0, 0, 0},
110     BgColor = {0.7, 0.7, 0.7},
111     HealthColor = {0.3, 0.3, 0.3},
112     ShieldColor = {0, 0.7, 1},
113     ShieldhlColor = {0.5, 0.8, 1},
114     HealpredColor = {0.5, 0.6, 0.5},
115     HealabsorbColor = {0.1, 0.1, 0.1},
116     OverlayColorDispel = {1, 0.5, 0, 0.5},
117     OverlayColorCharm = {0.8, 0, 1, 0.5},
118     OverlayColorAlert = {1, 0, 0, 0.5},
119     MajorAuras = {
120         -- LEGION --
121         -- Antorus
122         ["Psychic Assault"] = {bar=false},
123         ["Everburning Flames"] = {bar=false},
124         ["Corrupt"] = {bar=false},
125         ["Sleep Canister"] = {bar=false},
126         ["Misery"] = {bar=true},
127         ["Necrotic Embrace"] = {bar=false},
128         ["Fulminating Pulse"] = {bar=false},
129         ["Chilled Blood"] = {bar=false},
130         ["Soulblight"] = {bar=false},
131         ["Soulburst"] = {bar=false},
132         ["Soulbomb"] = {bar=false},
133         ["Shock Grenade"] = {bar=false},
134         ["Acidic Web"] = {bar=false},
135         ["Hungering Gloom"] = {bar=true},
136         ["Empowered Pulse Grenade"] = {bar=false},
137         ["Caustic Slime"] = {bar=false},
138         ["Cloying Shadows"] = {bar=false},
139         ["Conflagration"] = {bar=false},
140         -- Trial of Valor
141         ["Unholy Reckoning"] = {bar=false},
142         -- Nighthold
143         ["Carrion Plague"] = {bar=false},
144         ["Soul Corrosion"] = {bar=false},
145         -- Proving Grounds for testing
146         ["Aqua Bomb"] = {bar=false},
147         -- Mythic+
148         [209858] = {bar=false}, -- Necrotic Rot
149         [240559] = {bar=false}, -- Grievous Wound
150         --["Grievous Wound"] = {bar=false}, -- Grievous Wound
151         [240443] = {bar=false}, -- Burst
152         -- BATTLE FOR AZEROTH --
153         -- Uldir
154         ["Omega Vector"] = {bar={1, 0.5, 0.5, 0.5}, noicon=true},
155         ["Gestate"] = {bar=false},
156         ["Mutagenic Pathogen"] = {bar=false},
157         ["Lingering Infection"] = {bar=false},
158         ["Malodorous Miasma"] = {bar=false},
159         ["Deadly Disease"] = {bar=false},
160     },
161 };
162 OmaRFSettings = settings;
163
164 function OmaRFLoadChar()
165     local name, realm = UnitFullName("player");
166     if chars[realm] and chars[realm][name] then
167         settings.Character = chars[realm][name];
168     else
169         settings.Character = charDefaults;
170     end
171 end