CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on AceConfig3 question
    great, thanks again for the help. That explains a lot.
    Posted in: Lua Code Discussion
  • 0

    posted a message on AceConfig3 question
    Ok, that makes sense. Similar to class methods in OOP. How would you manually pop the select if you had to manipulate info before displaying and did not want to create a tmp table or the like. Would you use an array? I am new to LUA and I have not checked to see if there is a key-value array syntax.

    Thanks for the info. I will now have to rethink my table layout to support this.

    LD
    Posted in: Lua Code Discussion
  • 0

    posted a message on AceConfig3 question
    I am trying to understand how the select works in this library so I can populate a dropdown and call a method when the user changes the value in the dropdown. With that being said, can anyone answer these questions:

    values- If I put in a location in my table such as "...position.args" is the select box populate with all the values subordinate to args and it will return the key of the selected value when the user changes what is selected?

    ...position
    args
    1 value1
    2 value2
    3 value3

    Using the above, the dropdown would have value1, value2, value3 in the list, and when one is selected, it would return a 1, 2, or 3.

    Am I correct in this understanding? If so, what happens if there are no args? Will the dropdown remain blank and no errors generated, or does there have to be at least 1 arg even if it is a dummy one?

    get- What are we "getting"? If we use a location of a table to populate the dropdown, I would assume that that was the "get"

    set- Is this a function that is called whenever the selections changes?

    I think if someone can explain this well, I would better understand the methodology behind the ACE libraries.

    Thanks,
    LD

    Posted in: Lua Code Discussion
  • 0

    posted a message on Question on Options
    Great, thanks for the info...
    Posted in: Ace3
  • 0

    posted a message on Question on Options
    I am new to addon development and the ACE framework. I have been looking at the example information and various ACE3 addons and I have a question about registering the options table.

    I have seen these two different statements in different addons/examples.

    LibStub("AceConfig-3.0"):RegisterOptionsTable("SomeName", options)
    LibStub("AceConfigRegistry-3.0"):RegisterOptionsTable("SomeName", options)

    Are both of these correct, and if so when should one be used over the other?

    Thanks,
    LD
    Posted in: Ace3
  • To post a comment, please or register a new account.