Skip to content

Enhancements to Custom Options > OptionGroup #5887

Description

@kfinch

The 'Custom Options' tab exists to make it easier for the user to tweak options/values in custom code heavy auras. If a list of data entries is desired, WeakAuras offers the 'OptionsGroup' type in 'Array' mode. OptionsGroup arrays are difficult to work with in several ways such that I find myself preferring to use a lua table declared in Custom Init block instead.

  • 'Default' list entries are brittle. While the aura can be shipped with existing OptionsGroup table entries, if the user presses "reset to default", the entire list will be deleted without even a warning dialogue, and without any way to recover the list. The fast solution would be to add a warning dialogue that clearly states this will empty the list. Even better would be to allow the author to specify a default list of entries while in author mode, and the reset to default button would reset to that list.
  • The little 'add/delete/reset' buttons next to the entry dropdown is dangerous, as the reset button effectively is equivalent to deleting, but does not give a warning and is easy to hit by accident. It should have a warning.
  • There is no way to view a list of all entries at once, user can only look through them one at a time using the dropdown. This makes inspecting and/or editing entries more laborious than it needs to be. Would be nice if a list view was added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions