Thread Tools Display Modes
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
11/15/23, 10:09 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Your second attempt is almost correct, but the game uses ZO_Dialogs_ShowPlatformDialog instead of ZO_Dialogs_ShowDialog for these two.

Lua Code:
  1. ZO_PreHook(
  2.     "ZO_Dialogs_ShowPlatformDialog",
  3.     function(dialogName, data)
  4.         if dialogName == "RECALL_CONFIRM" or dialogName == "FAST_TRAVEL_CONFIRM" then
  5.             FastTravelToNode(data.nodeIndex)
  6.             return true
  7.         end
  8.     end
  9. )

Last edited by sirinsidiator : 11/15/23 at 10:12 AM.
  Reply With Quote
11/15/23, 03:34 PM   #3
snowfl
Join Date: Nov 2023
Posts: 2
Nice, thanks so much for the help
  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