local confirmDialog = { title = { text = "MyTitle" }, mainText = { text = "MyText" }, buttons = { { text = SI_DIALOG_ACCEPT, callback = functionToCall}, { text = SI_DIALOG_CANCEL } } } ZO_Dialogs_RegisterCustomDialog("MYADDON_MYDIALOG", confirmDialog )
ZO_Dialogs_ShowDialog("MYADDON_MYDIALOG")
the best way to do it in teso is to do a dialog.
Define it :local confirmDialog = { title = { text = "MyTitle" }, mainText = { text = "MyText" }, buttons = { { text = SI_DIALOG_ACCEPT, callback = functionToCall}, { text = SI_DIALOG_CANCEL } } } ZO_Dialogs_RegisterCustomDialog("MYADDON_MYDIALOG", confirmDialog )
Call itZO_Dialogs_ShowDialog("MYADDON_MYDIALOG")