lycheedev 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lycheedev.js +21 -6
- package/package.json +1 -1
- package/vendor/addon/Core/Bootstrap.lua +131 -131
- package/vendor/addon/Core/Clients/Mainline.lua +9 -9
- package/vendor/addon/Core/Clients/Mists.lua +9 -9
- package/vendor/addon/Core/Clients/Titan.lua +9 -9
- package/vendor/addon/Core/Compatibility.lua +43 -43
- package/vendor/addon/Core/Database.lua +859 -859
- package/vendor/addon/Core/Inspector.lua +647 -647
- package/vendor/addon/Core/Locale.lua +307 -307
- package/vendor/addon/Core/Locale_enUS.lua +318 -318
- package/vendor/addon/Core/Safety.lua +42 -42
- package/vendor/addon/Core/Serializer.lua +324 -324
- package/vendor/addon/Libs/AutomationQR.lua +1176 -1176
- package/vendor/addon/Lychee Dev_Mainline.toc +43 -43
- package/vendor/addon/Lychee Dev_Mists.toc +43 -43
- package/vendor/addon/Lychee Dev_Wrath.toc +43 -43
- package/vendor/addon/Modules/Automation/Controller.lua +757 -757
- package/vendor/addon/Modules/Automation/Report.lua +409 -409
- package/vendor/addon/Modules/Automation/auto/auto.lua +12 -12
- package/vendor/addon/Modules/Diagnostics.lua +238 -238
- package/vendor/addon/Modules/Events/Catalog.lua +184 -184
- package/vendor/addon/Modules/Events/CatalogData_Mainline.lua +1788 -1788
- package/vendor/addon/Modules/Events/CatalogData_Mists.lua +1489 -1489
- package/vendor/addon/Modules/Events/CatalogData_Titan.lua +1492 -1492
- package/vendor/addon/Modules/Events/Monitor.lua +181 -181
- package/vendor/addon/Modules/FunctionTrace.lua +85 -85
- package/vendor/addon/Modules/ObjectInspector.lua +329 -329
- package/vendor/addon/UI/AutomationOverlay.lua +183 -183
- package/vendor/addon/UI/Export.lua +140 -140
- package/vendor/addon/UI/Features.lua +890 -890
- package/vendor/addon/UI/MainWindow.lua +1145 -1145
- package/vendor/addon/UI/Pages/About.lua +223 -223
- package/vendor/addon/UI/Pages/Automation.lua +417 -417
- package/vendor/addon/UI/Pages/Diagnostics.lua +289 -289
- package/vendor/addon/UI/Pages/ExportRecords.lua +387 -387
- package/vendor/addon/UI/Pages/Object.lua +573 -573
- package/vendor/addon/UI/Pages/Trace.lua +165 -165
- package/vendor/skill/SKILL.md +94 -94
- package/vendor/skill/agents/openai.yaml +4 -4
- package/vendor/skill/references/automation.md +327 -327
- package/vendor/skill/references/runtime-investigations.md +97 -97
- package/vendor/skill/scripts/automation/__init__.py +1 -1
- package/vendor/skill/scripts/automation/registry.py +516 -516
- package/vendor/skill/scripts/automation/saved_variables.py +438 -438
- package/vendor/skill/scripts/automation/session.py +207 -207
- package/vendor/skill/scripts/automation/windows.py +573 -573
- package/vendor/skill/scripts/automation.py +865 -865
- package/vendor/skill/scripts/requirements.txt +13 -13
- package/vendor/skill/scripts/selftest_offline.py +981 -981
|
@@ -1,223 +1,223 @@
|
|
|
1
|
-
local ADDON_NAME, ns = ...
|
|
2
|
-
local L = ns.L
|
|
3
|
-
|
|
4
|
-
local REPOSITORY_URL = "https://github.com/Follen/Lychee-Dev"
|
|
5
|
-
|
|
6
|
-
local function CreateMetaItem(parent, labelText, valueText, x, y, width)
|
|
7
|
-
local label = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
8
|
-
label:SetPoint("TOPLEFT", x, y)
|
|
9
|
-
label:SetWidth(width)
|
|
10
|
-
label:SetJustifyH("LEFT")
|
|
11
|
-
label:SetWordWrap(false)
|
|
12
|
-
label:SetText(labelText)
|
|
13
|
-
label:SetTextColor(1, 1, 1, 0.34)
|
|
14
|
-
|
|
15
|
-
local value = parent:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
|
16
|
-
value:SetPoint("TOPLEFT", x, y - 22)
|
|
17
|
-
value:SetWidth(width)
|
|
18
|
-
value:SetJustifyH("LEFT")
|
|
19
|
-
value:SetWordWrap(false)
|
|
20
|
-
value:SetText(valueText)
|
|
21
|
-
value:SetTextColor(0.94, 0.95, 0.96, 0.94)
|
|
22
|
-
return { label = label, value = value }
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
local function CreateEnvironmentRow(parent, labelText, valueText, detailText, y, accent)
|
|
26
|
-
local label = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
27
|
-
label:SetPoint("TOPLEFT", 17, y)
|
|
28
|
-
label:SetWidth(160)
|
|
29
|
-
label:SetJustifyH("LEFT")
|
|
30
|
-
label:SetText(labelText)
|
|
31
|
-
label:SetTextColor(1, 1, 1, 0.36)
|
|
32
|
-
|
|
33
|
-
local value = parent:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
|
34
|
-
value:SetPoint("TOPLEFT", 190, y + 1)
|
|
35
|
-
value:SetPoint("RIGHT", -18, 0)
|
|
36
|
-
value:SetJustifyH("LEFT")
|
|
37
|
-
value:SetText(valueText)
|
|
38
|
-
value:SetTextColor(accent and 0.42 or 0.86, accent and 0.76 or 0.89, accent and 0.43 or 0.92, 0.94)
|
|
39
|
-
|
|
40
|
-
local detail = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
41
|
-
detail:SetPoint("TOPLEFT", value, "BOTTOMLEFT", 0, -7)
|
|
42
|
-
detail:SetPoint("RIGHT", -18, 0)
|
|
43
|
-
detail:SetJustifyH("LEFT")
|
|
44
|
-
detail:SetText(detailText)
|
|
45
|
-
detail:SetTextColor(1, 1, 1, 0.34)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
function ns.CreateAboutPage(parent, ui)
|
|
49
|
-
local page = CreateFrame("Frame", nil, parent)
|
|
50
|
-
page:SetAllPoints(parent)
|
|
51
|
-
|
|
52
|
-
local description = page:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
|
|
53
|
-
description:SetPoint("TOPLEFT", 17, -101)
|
|
54
|
-
description:SetWidth(930)
|
|
55
|
-
description:SetJustifyH("LEFT")
|
|
56
|
-
description:SetText(L.ABOUT_DESCRIPTION)
|
|
57
|
-
description:SetTextColor(0.92, 0.94, 0.96, 0.92)
|
|
58
|
-
|
|
59
|
-
local version = "0.7.2"
|
|
60
|
-
version = ns.Client.GetAddOnMetadata(ADDON_NAME, "Version") or version
|
|
61
|
-
|
|
62
|
-
local accent = page:CreateTexture(nil, "ARTWORK")
|
|
63
|
-
accent:SetColorTexture(ui.accentR, ui.accentG, ui.accentB, 0.92)
|
|
64
|
-
accent:SetPoint("TOPLEFT", 17, -137)
|
|
65
|
-
accent:SetSize(32, 2)
|
|
66
|
-
|
|
67
|
-
local projectLabel = ui.CreateSectionLabel(page, L.ABOUT_PROJECT)
|
|
68
|
-
projectLabel:SetPoint("TOPLEFT", 17, -166)
|
|
69
|
-
|
|
70
|
-
local metadata = CreateFrame("Frame", nil, page)
|
|
71
|
-
metadata:SetPoint("TOPLEFT", 14, -188)
|
|
72
|
-
metadata:SetPoint("TOPRIGHT", -14, -188)
|
|
73
|
-
metadata:SetHeight(112)
|
|
74
|
-
local metadataBackground = metadata:CreateTexture(nil, "BACKGROUND")
|
|
75
|
-
metadataBackground:SetAllPoints()
|
|
76
|
-
metadataBackground:SetColorTexture(ui.surfaceR, ui.surfaceG, ui.surfaceB, 0.24)
|
|
77
|
-
|
|
78
|
-
local metaItems = {
|
|
79
|
-
version = CreateMetaItem(metadata, L.ABOUT_VERSION, version, 18, -12, 250),
|
|
80
|
-
author = CreateMetaItem(metadata, L.ABOUT_AUTHOR, "Follen", 330, -12, 250),
|
|
81
|
-
command = CreateMetaItem(metadata, L.ABOUT_COMMAND, "/dev", 642, -12, 250),
|
|
82
|
-
clients = CreateMetaItem(metadata, L.ABOUT_CLIENT, L.ABOUT_CLIENT_VALUE, 18, -64, 920),
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
for _, x in ipairs({ 312, 624 }) do
|
|
86
|
-
local separator = metadata:CreateTexture(nil, "ARTWORK")
|
|
87
|
-
separator:SetColorTexture(1, 1, 1, 0.06)
|
|
88
|
-
separator:SetPoint("TOPLEFT", x, -10)
|
|
89
|
-
separator:SetPoint("BOTTOMLEFT", x, 58)
|
|
90
|
-
separator:SetWidth(1)
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
local metadataDivider = metadata:CreateTexture(nil, "ARTWORK")
|
|
94
|
-
metadataDivider:SetColorTexture(1, 1, 1, 0.06)
|
|
95
|
-
metadataDivider:SetPoint("TOPLEFT", 18, -55)
|
|
96
|
-
metadataDivider:SetPoint("TOPRIGHT", -18, -55)
|
|
97
|
-
metadataDivider:SetHeight(1)
|
|
98
|
-
|
|
99
|
-
local environmentLabel = ui.CreateSectionLabel(page, L.ABOUT_ENVIRONMENT)
|
|
100
|
-
environmentLabel:SetPoint("TOPLEFT", 17, -329)
|
|
101
|
-
|
|
102
|
-
CreateEnvironmentRow(page, L.ABOUT_DEPENDENCY, L.ABOUT_DEPENDENCY_STATUS,
|
|
103
|
-
L.ABOUT_DEPENDENCY_DETAIL, -358, true)
|
|
104
|
-
|
|
105
|
-
local rowDivider = page:CreateTexture(nil, "ARTWORK")
|
|
106
|
-
rowDivider:SetColorTexture(1, 1, 1, 0.06)
|
|
107
|
-
rowDivider:SetPoint("TOPLEFT", 190, -403)
|
|
108
|
-
rowDivider:SetPoint("TOPRIGHT", -18, -403)
|
|
109
|
-
rowDivider:SetHeight(1)
|
|
110
|
-
|
|
111
|
-
CreateEnvironmentRow(page, L.ABOUT_SAFETY, L.ABOUT_SAFETY_STATUS,
|
|
112
|
-
L.ABOUT_SAFETY_TEXT, -423, false)
|
|
113
|
-
|
|
114
|
-
local githubButton = CreateFrame("Button", nil, page)
|
|
115
|
-
githubButton:SetSize(38, 38)
|
|
116
|
-
githubButton:SetPoint("BOTTOMLEFT", 17, 17)
|
|
117
|
-
|
|
118
|
-
local githubIcon = githubButton:CreateTexture(nil, "ARTWORK")
|
|
119
|
-
githubIcon:SetAllPoints()
|
|
120
|
-
githubIcon:SetTexture("Interface\\AddOns\\" .. ADDON_NAME .. "\\Media\\GitHub.png")
|
|
121
|
-
githubIcon:SetAlpha(0.38)
|
|
122
|
-
|
|
123
|
-
githubButton:SetScript("OnEnter", function()
|
|
124
|
-
githubIcon:SetAlpha(0.72)
|
|
125
|
-
end)
|
|
126
|
-
githubButton:SetScript("OnLeave", function()
|
|
127
|
-
githubIcon:SetAlpha(0.38)
|
|
128
|
-
end)
|
|
129
|
-
|
|
130
|
-
local linkPopup
|
|
131
|
-
local linkBackdrop
|
|
132
|
-
|
|
133
|
-
local function HideLinkPopup()
|
|
134
|
-
if linkPopup then
|
|
135
|
-
linkPopup:Hide()
|
|
136
|
-
end
|
|
137
|
-
if linkBackdrop then
|
|
138
|
-
linkBackdrop:Hide()
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
local function EnsureLinkPopup()
|
|
143
|
-
if linkPopup then
|
|
144
|
-
return linkPopup
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
linkBackdrop = CreateFrame("Button", nil, UIParent)
|
|
148
|
-
linkBackdrop:SetAllPoints(UIParent)
|
|
149
|
-
linkBackdrop:SetFrameStrata("DIALOG")
|
|
150
|
-
linkBackdrop:SetFrameLevel(499)
|
|
151
|
-
linkBackdrop:RegisterForClicks("AnyUp")
|
|
152
|
-
linkBackdrop:SetScript("OnClick", HideLinkPopup)
|
|
153
|
-
local shade = linkBackdrop:CreateTexture(nil, "BACKGROUND")
|
|
154
|
-
shade:SetAllPoints()
|
|
155
|
-
shade:SetColorTexture(0, 0, 0, 0.24)
|
|
156
|
-
|
|
157
|
-
linkPopup = ui.CreatePanel(UIParent, ui.surfaceR, ui.surfaceG, ui.surfaceB, 0.98)
|
|
158
|
-
linkPopup:SetSize(420, 54)
|
|
159
|
-
linkPopup:SetFrameStrata("DIALOG")
|
|
160
|
-
linkPopup:SetFrameLevel(500)
|
|
161
|
-
linkPopup:EnableMouse(true)
|
|
162
|
-
|
|
163
|
-
local urlPanel = ui.CreatePanel(linkPopup, ui.editorR, ui.editorG, ui.editorB, 1)
|
|
164
|
-
urlPanel:SetPoint("TOPLEFT", 12, -10)
|
|
165
|
-
urlPanel:SetPoint("BOTTOMRIGHT", -12, 10)
|
|
166
|
-
|
|
167
|
-
local urlBox = CreateFrame("EditBox", nil, urlPanel)
|
|
168
|
-
urlBox:SetPoint("TOPLEFT", 10, -1)
|
|
169
|
-
urlBox:SetPoint("BOTTOMRIGHT", -10, 1)
|
|
170
|
-
urlBox:SetAutoFocus(false)
|
|
171
|
-
urlBox:SetFontObject(ChatFontNormal)
|
|
172
|
-
urlBox:SetJustifyH("CENTER")
|
|
173
|
-
urlBox:SetTextColor(0.94, 0.95, 0.96)
|
|
174
|
-
urlBox.savedText = REPOSITORY_URL
|
|
175
|
-
urlBox:SetText(REPOSITORY_URL)
|
|
176
|
-
urlBox:SetScript("OnEscapePressed", function(self)
|
|
177
|
-
self:ClearFocus()
|
|
178
|
-
HideLinkPopup()
|
|
179
|
-
end)
|
|
180
|
-
urlBox:SetScript("OnMouseUp", function(self)
|
|
181
|
-
self:SetFocus()
|
|
182
|
-
self:HighlightText()
|
|
183
|
-
end)
|
|
184
|
-
urlBox:SetScript("OnTextChanged", function(self)
|
|
185
|
-
if not self.updatingText and self:GetText() ~= self.savedText then
|
|
186
|
-
self.updatingText = true
|
|
187
|
-
self:SetText(self.savedText)
|
|
188
|
-
self.updatingText = nil
|
|
189
|
-
self:HighlightText()
|
|
190
|
-
end
|
|
191
|
-
end)
|
|
192
|
-
|
|
193
|
-
linkPopup:SetScript("OnMouseDown", function()
|
|
194
|
-
urlBox:SetFocus()
|
|
195
|
-
urlBox:HighlightText()
|
|
196
|
-
end)
|
|
197
|
-
linkPopup:Hide()
|
|
198
|
-
linkBackdrop:Hide()
|
|
199
|
-
|
|
200
|
-
linkPopup.urlBox = urlBox
|
|
201
|
-
linkPopup.backdrop = linkBackdrop
|
|
202
|
-
page.linkPopup = linkPopup
|
|
203
|
-
page.linkBackdrop = linkBackdrop
|
|
204
|
-
page.urlBox = urlBox
|
|
205
|
-
return linkPopup
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
githubButton:SetScript("OnClick", function()
|
|
209
|
-
local popup = EnsureLinkPopup()
|
|
210
|
-
popup:ClearAllPoints()
|
|
211
|
-
popup:SetPoint("BOTTOMLEFT", githubButton, "TOPLEFT", 0, 10)
|
|
212
|
-
linkBackdrop:Show()
|
|
213
|
-
popup:Show()
|
|
214
|
-
popup.urlBox:SetFocus()
|
|
215
|
-
popup.urlBox:HighlightText()
|
|
216
|
-
end)
|
|
217
|
-
page:SetScript("OnHide", HideLinkPopup)
|
|
218
|
-
|
|
219
|
-
page.githubButton = githubButton
|
|
220
|
-
page.githubIcon = githubIcon
|
|
221
|
-
page.metaItems = metaItems
|
|
222
|
-
return page
|
|
223
|
-
end
|
|
1
|
+
local ADDON_NAME, ns = ...
|
|
2
|
+
local L = ns.L
|
|
3
|
+
|
|
4
|
+
local REPOSITORY_URL = "https://github.com/Follen/Lychee-Dev"
|
|
5
|
+
|
|
6
|
+
local function CreateMetaItem(parent, labelText, valueText, x, y, width)
|
|
7
|
+
local label = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
8
|
+
label:SetPoint("TOPLEFT", x, y)
|
|
9
|
+
label:SetWidth(width)
|
|
10
|
+
label:SetJustifyH("LEFT")
|
|
11
|
+
label:SetWordWrap(false)
|
|
12
|
+
label:SetText(labelText)
|
|
13
|
+
label:SetTextColor(1, 1, 1, 0.34)
|
|
14
|
+
|
|
15
|
+
local value = parent:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
|
16
|
+
value:SetPoint("TOPLEFT", x, y - 22)
|
|
17
|
+
value:SetWidth(width)
|
|
18
|
+
value:SetJustifyH("LEFT")
|
|
19
|
+
value:SetWordWrap(false)
|
|
20
|
+
value:SetText(valueText)
|
|
21
|
+
value:SetTextColor(0.94, 0.95, 0.96, 0.94)
|
|
22
|
+
return { label = label, value = value }
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
local function CreateEnvironmentRow(parent, labelText, valueText, detailText, y, accent)
|
|
26
|
+
local label = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
27
|
+
label:SetPoint("TOPLEFT", 17, y)
|
|
28
|
+
label:SetWidth(160)
|
|
29
|
+
label:SetJustifyH("LEFT")
|
|
30
|
+
label:SetText(labelText)
|
|
31
|
+
label:SetTextColor(1, 1, 1, 0.36)
|
|
32
|
+
|
|
33
|
+
local value = parent:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
|
34
|
+
value:SetPoint("TOPLEFT", 190, y + 1)
|
|
35
|
+
value:SetPoint("RIGHT", -18, 0)
|
|
36
|
+
value:SetJustifyH("LEFT")
|
|
37
|
+
value:SetText(valueText)
|
|
38
|
+
value:SetTextColor(accent and 0.42 or 0.86, accent and 0.76 or 0.89, accent and 0.43 or 0.92, 0.94)
|
|
39
|
+
|
|
40
|
+
local detail = parent:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
41
|
+
detail:SetPoint("TOPLEFT", value, "BOTTOMLEFT", 0, -7)
|
|
42
|
+
detail:SetPoint("RIGHT", -18, 0)
|
|
43
|
+
detail:SetJustifyH("LEFT")
|
|
44
|
+
detail:SetText(detailText)
|
|
45
|
+
detail:SetTextColor(1, 1, 1, 0.34)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
function ns.CreateAboutPage(parent, ui)
|
|
49
|
+
local page = CreateFrame("Frame", nil, parent)
|
|
50
|
+
page:SetAllPoints(parent)
|
|
51
|
+
|
|
52
|
+
local description = page:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
|
|
53
|
+
description:SetPoint("TOPLEFT", 17, -101)
|
|
54
|
+
description:SetWidth(930)
|
|
55
|
+
description:SetJustifyH("LEFT")
|
|
56
|
+
description:SetText(L.ABOUT_DESCRIPTION)
|
|
57
|
+
description:SetTextColor(0.92, 0.94, 0.96, 0.92)
|
|
58
|
+
|
|
59
|
+
local version = "0.7.2"
|
|
60
|
+
version = ns.Client.GetAddOnMetadata(ADDON_NAME, "Version") or version
|
|
61
|
+
|
|
62
|
+
local accent = page:CreateTexture(nil, "ARTWORK")
|
|
63
|
+
accent:SetColorTexture(ui.accentR, ui.accentG, ui.accentB, 0.92)
|
|
64
|
+
accent:SetPoint("TOPLEFT", 17, -137)
|
|
65
|
+
accent:SetSize(32, 2)
|
|
66
|
+
|
|
67
|
+
local projectLabel = ui.CreateSectionLabel(page, L.ABOUT_PROJECT)
|
|
68
|
+
projectLabel:SetPoint("TOPLEFT", 17, -166)
|
|
69
|
+
|
|
70
|
+
local metadata = CreateFrame("Frame", nil, page)
|
|
71
|
+
metadata:SetPoint("TOPLEFT", 14, -188)
|
|
72
|
+
metadata:SetPoint("TOPRIGHT", -14, -188)
|
|
73
|
+
metadata:SetHeight(112)
|
|
74
|
+
local metadataBackground = metadata:CreateTexture(nil, "BACKGROUND")
|
|
75
|
+
metadataBackground:SetAllPoints()
|
|
76
|
+
metadataBackground:SetColorTexture(ui.surfaceR, ui.surfaceG, ui.surfaceB, 0.24)
|
|
77
|
+
|
|
78
|
+
local metaItems = {
|
|
79
|
+
version = CreateMetaItem(metadata, L.ABOUT_VERSION, version, 18, -12, 250),
|
|
80
|
+
author = CreateMetaItem(metadata, L.ABOUT_AUTHOR, "Follen", 330, -12, 250),
|
|
81
|
+
command = CreateMetaItem(metadata, L.ABOUT_COMMAND, "/dev", 642, -12, 250),
|
|
82
|
+
clients = CreateMetaItem(metadata, L.ABOUT_CLIENT, L.ABOUT_CLIENT_VALUE, 18, -64, 920),
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
for _, x in ipairs({ 312, 624 }) do
|
|
86
|
+
local separator = metadata:CreateTexture(nil, "ARTWORK")
|
|
87
|
+
separator:SetColorTexture(1, 1, 1, 0.06)
|
|
88
|
+
separator:SetPoint("TOPLEFT", x, -10)
|
|
89
|
+
separator:SetPoint("BOTTOMLEFT", x, 58)
|
|
90
|
+
separator:SetWidth(1)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
local metadataDivider = metadata:CreateTexture(nil, "ARTWORK")
|
|
94
|
+
metadataDivider:SetColorTexture(1, 1, 1, 0.06)
|
|
95
|
+
metadataDivider:SetPoint("TOPLEFT", 18, -55)
|
|
96
|
+
metadataDivider:SetPoint("TOPRIGHT", -18, -55)
|
|
97
|
+
metadataDivider:SetHeight(1)
|
|
98
|
+
|
|
99
|
+
local environmentLabel = ui.CreateSectionLabel(page, L.ABOUT_ENVIRONMENT)
|
|
100
|
+
environmentLabel:SetPoint("TOPLEFT", 17, -329)
|
|
101
|
+
|
|
102
|
+
CreateEnvironmentRow(page, L.ABOUT_DEPENDENCY, L.ABOUT_DEPENDENCY_STATUS,
|
|
103
|
+
L.ABOUT_DEPENDENCY_DETAIL, -358, true)
|
|
104
|
+
|
|
105
|
+
local rowDivider = page:CreateTexture(nil, "ARTWORK")
|
|
106
|
+
rowDivider:SetColorTexture(1, 1, 1, 0.06)
|
|
107
|
+
rowDivider:SetPoint("TOPLEFT", 190, -403)
|
|
108
|
+
rowDivider:SetPoint("TOPRIGHT", -18, -403)
|
|
109
|
+
rowDivider:SetHeight(1)
|
|
110
|
+
|
|
111
|
+
CreateEnvironmentRow(page, L.ABOUT_SAFETY, L.ABOUT_SAFETY_STATUS,
|
|
112
|
+
L.ABOUT_SAFETY_TEXT, -423, false)
|
|
113
|
+
|
|
114
|
+
local githubButton = CreateFrame("Button", nil, page)
|
|
115
|
+
githubButton:SetSize(38, 38)
|
|
116
|
+
githubButton:SetPoint("BOTTOMLEFT", 17, 17)
|
|
117
|
+
|
|
118
|
+
local githubIcon = githubButton:CreateTexture(nil, "ARTWORK")
|
|
119
|
+
githubIcon:SetAllPoints()
|
|
120
|
+
githubIcon:SetTexture("Interface\\AddOns\\" .. ADDON_NAME .. "\\Media\\GitHub.png")
|
|
121
|
+
githubIcon:SetAlpha(0.38)
|
|
122
|
+
|
|
123
|
+
githubButton:SetScript("OnEnter", function()
|
|
124
|
+
githubIcon:SetAlpha(0.72)
|
|
125
|
+
end)
|
|
126
|
+
githubButton:SetScript("OnLeave", function()
|
|
127
|
+
githubIcon:SetAlpha(0.38)
|
|
128
|
+
end)
|
|
129
|
+
|
|
130
|
+
local linkPopup
|
|
131
|
+
local linkBackdrop
|
|
132
|
+
|
|
133
|
+
local function HideLinkPopup()
|
|
134
|
+
if linkPopup then
|
|
135
|
+
linkPopup:Hide()
|
|
136
|
+
end
|
|
137
|
+
if linkBackdrop then
|
|
138
|
+
linkBackdrop:Hide()
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
local function EnsureLinkPopup()
|
|
143
|
+
if linkPopup then
|
|
144
|
+
return linkPopup
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
linkBackdrop = CreateFrame("Button", nil, UIParent)
|
|
148
|
+
linkBackdrop:SetAllPoints(UIParent)
|
|
149
|
+
linkBackdrop:SetFrameStrata("DIALOG")
|
|
150
|
+
linkBackdrop:SetFrameLevel(499)
|
|
151
|
+
linkBackdrop:RegisterForClicks("AnyUp")
|
|
152
|
+
linkBackdrop:SetScript("OnClick", HideLinkPopup)
|
|
153
|
+
local shade = linkBackdrop:CreateTexture(nil, "BACKGROUND")
|
|
154
|
+
shade:SetAllPoints()
|
|
155
|
+
shade:SetColorTexture(0, 0, 0, 0.24)
|
|
156
|
+
|
|
157
|
+
linkPopup = ui.CreatePanel(UIParent, ui.surfaceR, ui.surfaceG, ui.surfaceB, 0.98)
|
|
158
|
+
linkPopup:SetSize(420, 54)
|
|
159
|
+
linkPopup:SetFrameStrata("DIALOG")
|
|
160
|
+
linkPopup:SetFrameLevel(500)
|
|
161
|
+
linkPopup:EnableMouse(true)
|
|
162
|
+
|
|
163
|
+
local urlPanel = ui.CreatePanel(linkPopup, ui.editorR, ui.editorG, ui.editorB, 1)
|
|
164
|
+
urlPanel:SetPoint("TOPLEFT", 12, -10)
|
|
165
|
+
urlPanel:SetPoint("BOTTOMRIGHT", -12, 10)
|
|
166
|
+
|
|
167
|
+
local urlBox = CreateFrame("EditBox", nil, urlPanel)
|
|
168
|
+
urlBox:SetPoint("TOPLEFT", 10, -1)
|
|
169
|
+
urlBox:SetPoint("BOTTOMRIGHT", -10, 1)
|
|
170
|
+
urlBox:SetAutoFocus(false)
|
|
171
|
+
urlBox:SetFontObject(ChatFontNormal)
|
|
172
|
+
urlBox:SetJustifyH("CENTER")
|
|
173
|
+
urlBox:SetTextColor(0.94, 0.95, 0.96)
|
|
174
|
+
urlBox.savedText = REPOSITORY_URL
|
|
175
|
+
urlBox:SetText(REPOSITORY_URL)
|
|
176
|
+
urlBox:SetScript("OnEscapePressed", function(self)
|
|
177
|
+
self:ClearFocus()
|
|
178
|
+
HideLinkPopup()
|
|
179
|
+
end)
|
|
180
|
+
urlBox:SetScript("OnMouseUp", function(self)
|
|
181
|
+
self:SetFocus()
|
|
182
|
+
self:HighlightText()
|
|
183
|
+
end)
|
|
184
|
+
urlBox:SetScript("OnTextChanged", function(self)
|
|
185
|
+
if not self.updatingText and self:GetText() ~= self.savedText then
|
|
186
|
+
self.updatingText = true
|
|
187
|
+
self:SetText(self.savedText)
|
|
188
|
+
self.updatingText = nil
|
|
189
|
+
self:HighlightText()
|
|
190
|
+
end
|
|
191
|
+
end)
|
|
192
|
+
|
|
193
|
+
linkPopup:SetScript("OnMouseDown", function()
|
|
194
|
+
urlBox:SetFocus()
|
|
195
|
+
urlBox:HighlightText()
|
|
196
|
+
end)
|
|
197
|
+
linkPopup:Hide()
|
|
198
|
+
linkBackdrop:Hide()
|
|
199
|
+
|
|
200
|
+
linkPopup.urlBox = urlBox
|
|
201
|
+
linkPopup.backdrop = linkBackdrop
|
|
202
|
+
page.linkPopup = linkPopup
|
|
203
|
+
page.linkBackdrop = linkBackdrop
|
|
204
|
+
page.urlBox = urlBox
|
|
205
|
+
return linkPopup
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
githubButton:SetScript("OnClick", function()
|
|
209
|
+
local popup = EnsureLinkPopup()
|
|
210
|
+
popup:ClearAllPoints()
|
|
211
|
+
popup:SetPoint("BOTTOMLEFT", githubButton, "TOPLEFT", 0, 10)
|
|
212
|
+
linkBackdrop:Show()
|
|
213
|
+
popup:Show()
|
|
214
|
+
popup.urlBox:SetFocus()
|
|
215
|
+
popup.urlBox:HighlightText()
|
|
216
|
+
end)
|
|
217
|
+
page:SetScript("OnHide", HideLinkPopup)
|
|
218
|
+
|
|
219
|
+
page.githubButton = githubButton
|
|
220
|
+
page.githubIcon = githubIcon
|
|
221
|
+
page.metaItems = metaItems
|
|
222
|
+
return page
|
|
223
|
+
end
|