997e4c778a7757f3982abeadd0ca8fe3a0f81f4e
[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     Width = 80,
13     Height = 40,
14     AnchorX = 0,
15     AnchorY = -330,
16     WatchedAuras = {
17     },
18     Clickheal = {
19     },
20 };
21 local chars = {
22     ["Stormreaver"] = {
23         ["Vildan"] = {
24             Width = 80,
25             Height = 40,
26             AnchorX = 0,
27             AnchorY = -330,
28             WatchedAuras = {
29                 [53563] = "TOPRIGHT",
30                 [156910] = "TOPRIGHT",
31                 [200025] = "TOPRIGHT",
32                 [200654] = "BOTTOMLEFT",
33             },
34             Clickheal = {
35                 ["type1"] = "spell",
36                 ["type2"] = "spell",
37                 ["shift-type1"] = "spell",
38                 ["shift-type2"] = "spell",
39                 ["ctrl-type1"] = "spell",
40                 ["alt-type2"] = "spell",
41                 ["alt-shift-type1"] = "spell",
42                 ["alt-shift-type2"] = "spell",
43                 ["spell1"] = "Holy Light",
44                 ["spell2"] = "Bestow Faith",
45                 ["shift-spell1"] = "Flash of Light",
46                 ["shift-spell2"] = "Light of the Martyr",
47                 ["ctrl-spell1"] = "Cleanse",
48                 ["alt-spell2"] = "Lay on Hands",
49                 ["alt-shift-spell1"] = "Beacon of Light",
50                 ["alt-shift-spell2"] = "Beacon of Faith",
51             },
52         },
53     },
54 };
55
56 -- account-wide settings
57 local settings = {
58     Positions = {"TOPRIGHT", "BOTTOMLEFT"},
59     IndSize = 14,
60     BaseColor = {0, 0, 0},
61     BgColor = {0.7, 0.7, 0.7},
62     HealthColor = {0.3, 0.3, 0.3},
63     ShieldColor = {0, 0.7, 1},
64     ShieldhlColor = {0.5, 0.8, 1},
65     HealpredColor = {0.5, 0.6, 0.5},
66     HealabsorbColor = {0.1, 0.1, 0.1},
67     OverlayColorDispel = {1, 0.5, 0, 0.5},
68     OverlayColorCharm = {0.8, 0, 1, 0.5},
69     OverlayColorAlert = {1, 0, 0, 0.5},
70     PowerColors = {
71         [PowerTypeMana] = {0, 0.5, 1},
72         [PowerTypeRage] = {1, 0, 0},
73         [PowerTypeFocus] = {1, 0.5, 0},
74         [PowerTypeEnergy] = {1, 0.8, 0},
75         [PowerTypeRunic] = {0.9, 0, 0.1},
76     },
77     MajorAuras = {
78         -- Antorus
79         ["Psychic Assault"] = true,
80         ["Everburning Flames"] = true,
81         ["Corrupt"] = true,
82         ["Sleep Canister"] = true,
83         ["Misery"] = true,
84         ["Necrotic Embrace"] = true,
85         ["Fulminating Pulse"] = true,
86         ["Chilled Blood"] = true,
87         ["Soulblight"] = true,
88         ["Soulburst"] = true,
89         ["Soulbomb"] = true,
90         -- Proving Grounds for testing
91         ["Aqua Bomb"] = true,
92         -- Mythic+
93         [209858] = true, -- Necrotic Rot
94         [240559] = true, -- Grievous Wound
95         [240443] = true, -- Burst
96     },
97 };
98 OmaRFSettings = settings;
99 -- watch to not remove mana entry
100 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
101
102 local name, realm = UnitFullName("player");
103 if chars[realm] and chars[realm][name] then
104     settings.Character = chars[realm][name];
105 else
106     settings.Character = charDefaults;
107 end