-- @/lua/ge/extensions/gameplay/missions/missionScreen.lua:1138
M.onMissionStartScreenReady = function(uiLayout)
-- Store the last 20 UI layouts in memory
table.insert(M.uiLayoutHistory, uiLayout)
uiLayout.recordedAt = os.time()
uiLayout.recordedAtFormatted = os.date("%Y-%m-%d %H:%M:%S")
-- Keep only the last 20 layouts
if #M.uiLayoutHistory > 20 then
table.remove(M.uiLayoutHistory, 1)
end
end