-
Notifications
You must be signed in to change notification settings - Fork 6
/
Tags.lua
73 lines (67 loc) · 1.76 KB
/
Tags.lua
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
local E, _, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local _, L = unpack(select(2, ...))
local format = format
E.Options.args.tagGroup = {
order = 925,
type = "group",
name = L["Available Tags"],
childGroups = "tab",
args = {
link = {
order = 1,
type = "input",
width = "full",
name = L["Guide:"],
get = function() return "https://www.tukui.org/forum/viewtopic.php?f=9&t=6" end,
},
header = {
order = 2,
type = "header",
name = L["Available Tags"],
},
-- Colors = {
-- type = "group",
-- name = L["Colors"],
-- args = {
-- header = {
-- order = 0,
-- type = "header",
-- name = L["Colors"],
-- },
-- customTagColorInfo = {
-- order = 1,
-- type = "input",
-- width = "full",
-- name = L["Custom color your Text: replace the XXXXXX with a Hex color code"],
-- get = function() return "||cffXXXXXX [теги] или текст здесь ||r" end
-- }
-- }
-- },
},
}
for Tag in next, E.oUF.Tags.Methods do
if not E.TagInfo[Tag] then
E.TagInfo[Tag] = {category = L["Miscellaneous"], description = ""}
--E:Print("['"..Tag.."'] = { category = 'Miscellaneous', description = '' }")
end
if not E.Options.args.tagGroup.args[E.TagInfo[Tag].category] then
E.Options.args.tagGroup.args[E.TagInfo[Tag].category] = {
type = "group",
name = E.TagInfo[Tag].category,
args = {
header = {
order = 0,
type = "header",
name = E.InfoColor..E.TagInfo[Tag].category,
}
}
}
end
E.Options.args.tagGroup.args[E.TagInfo[Tag].category].args[Tag] = {
type = "input",
name = E.TagInfo[Tag].description,
order = E.TagInfo[Tag].order or nil,
width = "full",
get = function() return format("[%s]", Tag) end,
}
end