ebee0bd - Add autologging
[wowui.git] / OmaRF / Settings.lua
1 -- Settings.lua
2 local rawget = rawget;
3
4 -- configurable settings
5 -- character specific settings
6 local charDefaults = {
7     Positions = {"TOPRIGHT", "BOTTOMLEFT"},
8     AnchorX = 0,
9     AnchorY = -330,
10     WatchedAuras = {
11     },
12     Clickheal = {
13     },
14 };
15 local chars = {
16     ["Stormreaver"] = {
17         ["Vildan"] = {
18             AnchorX = 0,
19             AnchorY = -330,
20             Clickheal = {
21                 ["type1"] = "spell",
22                 ["type2"] = "spell",
23                 ["shift-type1"] = "spell",
24                 ["shift-type2"] = "spell",
25                 ["ctrl-type1"] = "macro",
26                 ["alt-type2"] = "spell",
27                 ["alt-shift-type1"] = "spell",
28                 ["alt-shift-type2"] = "spell",
29                 ["spell1"] = "Holy Light",
30                 ["spell2"] = "Bestow Faith",
31                 ["shift-spell1"] = "Flash of Light",
32                 ["shift-spell2"] = "Light of the Martyr",
33                 ["ctrl-macro1"] = "Cleansing",
34                 ["alt-spell2"] = "Lay on Hands",
35                 ["alt-shift-spell1"] = "Beacon of Light",
36                 ["alt-shift-spell2"] = "Beacon of Faith",
37             },
38         },
39         ["Gedren"] = {
40             AnchorX = 0,
41             AnchorY = -330,
42             Clickheal = {
43                 ["type1"] = "spell",
44                 ["type2"] = "spell",
45                 ["shift-type1"] = "spell",
46                 ["shift-type2"] = "spell",
47                 ["ctrl-type1"] = "spell",
48                 ["alt-type2"] = "spell",
49                 ["spell1"] = "Healing Touch",
50                 ["spell2"] = "Lifebloom",
51                 ["shift-spell1"] = "Regrowth",
52                 ["shift-spell2"] = "Swiftmend",
53                 ["ctrl-spell1"] = "Nature's Cure",
54                 ["alt-spell2"] = "Rebirth",
55             },
56         },
57         ["Gazden"] = {
58             AnchorX = 0,
59             AnchorY = -330,
60             Clickheal = {
61                 ["type1"] = "spell",
62                 ["type2"] = "spell",
63                 ["shift-type1"] = "spell",
64                 ["ctrl-type1"] = "spell",
65                 ["spell1"] = "Healing Wave",
66                 ["spell2"] = "Chain Heal",
67                 ["shift-spell1"] = "Healing Surge",
68                 ["ctrl-spell1"] = "Purify Spirit",
69             },
70         },
71     },
72 };
73
74 -- account-wide settings
75 local settings = {
76     Width = 80,
77     Height = 40,
78     IndSize = 14,
79     BaseColor = {0, 0, 0},
80     BgColor = {0.7, 0.7, 0.7},
81     HealthColor = {0.3, 0.3, 0.3},
82     ShieldColor = {0, 0.7, 1},
83     ShieldhlColor = {0.5, 0.8, 1},
84     HealpredColor = {0.5, 0.6, 0.5},
85     HealabsorbColor = {0.1, 0.1, 0.1},
86     OverlayColorDispel = {1, 0.5, 0, 0.5},
87     OverlayColorCharm = {0.8, 0, 1, 0.5},
88     OverlayColorAlert = {1, 0, 0, 0.5},
89     MajorAuras = {
90         -- Antorus
91         ["Psychic Assault"] = {bar=false},
92         ["Everburning Flames"] = {bar=false},
93         ["Corrupt"] = {bar=false},
94         ["Sleep Canister"] = {bar=false},
95         ["Misery"] = {bar=true},
96         ["Necrotic Embrace"] = {bar=false},
97         ["Fulminating Pulse"] = {bar=false},
98         ["Chilled Blood"] = {bar=false},
99         ["Soulblight"] = {bar=false},
100         ["Soulburst"] = {bar=false},
101         ["Soulbomb"] = {bar=false},
102         ["Shock Grenade"] = {bar=false},
103         ["Acidic Web"] = {bar=false},
104         ["Hungering Gloom"] = {bar=true},
105         ["Empowered Pulse Grenade"] = {bar=false},
106         ["Caustic Slime"] = {bar=false},
107         -- Trial of Valor
108         ["Unholy Reckoning"] = {bar=false},
109         -- Nighthold
110         ["Carrion Plague"] = {bar=false},
111         ["Soul Corrosion"] = {bar=false},
112         -- Proving Grounds for testing
113         ["Aqua Bomb"] = {bar=false},
114         -- Mythic+
115         [209858] = {bar=false}, -- Necrotic Rot
116         [240559] = {bar=false}, -- Grievous Wound
117         --["Grievous Wound"] = {bar=false}, -- Grievous Wound
118         [240443] = {bar=false}, -- Burst
119     },
120 };
121 OmaRFSettings = settings;
122
123 function OmaRFLoadChar()
124     local name, realm = UnitFullName("player");
125     if chars[realm] and chars[realm][name] then
126         settings.Character = chars[realm][name];
127     else
128         settings.Character = charDefaults;
129     end
130 end