From 6486d77cb49cac5af09ac98e17ea74e84c8ce015 Mon Sep 17 00:00:00 2001 From: masterdraco Date: Tue, 29 Sep 2026 18:24:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(m=C3=A5ned):=20egen=20r=C3=A6kke-skabelon?= =?UTF-8?q?=20med=20bredere=20Vindue-kolonne=20=E2=80=94=20'OBS:=20sidste?= =?UTF-8?q?=20s=C3=A5m=C3=A5ned'=20klippes=20ikke=20(v1.59.11.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FS25_ADSmartPickup/gui/SmartPickupFrame.lua | 2 +- FS25_ADSmartPickup/gui/SmartPickupFrame.xml | 9 +++++++++ FS25_ADSmartPickup/gui/SmartPickupMonthTab.lua | 4 ++-- FS25_ADSmartPickup/modDesc.xml | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/FS25_ADSmartPickup/gui/SmartPickupFrame.lua b/FS25_ADSmartPickup/gui/SmartPickupFrame.lua index 19d4a00..bb13f03 100644 --- a/FS25_ADSmartPickup/gui/SmartPickupFrame.lua +++ b/FS25_ADSmartPickup/gui/SmartPickupFrame.lua @@ -86,7 +86,7 @@ end -- Prefabs skal ud af layoutet før de klones, ellers vises de selv som rækker. function SmartPickupFrame:initialize() - for _, name in ipairs({"ingredientPrefab", "vehiclePrefab", "textPrefab", "productPrefab", "statPrefab", "gridPrefab", "flowPrefab", "flowListPrefab", "fieldPrefab", "fieldListPrefab", "kpiPrefab", "alertPrefab", "itemPrefab", "subPrefab"}) do + for _, name in ipairs({"ingredientPrefab", "vehiclePrefab", "textPrefab", "productPrefab", "statPrefab", "gridPrefab", "flowPrefab", "flowListPrefab", "fieldPrefab", "fieldListPrefab", "monthPrefab", "kpiPrefab", "alertPrefab", "itemPrefab", "subPrefab"}) do local prefab = self[name] if prefab ~= nil then prefab:unlinkElement() diff --git a/FS25_ADSmartPickup/gui/SmartPickupFrame.xml b/FS25_ADSmartPickup/gui/SmartPickupFrame.xml index 3db1ee6..f3e8e42 100644 --- a/FS25_ADSmartPickup/gui/SmartPickupFrame.xml +++ b/FS25_ADSmartPickup/gui/SmartPickupFrame.xml @@ -107,6 +107,15 @@ + + + + + + + + + diff --git a/FS25_ADSmartPickup/gui/SmartPickupMonthTab.lua b/FS25_ADSmartPickup/gui/SmartPickupMonthTab.lua index b5c8384..9227de8 100644 --- a/FS25_ADSmartPickup/gui/SmartPickupMonthTab.lua +++ b/FS25_ADSmartPickup/gui/SmartPickupMonthTab.lua @@ -91,10 +91,10 @@ function SmartPickupFrame:fillMonthRows(adEnv) if #view.rows == 0 then self:addTextRow(i18n:getText("spu_month_noWork")) else - self:addCellRow(self.fieldPrefab, {i18n:getText("spu_col_field"), i18n:getText("spu_month_col_work"), i18n:getText("spu_col_crop"), + self:addCellRow(self.monthPrefab, {i18n:getText("spu_col_field"), i18n:getText("spu_month_col_work"), i18n:getText("spu_col_crop"), i18n:getText("spu_month_col_progress"), i18n:getText("spu_month_col_next"), i18n:getText("spu_month_col_window")}) for _, row in ipairs(view.rows) do - self:addCellRow(self.fieldPrefab, self:monthCells(row)) + self:addCellRow(self.monthPrefab, self:monthCells(row)) end end if #view.upcoming > 0 then diff --git a/FS25_ADSmartPickup/modDesc.xml b/FS25_ADSmartPickup/modDesc.xml index b64e4b1..29394cd 100644 --- a/FS25_ADSmartPickup/modDesc.xml +++ b/FS25_ADSmartPickup/modDesc.xml @@ -1,7 +1,7 @@ masterdraco - 1.59.10.0 + 1.59.11.0 <en>AD Smart Pickup</en>