fix(flåde): korte maskinnavne i puljelisten (v1.61.10.0)

This commit is contained in:
2026-09-30 18:16:19 +02:00
parent 18b6c82871
commit c92c870297
4 changed files with 15 additions and 5 deletions
+9
View File
@@ -74,6 +74,15 @@ function ADFlowView.boardGroups(runs)
return groups
end
-- Kort maskinnavn til lister: " Unrealistic" og parenteser som "(+ Custom Crops)" fjernes (lange navne blev ombrudt
-- med traktorens nummer alene på næste linje, in-game 30/9). Bliver intet tilbage, bruges det fulde navn.
function ADFlowView.shortVehicleName(name)
local full = tostring(name or "")
local short = full:gsub("%s*%b()", ""):gsub("%s+[Uu]nrealistic", ""):gsub("^%s+", ""):gsub("%s+$", "")
if short == "" then return full end
return short
end
-- Kædeflows uden traktor foldes sammen i listen (de venter på en ledig traktor/vogn). -> active, idle
function ADFlowView.splitIdle(runs)
local active, idle = {}, {}