feat: maskiner uden parkering — spilleren kører dem til og fra marken, pop-up eller statusvindue (1.62.201)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user