View Single Post
11/15/23, 08:12 AM   #1
snowfl
Join Date: Nov 2023
Posts: 2
Request: lightweight addon to Hide fast travel confirm dialog

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
)

Last edited by snowfl : 11/15/23 at 08:26 AM. Reason: added 2nd one
  Reply With Quote