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:
@@ -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)
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<text name="spu_status_fetchManual" text="hent selv (for brede): %s"/>
|
||||
<text name="spu_status_starting" text="Starter traktorer: %d af %d …"/>
|
||||
<text name="spu_status_paused" text="Pause — tryk Start alle for at fortsætte"/>
|
||||
<text name="spu_flow_pickOther" text="Vælg et andet flow (tavlen med alle flows står i Oversigt)"/>
|
||||
<text name="spu_button_rename" text="Omdøb"/>
|
||||
<text name="spu_button_delete" text="Slet flow"/>
|
||||
<text name="spu_newRunName" text="Flow %d"/>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<text name="spu_status_fetchManual" text="fetch yourself (too wide): %s"/>
|
||||
<text name="spu_status_starting" text="Starting tractors: %d of %d …"/>
|
||||
<text name="spu_status_paused" text="Paused — press Start all to continue"/>
|
||||
<text name="spu_flow_pickOther" text="Pick another flow (the board with all flows is in Overview)"/>
|
||||
<text name="spu_button_rename" text="Rename"/>
|
||||
<text name="spu_button_delete" text="Delete flow"/>
|
||||
<text name="spu_newRunName" text="Flow %d"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.42.4.0</version>
|
||||
<version>1.42.5.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user