handleCurrRecoveryOption
Definition
-- @/lua/ge/extensions/core/recoveryPrompt.lua:672
local function handleCurrRecoveryOption()
if not currentRecoveryOptionId then return end
local option = buttonOptions[currentRecoveryOptionId]
extensions.hook("onRecoveryPromptButtonPressed", currentRecoveryOptionId)
if option then
option.atFadeFunction(currentRecoveryOptionTarget)
if option.count then
option.count = option.count + 1
end
if option.message then
ui_message(option.message, 5, "recoveryPromptMessage")
end
else
log("E","","Couldnt use recovery option. none was found for ID " .. currentRecoveryOptionId)
end
if option.fadeActive then
ui_fadeScreen.stop(fadeDuration)
end
currentRecoveryOptionId = nil
currentRecoveryOptionTarget = nil
if not option.keepMenuOpen then
onPopupClosed()
end
gameplay_markerInteraction.setForceReevaluateOpenPrompt()
--extensions.hook("onCareerCustomTowHook")
end
Callers
@/lua/ge/extensions/core/recoveryPrompt.lua
else
M.handleCurrRecoveryOption()
end
-- only proceed if we actually have a recovery request.
handleCurrRecoveryOption()
end