There are lots of addons have this function but all of them are bloaty and alters too many in game functions. Looking for a simple addon to hide fast travel confirm dialog.
Thanks
Tired this and it didn't work
Code:
function TravelAutoConfirm()
ESO_Dialogs["RECALL_CONFIRM"]={
gamepadInfo={dialogType=GAMEPAD_DIALOGS.BASIC},
title={text=SI_PROMPT_TITLE_FAST_TRAVEL_CONFIRM},
mainText={text=SI_FAST_TRAVEL_DIALOG_MAIN_TEXT},
updateFn=function(dialog)
FastTravelToNode(dialog.data.nodeIndex)
SCENE_MANAGER:ShowBaseScene()
ZO_Dialogs_ReleaseDialog("RECALL_CONFIRM")
end
}
ESO_Dialogs["FAST_TRAVEL_CONFIRM"]={
gamepadInfo={dialogType=GAMEPAD_DIALOGS.BASIC},
title={text=SI_PROMPT_TITLE_FAST_TRAVEL_CONFIRM},
mainText={text=SI_FAST_TRAVEL_DIALOG_MAIN_TEXT},
updateFn=function(dialog)
FastTravelToNode(dialog.data.nodeIndex)
ZO_Dialogs_ReleaseDialog("FAST_TRAVEL_CONFIRM")
end
}
end
2nd code
Code:
ZO_PreHook(
"ZO_Dialogs_ShowDialog",
function(dialogName)
if dialogName == "RECALL_CONFIRM" then
RECALL()
return true
elseif dialogName == "FAST_TRAVEL_CONFIRM" then
FASTTRAVEL()
return true
end
end
)