• 0

    posted a message on AceConfig - dynamically updating the options table menu
    Woot, after a little bit of experimentation I've managed to get it working.

    Thanks for your help :)
    Posted in: Ace3
  • 0

    posted a message on AceConfig - dynamically updating the options table menu
    Hang on, I'm a little lost in the code/your answer.

    Are you saying that provided the option table inject is done within a set/get function in the original function, then it should automatically update by default? Does this work with the table after its been AddToBlizzOptions()?
    Posted in: Ace3
  • 0

    posted a message on AceConfig - dynamically updating the options table menu
    I'm trying to implement a dynamic options menu, that adds/removes options based on user input. I'm not talking about the hidden attribute, but actually inserting new option tables into the main table and then updating the whole thing so the users can see the new configuration.

    Basically what I am trying to do is something like this:

    Options table.
    - User creates a new variable A (code injects new config options into the main configuration options table)
    - User creates a new variable B (code injects)
    Variable A and B appears in the option config tables with their own config options.
    - User changes configuration options for variable B
    - User deletes variable A
    Variable A's option list disappears from the config options menu

    All of the above works fine in my code, the problem is the user has to do a reloadUI in order to update the actual changes to the options menu.

    I've tried using AceConfigRegistry:NotifyChange(appName), with no luck.

    Is there anyway for instant dynamic updating the actual options table menu that doesn't rely on a reloadUI? I could probably bypass the issue by using various select box options, but I would rather not if possible.
    Posted in: Ace3
  • To post a comment, please or register a new account.