hello,
I am currently trying to find a way, to dynamically change some aspects of the zos dialog popups.
Specifically, I have a Dialog with a Textbox, and a List of already existing strings. What I would like to achieve is to check the current input of the textbox against the string table, and if it already exists disable the confirm button.
Here is how i currently define the Dialog, and then I just call it with `ZO_Dialogs_ShowDialog(*uniqueId*)`
Lua Code:
ESO_Dialogs[uniqueId] = {
canQueue = true,
uniqueIdentifier = uniqueId,
title = {text = "Title"},
mainText = {text = "Content"},
editBox = {},
buttons = {
[1] = {
text = SI_DIALOG_CONFIRM,
callback = function(dialog)
local input = ZO_Dialogs_GetEditBoxText(dialog)
d(input)
end,
},
[2] = {
text = SI_DIALOG_CANCEL,
callback = function()
d("cancel")
end,
},
},
}
Does anybody already has experience with that sort of thing or knows of an existing addon that already does it?