fix(gui): advarsel øverst i Fields når markflåden står på 'kun med flueben' uden flueben (intet kan sendes ud) (v1.32.3.0)
This commit is contained in:
@@ -129,6 +129,10 @@ function SmartPickupFrame:fillFieldRows(adEnv)
|
|||||||
self:addTextRow(i18n:getText("spu_field_scanning"))
|
self:addTextRow(i18n:getText("spu_field_scanning"))
|
||||||
else
|
else
|
||||||
self:addTextRow(i18n:getText("spu_field_hint"))
|
self:addTextRow(i18n:getText("spu_field_hint"))
|
||||||
|
-- markflåden på "kun med flueben" uden flueben: intet kan sendes ud (in-game 26/9 — alle marker "no machine")
|
||||||
|
if ADFieldJobs.state.fleetMode == "ticked" and next(ADFieldJobs.state.fleet or {}) == nil then
|
||||||
|
self:addTextRow(i18n:getText("spu_field_fleetEmpty"))
|
||||||
|
end
|
||||||
self:addCellRow(self.fieldPrefab, {i18n:getText("spu_col_field"), i18n:getText("spu_col_crop"), i18n:getText("spu_col_plan"), i18n:getText("spu_col_mode"), i18n:getText("spu_col_status"), i18n:getText("spu_col_tractors")})
|
self:addCellRow(self.fieldPrefab, {i18n:getText("spu_col_field"), i18n:getText("spu_col_crop"), i18n:getText("spu_col_plan"), i18n:getText("spu_col_mode"), i18n:getText("spu_col_status"), i18n:getText("spu_col_tractors")})
|
||||||
for _, row in ipairs(ADFieldView.rows(infos, ADFieldJobs.state.fields)) do
|
for _, row in ipairs(ADFieldView.rows(infos, ADFieldJobs.state.fields)) do
|
||||||
local cells = self:addCellRow(self.fieldPrefab, self:fieldCells(row))
|
local cells = self:addCellRow(self.fieldPrefab, self:fieldCells(row))
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
<text name="spu_field_notMowable" text="ikke græs/kløver"/>
|
<text name="spu_field_notMowable" text="ikke græs/kløver"/>
|
||||||
<text name="spu_field_scanning" text="Marker indlæses ... (én mark pr. sekund)"/>
|
<text name="spu_field_scanning" text="Marker indlæses ... (én mark pr. sekund)"/>
|
||||||
<text name="spu_field_hint" text="Klik på en mark for at se og rette dens opsætning."/>
|
<text name="spu_field_hint" text="Klik på en mark for at se og rette dens opsætning."/>
|
||||||
|
<text name="spu_field_fleetEmpty" text="! Markflåden står på "kun med flueben", men ingen maskiner har flueben — intet kan sendes ud. Åbn Markflåde og vælg "Brug alle ledige maskiner"."/>
|
||||||
<text name="spu_field_showAll" text="Vis alle marker (%d skjult)"/>
|
<text name="spu_field_showAll" text="Vis alle marker (%d skjult)"/>
|
||||||
<text name="spu_col_field" text="Mark"/>
|
<text name="spu_col_field" text="Mark"/>
|
||||||
<text name="spu_col_crop" text="Afgrøde"/>
|
<text name="spu_col_crop" text="Afgrøde"/>
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
<text name="spu_field_notMowable" text="not grass/clover"/>
|
<text name="spu_field_notMowable" text="not grass/clover"/>
|
||||||
<text name="spu_field_scanning" text="Loading fields ... (one field per second)"/>
|
<text name="spu_field_scanning" text="Loading fields ... (one field per second)"/>
|
||||||
<text name="spu_field_hint" text="Click a field to see and change its setup."/>
|
<text name="spu_field_hint" text="Click a field to see and change its setup."/>
|
||||||
|
<text name="spu_field_fleetEmpty" text="! The field fleet is set to "only ticked", but no machine is ticked — nothing can be sent out. Open Field fleet and choose "Use all free machines"."/>
|
||||||
<text name="spu_field_showAll" text="Show all fields (%d hidden)"/>
|
<text name="spu_field_showAll" text="Show all fields (%d hidden)"/>
|
||||||
<text name="spu_col_field" text="Field"/>
|
<text name="spu_col_field" text="Field"/>
|
||||||
<text name="spu_col_crop" text="Crop"/>
|
<text name="spu_col_crop" text="Crop"/>
|
||||||
|
|||||||
@@ -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.32.2.0</version>
|
<version>1.32.3.0</version>
|
||||||
<title>
|
<title>
|
||||||
<en>AD Smart Pickup</en>
|
<en>AD Smart Pickup</en>
|
||||||
</title>
|
</title>
|
||||||
|
|||||||
Reference in New Issue
Block a user