cdfcbcb9df328aee798fe9126d1ec897ff7e65a2
[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         ["Gedran"] = {
68             AnchorX = 0,
69             AnchorY = -330,
70             Clickheal = {
71                 ["type1"] = "spell",
72                 --["type2"] = "macro",
73                 ["spell1"] = "Soulstone",
74                 --["macrotext2"] = "/tar [@mouseover]\n/click ExtraActionButton1\n/targetlasttarget",
75             },
76         },
77     },
78 };
79
80 -- account-wide settings
81 local settings = {
82     Width = 80,
83     Height = 40,
84     IndSize = 14,
85     BaseColor = {0, 0, 0},
86     BgColor = {0.7, 0.7, 0.7},
87     HealthColor = {0.3, 0.3, 0.3},
88     ShieldColor = {0, 0.7, 1},
89     ShieldhlColor = {0.5, 0.8, 1},
90     HealpredColor = {0.5, 0.6, 0.5},
91     HealabsorbColor = {0.1, 0.1, 0.1},
92     OverlayColorDispel = {1, 0.5, 0, 0.5},
93     OverlayColorCharm = {0.8, 0, 1, 0.5},
94     OverlayColorAlert = {1, 0, 0, 0.5},
95     MajorAuras = {
96         -- Antorus
97         ["Psychic Assault"] = {bar=false},
98         ["Everburning Flames"] = {bar=false},
99         ["Corrupt"] = {bar=false},
100         ["Sleep Canister"] = {bar=false},
101         ["Misery"] = {bar=true},
102         ["Necrotic Embrace"] = {bar=false},
103         ["Fulminating Pulse"] = {bar=false},
104         ["Chilled Blood"] = {bar=false},
105         ["Soulblight"] = {bar=false},
106         ["Soulburst"] = {bar=false},
107         ["Soulbomb"] = {bar=false},
108         ["Shock Grenade"] = {bar=false},
109         ["Acidic Web"] = {bar=false},
110         ["Hungering Gloom"] = {bar=true},
111         ["Empowered Pulse Grenade"] = {bar=false},
112         ["Caustic Slime"] = {bar=false},
113         ["Cloying Shadows"] = {bar=false},
114         ["Conflagration"] = {bar=false},
115         -- Trial of Valor
116         ["Unholy Reckoning"] = {bar=false},
117         -- Nighthold
118         ["Carrion Plague"] = {bar=false},
119         ["Soul Corrosion"] = {bar=false},
120         -- Proving Grounds for testing
121         ["Aqua Bomb"] = {bar=false},
122         -- Mythic+
123         [209858] = {bar=false}, -- Necrotic Rot
124         [240559] = {bar=false}, -- Grievous Wound
125         --["Grievous Wound"] = {bar=false}, -- Grievous Wound
126         [240443] = {bar=false}, -- Burst
127     },
128 };
129 OmaRFSettings = settings;
130
131 function OmaRFLoadChar()
132     local name, realm = UnitFullName("player");
133     if chars[realm] and chars[realm][name] then
134         settings.Character = chars[realm][name];
135     else
136         settings.Character = charDefaults;
137     end
138 end