fix(gui): 'Kører selv på vejen' Ja/Nej i stedet for 'Manuel transport' — Ja betyder nu må sendes ud, som resten af flåden (v1.38.1.0)

This commit is contained in:
2026-09-27 14:17:17 +02:00
parent 6afcae6fe1
commit 3a1d49ccef
4 changed files with 8 additions and 6 deletions
@@ -239,9 +239,10 @@ function SmartPickupFrame:fillFleetRows(adEnv)
row:getDescendantByName("title"):setText(title) row:getDescendantByName("title"):setText(title)
row:getDescendantByName("option"):setState(rig.enabled and SmartPickupFrame.STATE_ON or SmartPickupFrame.STATE_OFF, false) row:getDescendantByName("option"):setState(rig.enabled and SmartPickupFrame.STATE_ON or SmartPickupFrame.STATE_OFF, false)
if rig.role == "harvester" then if rig.role == "harvester" then
-- for bred til vejene med skærebord: spilleren kører den til marken, moden overtager derfra -- Ja = må køre selv på vejen (som resten af flåden: ja = må sendes ud); Nej = manuel transport —
-- for bred med skærebord, spilleren kører den til marken (in-game 27/9: omvendt betydning forvirrede)
local option = self:addToggleRow("fleetManual", string.format(i18n:getText("spu_field_manualTransport"), tostring(rig.label)), local option = self:addToggleRow("fleetManual", string.format(i18n:getText("spu_field_manualTransport"), tostring(rig.label)),
{i18n:getText("ui_no"), i18n:getText("ui_yes")}, rig.manual) {i18n:getText("ui_no"), i18n:getText("ui_yes")}, not rig.manual)
self.rowData[option] = {kind = "fleetManual", vehicleId = rig.id} self.rowData[option] = {kind = "fleetManual", vehicleId = rig.id}
end end
end end
@@ -288,7 +289,8 @@ function SmartPickupFrame:onClickFieldRow(state, data)
elseif data.kind == "fleetMode" then elseif data.kind == "fleetMode" then
ADFieldJobs.setFleetMode(isOn and "all" or "ticked") ADFieldJobs.setFleetMode(isOn and "all" or "ticked")
elseif data.kind == "fleetManual" then elseif data.kind == "fleetManual" then
if ((ADFieldJobs.state.manual or {})[data.vehicleId] == true) ~= isOn then ADFieldJobs.toggleManual(data.vehicleId) end local wantManual = not isOn -- Ja = kører selv på vejen
if ((ADFieldJobs.state.manual or {})[data.vehicleId] == true) ~= wantManual then ADFieldJobs.toggleManual(data.vehicleId) end
end end
frame:requestRebuild() frame:requestRebuild()
end) end)
+1 -1
View File
@@ -59,7 +59,7 @@
<text name="spu_month_upcomingOpen" text="F%d: %s — kan også sås næste måned"/> <text name="spu_month_upcomingOpen" text="F%d: %s — kan også sås næste måned"/>
<text name="spu_month_upcomingLast" text="F%d: %s — OBS: sidste såmåned"/> <text name="spu_month_upcomingLast" text="F%d: %s — OBS: sidste såmåned"/>
<text name="spu_field_button_start" text="Start nu"/> <text name="spu_field_button_start" text="Start nu"/>
<text name="spu_field_manualTransport" text=" Manuel transport af %s (for bred til vejene)"/> <text name="spu_field_manualTransport" text=" %s kører selv på vejen (Nej = for bred, du kører den til marken)"/>
<text name="spu_field_button_takeover" text="Start nu"/> <text name="spu_field_button_takeover" text="Start nu"/>
<text name="spu_field_takeoverRequested" text="F%d: overtager høsteren nu, hvis skærebordet passer"/> <text name="spu_field_takeoverRequested" text="F%d: overtager høsteren nu, hvis skærebordet passer"/>
<text name="spu_field_button_stop" text="Stop mark"/> <text name="spu_field_button_stop" text="Stop mark"/>
+1 -1
View File
@@ -59,7 +59,7 @@
<text name="spu_month_upcomingOpen" text="F%d: %s — can also be sown next month"/> <text name="spu_month_upcomingOpen" text="F%d: %s — can also be sown next month"/>
<text name="spu_month_upcomingLast" text="F%d: %s — NOTE: last sowing month"/> <text name="spu_month_upcomingLast" text="F%d: %s — NOTE: last sowing month"/>
<text name="spu_field_button_start" text="Start now"/> <text name="spu_field_button_start" text="Start now"/>
<text name="spu_field_manualTransport" text=" Manual transport of %s (too wide for roads)"/> <text name="spu_field_manualTransport" text=" %s drives itself on the road (No = too wide, you drive it to the field)"/>
<text name="spu_field_button_takeover" text="Start now"/> <text name="spu_field_button_takeover" text="Start now"/>
<text name="spu_field_takeoverRequested" text="F%d: taking over the harvester now if the header fits"/> <text name="spu_field_takeoverRequested" text="F%d: taking over the harvester now if the header fits"/>
<text name="spu_field_button_stop" text="Stop field"/> <text name="spu_field_button_stop" text="Stop field"/>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107"> <modDesc descVersion="107">
<author>masterdraco</author> <author>masterdraco</author>
<version>1.38.0.0</version> <version>1.38.1.0</version>
<title> <title>
<en>AD Smart Pickup</en> <en>AD Smart Pickup</en>
</title> </title>