Originally Posted by jlam
As an alternative that many addons use that have a "configuration mode", you can create a dialog button on the screen while in configuration mode that cancels the mode.
|
I see. Thanks for a good suggestion.
EDIT.
I tried to make a dialog box but I stuck again -,- As I use Ace3 I would like to avoid native LUA functions. I tried to follow suggestions on Ace3 website and create option table. The table would then be used to register a new dialog box but it's not clear how to do that.
I have a table like this:
Lua Code:
-- dialog box
local dialogBox = {
type = "group",
name = "Configure mode",
args = {
desc = {
type = "description",
order = 1,
name = "You are in the configure mode.",
},
exitmode = {
name = "Exit",
desc = "Press button to exit configure mode.",
order = 10,
type = "execute",
func = "resetAlphas",
},
},
}
I can't find how to register this dialog, how to open it and how to respond when it is closed. Hope someone can help. Thanks.