• 0

    posted a message on AceConfig help
    I noticed this approach generates a lot of garbage if the user clicks the ranks several times. Putting in a collectgarbage() in the creation of the ranks options solves the problem, but slows the game significantly.

    Any suggestions where I might but it?
    Posted in: AddOn HELP!
  • 0

    posted a message on AceConfig help
    I'm doing that to have selectable ranks to the left (the group, with the rankname as name). Once selected, the multiselect containing the players of that rank shows on the right. The reason for that also having rank as name is to show the rank name as a header.

    I know i missed the get/set functions, I just hadn't made them at that time :)

    I went with your solution Phanx, as the overall structure is neater, and it works as intended - thanks alot!
    Posted in: AddOn HELP!
  • 0

    posted a message on AceConfig help
    Well, it makes sense :D
    I'll try it tomorrow when I got time - thanks alot!
    Posted in: AddOn HELP!
  • 0

    posted a message on AceConfig help
    Thanks for the reply.

    I thought the function would be called, but thanks for pointing it out :)

    I'm unsure of what to return, do you mean like returning a table to args containing the tables to sit in there or?
    Posted in: AddOn HELP!
  • 0

    posted a message on AceConfig help
    Hi there,

    I'm trying to create an AceConfig optionstable which lists guild members on the right, with their select-able ranks on the left, but am having trouble figuring out how to do!

    My code so far:

    [PHP]guildMembersGroup = {
    type = "group",
    name = "",
    childGroups = "tree",
    args = {
    function()
    for i = 1, GuildControlGetNumRanks() do
    local rank = GuildControlGetRankName(i);
    {
    order = i,
    type = "group",
    name = rank,
    args = {
    names = {
    name = rank,
    type = "multiselect",
    width = "full",
    values = function()
    local names = {}
    for ci = 1, GetNumGuildMembers() do
    names[ci] = GetGuildRosterInfo(ci);
    end
    return names
    end,
    },
    },
    }
    end
    end,
    }
    }[/PHP]

    Does anyone have any tips on what to do?
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.