View Single Post
01-05-19, 11:31 AM   #3
FranekW
A Cyclonian
 
FranekW's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 44
Originally Posted by jlam View Post
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:
  1. -- dialog box
  2. local dialogBox = {
  3.     type = "group",
  4.     name = "Configure mode",
  5.     args = {
  6.         desc = {
  7.             type = "description",
  8.             order = 1,
  9.             name = "You are in the configure mode.",
  10.         },
  11.         exitmode = {
  12.             name = "Exit",
  13.             desc = "Press button to exit configure mode.",
  14.             order = 10,
  15.             type = "execute",
  16.             func = "resetAlphas",
  17.         },
  18.     },
  19. }

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.

Last edited by FranekW : 01-05-19 at 08:45 PM.
  Reply With Quote