feat: maskiner uden parkering — spilleren kører dem til og fra marken, pop-up eller statusvindue (1.62.201)

This commit is contained in:
2026-10-10 17:56:11 +02:00
parent 7a3d6184bc
commit 78651d8b2f
13 changed files with 457 additions and 20 deletions
@@ -8,8 +8,10 @@ SmartPickupFrame.SETTINGS_ROW_KINDS = {setGlobal = true, setBuilding = true}
local function choiceTexts(spec, i18n, withGlobal)
local texts = {}
if withGlobal then table.insert(texts, i18n:getText("spu_set_asGlobal")) end
for _, value in ipairs(spec.choices or {}) do
table.insert(texts, string.format(spec.format or "%s", tostring(value)))
for index, value in ipairs(spec.choices or {}) do
-- valg med navne (fx pop-up/statusvindue) i stedet for et tal
local labelKey = spec.labels ~= nil and spec.labels[index] or nil
table.insert(texts, labelKey ~= nil and i18n:getText(labelKey) or string.format(spec.format or "%s", tostring(value)))
end
return texts
end