Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » AddOns » AddOn Search/Requests » Request: lightweight addon to Hide fast travel confirm dialog


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off