feat(status): statusvindue på skærmen slås til med en tast
This commit is contained in:
@@ -1335,6 +1335,16 @@ function ADSmartPickup:update(dt)
|
||||
Logging.warning(ADSmartPickup.LOG_PREFIX .. "kunne ikke gendanne varevalg: %s", tostring(err))
|
||||
supplyState = setmetatable({}, {__mode = "k"})
|
||||
end
|
||||
if ADStatusHud ~= nil then pcall(ADStatusHud.update, dt, getAutoDriveEnv()) end
|
||||
end
|
||||
|
||||
-- Statusvinduet på skærmen (adStatusHud.lua): tegner kun den cachede tekst.
|
||||
function ADSmartPickup:draw()
|
||||
if ADStatusHud ~= nil then pcall(ADStatusHud.draw) end
|
||||
end
|
||||
|
||||
function ADSmartPickup:deleteMap()
|
||||
if ADStatusHud ~= nil then pcall(ADStatusHud.delete) end
|
||||
end
|
||||
|
||||
addModEventListener(ADSmartPickup)
|
||||
|
||||
Reference in New Issue
Block a user