feat(gui): Flows-fanen viser det valgte flow øverst og en kort liste til at vælge et andet — tavlen står kun i Oversigt (v1.42.5.0)

This commit is contained in:
2026-09-27 17:02:31 +02:00
parent df514fb6ec
commit f3db8e4e5c
4 changed files with 25 additions and 3 deletions
@@ -157,11 +157,31 @@ end
-- ---- fanen: tavle + resumé ----
-- Flows: det valgte flow øverst (indstillinger som "ret"-linjer + status), derunder en kort liste til at vælge
-- et andet flow. Tavlen med alle flows står i Oversigt (in-game 27/9: de to faner så ens ud).
function SmartPickupFrame:fillFlowTabRows(adEnv)
if self:hasGuideOn(SmartPickupFrame.TAB_FLOWS) and self:fillGuideRows(adEnv) then return end
self:fillOverviewRows(adEnv)
self.overviewRows = {}
local run = self:getRun()
if run ~= nil then self:fillFlowSummary(adEnv, run) end
if run == nil then
self:addTextRow(self.i18n:getText("spu_noRuns"))
return
end
self:fillFlowSummary(adEnv, run)
self:addTextRow(self.i18n:getText("spu_flow_pickOther"))
for _, group in ipairs(ADFlowView.boardGroups(ADRunsController.store.runs)) do
for _, other in ipairs(group.runs) do
if other.id ~= run.id then
local cells = self:flowCells(adEnv, other)
local otherId = other.id
self:addLinkRow(string.format(" %s — %s", tostring(other.name), tostring(cells[6] or "")), function(frame)
frame.selectedRunId = otherId
frame.statusOverride = nil
frame:requestRebuild()
end)
end
end
end
end
function SmartPickupFrame:fillFlowSummary(adEnv, run)