-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPresets.lua
More file actions
147 lines (143 loc) · 3.5 KB
/
Presets.lua
File metadata and controls
147 lines (143 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
if not MagicRunes then return end -- not on a DK
local L = LibStub("AceLocale-3.0"):GetLocale("MagicRunes", false)
local mod = MagicRunes
mod.presets = {
["TinyBars"] = {
["data"] = {
["thickness"] = 5.08,
["animateIcons"] = false,
["showIcon"] = false,
["spacing"] = 0.7100000000000009,
["orientation"] = 1,
["length"] = 113.14,
["showRemaining"] = false,
["iconScale"] = 1,
["showTimer"] = false,
["showLabel"] = false,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Tiny horizontal bars"],
},
["IconBar"] = {
["data"] = {
["thickness"] = 3.61,
["animateIcons"] = true,
["showIcon"] = true,
["spacing"] = 11.22,
["orientation"] = 1,
["length"] = 156.89,
["showRemaining"] = true,
["iconScale"] = 6.33,
["showTimer"] = false,
["showLabel"] = false,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Horizontal animated icons"],
},
["VertLabelBars"] = {
["data"] = {
["thickness"] = 17.25,
["animateIcons"] = false,
["showIcon"] = false,
["spacing"] = 0,
["orientation"] = 2,
["length"] = 113.14,
["showRemaining"] = true,
["showTimer"] = true,
["showLabel"] = true,
["iconScale"] = 4.1,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Vertical labeled bars"],
},
["TinyVertBars"] = {
["data"] = {
["thickness"] = 5.08,
["animateIcons"] = false,
["showIcon"] = false,
["spacing"] = 0.7100000000000009,
["orientation"] = 2,
["length"] = 113.14,
["showRemaining"] = true,
["iconScale"] = 1,
["showTimer"] = false,
["showLabel"] = false,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Tiny vertical bars"],
},
["StaticLabeledBars"] = {
["data"] = {
["thickness"] = 16.85,
["animateIcons"] = false,
["showIcon"] = true,
["spacing"] = 0,
["orientation"] = 1,
["length"] = 180.64,
["showRemaining"] = false,
["iconScale"] = 1,
["showTimer"] = true,
["showLabel"] = true,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Horizontal labeled bars"],
},
["VertIconBars"] = {
["data"] = {
["thickness"] = 5.08,
["animateIcons"] = true,
["showIcon"] = true,
["spacing"] = 7.079999999999998,
["orientation"] = 2,
["length"] = 113.14,
["showRemaining"] = true,
["iconScale"] = 4.1,
["showTimer"] = false,
["showLabel"] = false,
["bgtexture"] = "Minimalist",
["texture"] = "Minimalist",
["timerOnIcon"] = false,
},
["name"] = L["Vertical animated icons"],
},
["HorizIconBar"] = {
["name"] = L["Static icons, timer, no bars"],
["data"] = {
["showTimer"] = true,
["iconScale"] = 1.02,
["alphaGCD"] = 0.43,
["showSpark"] = false,
["bgtexture"] = "Empty",
["texture"] = "Empty",
["showLabel"] = false,
["showIcon"] = true,
["spacing"] = -2.649999999999999,
["length"] = 20,
["alphaActive"] = 0.03,
["flashTimes"] = 1,
["thickness"] = 18.64,
["animateIcons"] = false,
["timerOnIcon"] = true,
["orientation"] = 2,
["flashMode"] = 3,
["showRemaining"] = true,
["fadeAlpha"] = true,
["scale"] = 1.6,
},
},
}
local presetValues = {}
for name,data in pairs(MagicRunes.presets) do
presetValues[name] = data.name
end
function MagicRunes:GetPresetList() return presetValues end