• 0

    posted a message on Options panel layout feedback
    Make the General Tab an inline group. Make the UnitBar Settings and Copy Settings as child entrys in the main addon list on the left.

    That should make it nicer to work with.
    Posted in: Addon Ideas
  • 0

    posted a message on Trouble Understanding Packaging
    when i start a new addon that's one of the first things i change, but i change it to beta/release only.
    Usually the first dozen or so commits are fixing typos and externals :)
    Posted in: Need Help?
  • 0

    posted a message on Trouble Understanding Packaging
    www.wowace.com/addons/raidinfo

    is more usefull :)


    go check

    http://www.wowace.com/addons/raidinfo/repositories/mainline/edit/

    and make sure the zip packaging is turned on. IE it has it listed for alpha,beta,release or some combo.
    Posted in: Need Help?
  • 0

    posted a message on BadBoy: An extremely minimal spam blocker & reporter
    This got though today..

    <>
    Posted in: General AddOns
  • 0

    posted a message on Openning enchanting without any localized strings
    local enchantingName = GetSpellInfo( <spell id for enchanting from wowhead>)
    CastSpellByName( enchantingName )
    Posted in: Lua Code Discussion
  • 0

    posted a message on Checking if an element exists in an unknown-dimensioned table
    the only way to do it is to go back and forth with the table dive.
    if t then
        if t.key then
            if t.key.value then
                if t.key.value.t then
                    --code
                end
            end
        end
    end


    could try something like
    local t = someTable
    if t then
        if t.key then
            t = t.key then
            if t.value then
                t = t.value then
                if t.t then
                    --code
                end
            end
        end
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on Checking if an element exists in an unknown-dimensioned table
    Quote from sapu94
    Not sure what a better way to word this title is...but here is what I was wondering. Is there a better way to write this code?

    if treeFrame.children and treeFrame.children[1] and treeFrame.children[1].children and treeFrame.children[1].children[1] and treeFrame.children[1].children[1].width then
    --do stuff
    end


    I can't be 100% sure that each "level" of the table will be valid and if I just use the last condition of the above statement I'll get an lua error for trying to index a nil value.

    Any ideas?


    This oddly looks like your trying to reach inside the internals of AceGUI and pull a rabbit out of a table....


    What are you doing?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Main-Alt Addon
    In RosterTooltip i have a basic Alt-Main interface that is rather isolated from the rest of the addon.

    It's only dependancy's are AceGUI&Config/AceAddon & LibAlt's (naturally), it can easily be made into it's own addon and keep the SV that would be needed for the best and easiest solution.

    The part of RosterTooltip im talking about is a single pane in Interface Options that allows you to manually manage the Alt-Main relationships.
    Posted in: Addon Ideas
  • 0

    posted a message on How to mix AceGUI widgets with Xml frames?
    Quote from MigGat
    Ok, I'm not saying AceGUI it's the better option for me, just that it does some things I don't know how to handle the most important being "AceGUI:Release()". I understand this function disposes the frame to improve memory management.


    Wrong.. the :Release() only clears the customizations of the frame and puts it back into the pool.

    Basic Concept of Frames & Other Wiget Elements: Once created you can't destroy it.
    Posted in: Ace3
  • 0

    posted a message on How to mix AceGUI widgets with Xml frames?
    Generally you don't. You use AceGUI or you write all your own code. AceGUI is not expecting authors to go changing things inside the wiget object outside of what the base API for that widget provide.

    The real question here is what are you trying to do?
    Posted in: Ace3
  • 0

    posted a message on lib-babble-* svn oddness
    I think all the libs are using SVN. One of the major reasons IMO is because SVN gives you a nice rev number to pass to LibStub.

    & to clarify, if a lib was using git instead, then you'd have to pull the whole repo as an external. What repo the addon is using is irrelevant.
    Posted in: Libraries
  • 0

    posted a message on Help with GameTooltip
    it's because statLabel is a table not a frame.

    What your doing is diving into the internals of AceGUI, generally a bad thing.. however your not changing anything just using the frame as an anchor point. So what you want is something like [[ statLabel.frame ]] in your callback
    Posted in: Lua Code Discussion
  • 0

    posted a message on Ace3 TOC
    looks right.

    Also use the OptionalDeps in the toc instead of the RequiredDeps.
    Posted in: Ace3
  • 0

    posted a message on New to coding - question about a coding guide
    Using an underscore is just a naming convention, nothing more.

    As for the book, i have not read it myself but others indicate it's a good place to start.
    Posted in: Lua Code Discussion
  • 0

    posted a message on acelocale table - chaning things after its loaded
    you should be able to call NewLocale() when you've got the updated localizations.

    Just remember that you have to call newLocale() and then update the translations immediately, otherwise you might not be working with your app anymore.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.