2d236ec - Add action bar tooltips
[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     Positions = {"TOPRIGHT", "BOTTOMLEFT"},
13     AnchorX = 0,
14     AnchorY = -330,
15     WatchedAuras = {
16     },
17     Clickheal = {
18     },
19 };
20 local chars = {
21     ["Stormreaver"] = {
22         ["Vildan"] = {
23             AnchorX = 0,
24             AnchorY = -330,
25             Clickheal = {
26                 ["type1"] = "spell",
27                 ["type2"] = "spell",
28                 ["shift-type1"] = "spell",
29                 ["shift-type2"] = "spell",
30                 ["ctrl-type1"] = "macro",
31                 ["alt-type2"] = "spell",
32                 ["alt-shift-type1"] = "spell",
33                 ["alt-shift-type2"] = "spell",
34                 ["spell1"] = "Holy Light",
35                 ["spell2"] = "Bestow Faith",
36                 ["shift-spell1"] = "Flash of Light",
37                 ["shift-spell2"] = "Light of the Martyr",
38                 ["ctrl-macro1"] = "Cleansing",
39                 ["alt-spell2"] = "Lay on Hands",
40                 ["alt-shift-spell1"] = "Beacon of Light",
41                 ["alt-shift-spell2"] = "Beacon of Faith",
42             },
43         },
44         ["Gedren"] = {
45             AnchorX = 0,
46             AnchorY = -330,
47             Clickheal = {
48                 ["type1"] = "spell",
49                 ["type2"] = "spell",
50                 ["shift-type1"] = "spell",
51                 ["shift-type2"] = "spell",
52                 ["ctrl-type1"] = "spell",
53                 ["alt-type2"] = "spell",
54                 ["spell1"] = "Healing Touch",
55                 ["spell2"] = "Lifebloom",
56                 ["shift-spell1"] = "Regrowth",
57                 ["shift-spell2"] = "Swiftmend",
58                 ["ctrl-spell1"] = "Nature's Cure",
59                 ["alt-spell2"] = "Rebirth",
60             },
61         },
62     },
63 };
64
65 -- account-wide settings
66 local settings = {
67     Width = 80,
68     Height = 40,
69     IndSize = 14,
70     BaseColor = {0, 0, 0},
71     BgColor = {0.7, 0.7, 0.7},
72     HealthColor = {0.3, 0.3, 0.3},
73     ShieldColor = {0, 0.7, 1},
74     ShieldhlColor = {0.5, 0.8, 1},
75     HealpredColor = {0.5, 0.6, 0.5},
76     HealabsorbColor = {0.1, 0.1, 0.1},
77     OverlayColorDispel = {1, 0.5, 0, 0.5},
78     OverlayColorCharm = {0.8, 0, 1, 0.5},
79     OverlayColorAlert = {1, 0, 0, 0.5},
80     PowerColors = {
81         [PowerTypeMana] = {0, 0.5, 1},
82         [PowerTypeRage] = {1, 0, 0},
83         [PowerTypeFocus] = {1, 0.5, 0},
84         [PowerTypeEnergy] = {1, 0.8, 0},
85         [PowerTypeRunic] = {0.8, 0, 0.2},
86     },
87     MajorAuras = {
88         -- Antorus
89         ["Psychic Assault"] = {bar=false},
90         ["Everburning Flames"] = {bar=false},
91         ["Corrupt"] = {bar=false},
92         ["Sleep Canister"] = {bar=false},
93         ["Misery"] = {bar=true},
94         ["Necrotic Embrace"] = {bar=false},
95         ["Fulminating Pulse"] = {bar=false},
96         ["Chilled Blood"] = {bar=false},
97         ["Soulblight"] = {bar=false},
98         ["Soulburst"] = {bar=false},
99         ["Soulbomb"] = {bar=false},
100         ["Shock Grenade"] = {bar=false},
101         ["Acidic Web"] = {bar=false},
102         ["Hungering Gloom"] = {bar=true},
103         -- Trial of Valor
104         ["Unholy Reckoning"] = {bar=false},
105         -- Nighthold
106         ["Carrion Plague"] = {bar=false},
107         ["Soul Corrosion"] = {bar=false},
108         -- Proving Grounds for testing
109         ["Aqua Bomb"] = {bar=false},
110         -- Mythic+
111         [209858] = {bar=false}, -- Necrotic Rot
112         [240559] = {bar=false}, -- Grievous Wound
113         --["Grievous Wound"] = {bar=false}, -- Grievous Wound
114         [240443] = {bar=false}, -- Burst
115     },
116 };
117 OmaRFSettings = settings;
118 -- watch to not remove mana entry
119 setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end});
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