Загрузить файлы в «/»

This commit is contained in:
Ade
2026-10-14 11:48:45 +00:00
parent 941fc1979b
commit bd480d6789
3 changed files with 92 additions and 15 deletions
+33 -5
View File
@@ -172,7 +172,12 @@ local function ShowProfs(c)
if AA.NORECIPES[name] then
r.sub:SetText("")
elseif pr.rec and table.getn(pr.rec) > 0 then
r.sub:SetText(table.getn(pr.rec) .. " recipes known")
local kn, ms = AA.RecipeCounts(c, name)
if ms then
r.sub:SetText(kn .. " known, |cffff8040" .. ms .. " missing|r")
else
r.sub:SetText(kn .. " recipes known")
end
else
r.sub:SetText("recipes not scanned yet")
end
@@ -183,15 +188,38 @@ local function ShowProfs(c)
end
end
local pr = AA.profSel and c.prof and c.prof[AA.profSel]
AA.recList = (pr and pr.rec) or {}
if AA.profSel then AA.PR.title:SetText("Known recipes: " .. AA.profSel) else AA.PR.title:SetText("Known recipes") end
local mode = (AA.db.recMode == "missing") and "missing" or "known"
local sort = (AA.db.recSort == "name") and "name" or "level"
AA.recRank = (pr and pr.r) or 0
AA.recList = {}
for _, bt in ipairs(AA.PR.btns) do
local cur = (bt.field == "recMode" and mode) or sort
if bt.value == cur then bt:Disable() else bt:Enable() end
end
if AA.profSel then
AA.PR.title:SetText((mode == "missing" and "Missing recipes: " or "Known recipes: ") .. AA.profSel)
else
AA.PR.title:SetText("Recipes")
end
if AA.profSel and AA.NORECIPES[AA.profSel] then
AA.PR.note:SetText("")
AA.PR.empty:SetText("|cff808080" .. AA.profSel .. " has no recipes to track.|r")
AA.PR.empty:Show()
elseif pr and pr.rts and pr.rts > 0 then
AA.PR.note:SetText(table.getn(AA.recList) .. " known, updated " .. AA.Ago(pr.rts))
AA.PR.empty:Hide()
AA.recList = AA.RecipeList(c, AA.profSel, mode, sort)
if mode == "missing" and not AA.RDATA[AA.profSel] then
AA.PR.note:SetText("")
AA.PR.empty:SetText("|cff808080No recipe database for " .. AA.profSel .. ".|r")
AA.PR.empty:Show()
else
AA.PR.note:SetText(table.getn(AA.recList) .. (mode == "missing" and " missing" or " known") .. ", updated " .. AA.Ago(pr.rts))
if table.getn(AA.recList) == 0 then
AA.PR.empty:SetText(mode == "missing" and "|cff40ff40Nothing missing!|r" or "")
AA.PR.empty:Show()
else
AA.PR.empty:Hide()
end
end
else
AA.PR.note:SetText("")
if AA.profSel then