• 0

    posted a message on Dock (closed beta testing)
    I've committed a fix to AceGUI that fixes the lockups with the config window. Its a long standing issue that only had a workaround in place previously. Should be fixed for good now.

    The errors when Deleting a Dock from the config can be fixed by removing the forced refresh of the window in the GUIRemove function.
    This type of refresh isnt needed in a callback from an options table as there is a full refresh after every set/func called. If this function is called from elsewhere in the code not triggered from the options table then a refresh should be done there.

    The mechanism for triggering a refresh properly is
    LibStub("AceConfigRegistry-3.0"):NotifyChange("Dock")


    I'll get some protection in place for a refresh being triggered from a callback but for now it'll be best to avoid it
    Posted in: General AddOns
  • 0

    posted a message on Sorting multiple "columns" in a table
    Sorting twice will not work, it just needs a slight tweak to the comparison

    local function compare(a,b)
      if a.col1 == b.col1 then
        return a.col2 < b.col2
      else
        return a.col1 < b.col1
      end
    end
    
    table.sort(MyTable, compare)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Doubts With Vararg
    The Documentation that you are reading is for lua 5.0, 5.1 is the version used currently for addons.

    The arg table no longer exists, there are other ways of accessing the args.

    function pipo (...)
     print( select('#',...) )
     print( ... )
     local a,b,c,d = ...
     print(a,b,c,d)
    end
    pipo("Line1","Line2","Line3","Line4");

    Would print
    4
    Line1,Line2,Line3,Line4
    Line1,Line2,Line3,Line4


    Basicly use ... wherever you would use a list of values
    Posted in: Lua Code Discussion
  • 0

    posted a message on Baggins - Official Thread
    Disembedded would be 'without externals' in WAU.
    I'll look into why Waterfall would be failing to load when embedded

    edit: embeds.xml had Waterfall-0.1 instead of 1.0, its fixed now. Update in 20 mins or so and it should be working.
    Posted in: General AddOns
  • 0

    posted a message on Baggins - Official Thread
    The only reason that would be diabled is if Waterfall isnt installed, if you're running disembedded make sure that Waterfall-1.0 is installed and enabled
    Posted in: General AddOns
  • 0

    posted a message on Waterfall-1.0
    You can feed an options table in, but you will have to do the tree for it yourself.
    waterfall:FeedAceOptionsTable(options, path, levels) inside of a contents function will feed the controls for the table.
    e.g waterfall:FeedAceOptionsTable(self.opts, "Profile", 2) to feed self.opts.args.Profile getting controls 2 levels deep

    The way to get a label for a dropdown is to add a label control before it.
    There isnt really any documentation for the Base API as its more a foundation for the options table support than anything.

    Honestly if you're going to be starting a GUI from scratch it would be better to look into AceGUI-3.0.
    I havent got the API docs for that written yet but there will be some on the way, if you want an example you can look at /wowace/branches/Ace3/Beta/tests/AceGUITest/"" target="" data-ensure-absolute>AceGUITest. I'll be on irc over the weekend if you want some hints for getting started.
    Posted in: Libraries
  • 0

    posted a message on Ace3 Alpha Release
    Multiline edit is one of the controls that i've been wanting to write to have in the core, but have been putting off since edit boxes are one of the more annoying GUI elements to work with.

    I've been thinking that enough addons would use it that an attribute on type='input' would be worth looking into.
    Posted in: Ace3
  • 0

    posted a message on Help with some tables..
    Unless you need to have the items in the table sorted, and i'm guessing you don't since you use pairs to iterate most of the time, using a different table structure would simplify most of these operations to single lines.

    Instead of a table that looks like this
    { [1]="Item1",[2]="Item2" }
    use one like this
    { ["Item1"] = true, ["Item2"] = true }
    would leave insert, delete, toggle, clear as this
    Insert:
    GetVendored.junk[junkname] = true
    
    Delete:
    GetVendored.junk[junkname] = nil
    
    Toggle:
    if GetVendored.junk[junkname] then
      GetVendored.junk[junkname] = nil
    else
      GetVendored.junk[junkname] = true
    end
    
    Clear:
    for k in pairs(GetVendored.junk) do
      GetVendored.junk[k] = nil
    end

    Posted in: Lua Code Discussion
  • 0

    posted a message on Outlining the differences between Ace2 and Ace3
    By pretty much the same options table that the Baggins Waterfall config uses, tweaked for the new config table syntax and group types added even :D

    Its the same big tree of options with a few hints on how to present them.
    Posted in: Ace3
  • 0

    posted a message on problems writing a library and having it save addon specific info
    I can't see anywhere in that code where you create the lib.data[self] table, at a guess in the Embed function you'll need something like
    LibSync.data[target] = {}
    Posted in: Lua Code Discussion
  • 0

    posted a message on Baggins - Official Thread
    Most Likely you have Sort set to 'slot', this will disable the compression option since it requires like items to be sorted next to each other to function.
    Posted in: General AddOns
  • 0

    posted a message on help baggins
    Baggins has a seperate keybinding to the normal bags that you have to set. The bags can also be opened from the FuBar plugin.
    Posted in: General AddOns
  • 0

    posted a message on Baggins - Official Thread
    Ah, the problem is that the Other rule takes into account all bags. Can't think of an easy way around it without creating a rule that is everything excluding whats already filtered in the All In One bag
    Posted in: General AddOns
  • 0

    posted a message on Baggins - Official Thread
    gmarco: If you have 2 Bags that you want to allow duplicates across then setting Hide Duplicates to Per Bag would be the easiest I think.

    Theres currently no quicker way to switch between profiles that using the menu, I'll think about a better way of achieving what you're trying to do, maybe a 2nd hotkey which opens a different set of Bags than the default.
    Posted in: General AddOns
  • 0

    posted a message on Baggins - Official Thread
    I just fixed a problem where Baggins was updating the tooltip when it wasn't meant to. This should help with most of the problems related to tooltips (and I suspect performance as well).
    Posted in: General AddOns
  • To post a comment, please or register a new account.