9c6a1a5 - Don't show healthstone warning if you are dead
[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     ["Stormreaver"] = {
13         ["Vildan"] = {
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"] = "macro",
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-macro1"] = "Cleansing",
30                 ["alt-spell2"] = "Lay on Hands",
31                 ["alt-shift-spell1"] = "Beacon of Light",
32                 ["alt-shift-spell2"] = "Beacon of Faith",
33             },
34         },
35         ["Gedren"] = {
36             AnchorX = 0,
37             AnchorY = -330,
38             Clickheal = {
39                 ["type1"] = "spell",
40                 ["type2"] = "spell",
41                 ["shift-type1"] = "spell",
42                 ["shift-type2"] = "spell",
43                 ["ctrl-type1"] = "spell",
44                 ["alt-type2"] = "spell",
45                 ["spell1"] = "Healing Touch",
46                 ["spell2"] = "Lifebloom",
47                 ["shift-spell1"] = "Regrowth",
48                 ["shift-spell2"] = "Swiftmend",
49                 ["ctrl-spell1"] = "Nature's Cure",
50                 ["alt-spell2"] = "Rebirth",
51             },
52         },
53         ["Gazden"] = {
54             AnchorX = 0,
55             AnchorY = -330,
56             Clickheal = {
57                 ["type1"] = "spell",
58                 ["type2"] = "spell",
59                 ["shift-type1"] = "spell",
60                 ["ctrl-type1"] = "spell",
61                 ["spell1"] = "Healing Wave",
62                 ["spell2"] = "Chain Heal",
63                 ["shift-spell1"] = "Healing Surge",
64                 ["ctrl-spell1"] = "Purify Spirit",
65             },
66         },
67     },
68 };
69
70 -- account-wide settings
71 local settings = {
72     Width = 80,
73     Height = 40,
74     IndSize = 14,
75     BaseColor = {0, 0, 0},
76     BgColor = {0.7, 0.7, 0.7},
77     HealthColor = {0.3, 0.3, 0.3},
78     ShieldColor = {0, 0.7, 1},
79     ShieldhlColor = {0.5, 0.8, 1},
80     HealpredColor = {0.5, 0.6, 0.5},
81     HealabsorbColor = {0.1, 0.1, 0.1},
82     OverlayColorDispel = {1, 0.5, 0, 0.5},
83     OverlayColorCharm = {0.8, 0, 1, 0.5},
84     OverlayColorAlert = {1, 0, 0, 0.5},
85     MajorAuras = {
86         -- Antorus
87         ["Psychic Assault"] = {bar=false},
88         ["Everburning Flames"] = {bar=false},
89         ["Corrupt"] = {bar=false},
90         ["Sleep Canister"] = {bar=false},
91         ["Misery"] = {bar=true},
92         ["Necrotic Embrace"] = {bar=false},
93         ["Fulminating Pulse"] = {bar=false},
94         ["Chilled Blood"] = {bar=false},
95         ["Soulblight"] = {bar=false},
96         ["Soulburst"] = {bar=false},
97         ["Soulbomb"] = {bar=false},
98         ["Shock Grenade"] = {bar=false},
99         ["Acidic Web"] = {bar=false},
100         ["Hungering Gloom"] = {bar=true},
101         ["Empowered Pulse Grenade"] = {bar=false},
102         ["Caustic Slime"] = {bar=false},
103         ["Cloying Shadows"] = {bar=false},
104         ["Conflagration"] = {bar=false},
105         -- Trial of Valor
106         ["Unholy Reckoning"] = {bar=false},
107         -- Nighthold
108         ["Carrion Plague"] = {bar=false},
109         ["Soul Corrosion"] = {bar=false},
110         -- Proving Grounds for testing
111         ["Aqua Bomb"] = {bar=false},
112         -- Mythic+
113         [209858] = {bar=false}, -- Necrotic Rot
114         [240559] = {bar=false}, -- Grievous Wound
115         --["Grievous Wound"] = {bar=false}, -- Grievous Wound
116         [240443] = {bar=false}, -- Burst
117     },
118 };
119 OmaRFSettings = settings;
120
121 function OmaRFLoadChar()
122     local name, realm = UnitFullName("player");
123     if chars[realm] and chars[realm][name] then
124         settings.Character = chars[realm][name];
125     else
126         settings.Character = charDefaults;
127     end
128 end