• 0

    posted a message on Empty dropdown?
    Thanks. Using SetList to give it an empty table actually fixes it, allowing AddItem to work properly.
    Posted in: Ace3
  • 0

    posted a message on Empty dropdown?
    So, I'm making a dropdown list for my addon for the first time, and it's not working as expected.

    function showProfiles()
    	selectTree:ReleaseChildren()
    	defaultStatus = "Profiles";
    	addLabel("COMING SOON!")
    	local profileSelect = GUI:Create("Dropdown")
    	profileSelect:AddItem(1, "Default")
    	profileSelect:AddItem(2, "Default2")
    	profileSelect:SetText("Select a profile")
    	selectTree:AddChild(profileSelect)
    end


    I should have two entries, "Default" and "Default2".

    What I get instead is this:



    The dropdown before you expand it seems to be fine:



    Any idea what I'm doing wrong?
    Posted in: Ace3
  • 0

    posted a message on My UUID changed?
    Weird, that's a WowAce thread - do WowAce and Curseforge share repositories?
    Posted in: Need Help?
  • 0

    posted a message on My UUID changed?
    A bit of a pain, but I got it working. Had to copy the changes I made to a new folder temporarily before I wiped everything.
    Posted in: Need Help?
  • 0

    posted a message on My UUID changed?
    Apparently my UUID changed.

    Why did it change, and how do I fix it? Using TortoiseSVN.



    Uploaded with ImageShack.us
    Posted in: Need Help?
  • 0

    posted a message on What changed in r1057 (from r1041)?
    gah, that was 1058, downloading 1059 . . .

    EDIT: That fixed it, thanks :).

    The scrollframe is rather obscure magic at times


    Heh, between Blizzard's stuff and Ace stuff, there does seem to be a lot of black magic going on XD.

    And it probably doesn't help that I push Ace to its limits, demanding more of it than a simple options dialog. If there were a more generic framework for creating UIs, I'd switch to it in a heartbeat.
    Posted in: Ace3
  • 0

    posted a message on What changed in r1057 (from r1041)?
    That seems to have done something. But it still is not working completely.

    So what's happening now is that it works fine in the absence of other addons, but breaks again when I load all of my other addons.
    Posted in: Ace3
  • 0

    posted a message on What changed in r1057 (from r1041)?
    I've isolated the issue to AceGUIContainer-ScrollFrame.lua. That is the file that, if I change, conflicts with my addon. All other files work fine.

    Edit: A diff reveals that the only modification to that file is the addition of self:FixScroll() - what does that line do, exactly?
    Posted in: Ace3
  • 0

    posted a message on What changed in r1057 (from r1041)?
    No errors as far as I can see, tried both the beta and release versions of WoW. It also seems to also affect other addons.
    Posted in: Ace3
  • 0

    posted a message on What changed in r1057 (from r1041)?
    So, I've been working on Reagent Restocker, preparing it for Mists, and as part of the update, I tried updating to r1057 of Ace 3 (from r1041).

    Unfortunately, that totally broke Reagent Restocker making the entire frame blank, so I had to revert :(.

    So, what has changed between r1041 and r1057, in particular anything that would cause such a drastic change in my addon?
    Posted in: Ace3
  • 0

    posted a message on Questions about the API and clean code
    Humm, unfortunately, it doesn't look that simple with the code I have :(. The original author didn't account for people wanting that feature at all.

    The biggest culprit is going to be recursiveMove in Core.lua, which is in charge of moving things around. It assumes there's a unique ID for all bags, which is normally true with the regular bank, but in the case of a guild bank. It seems that the guild bank is numbered separately as it has its own set of APIs. That may mean some IDs may overlap, I think.

    I'm thinking I may have to rewrite major parts of the item movement algorithms - something I'm not terribly looking forward to because it's core code and was written by the original author - I've never had to touch it.

    But - being able to use it with guild banks a commonly requested feature, so I might as well get started.
    Posted in: AddOn HELP!
  • 0

    posted a message on Questions about the API and clean code
    Hey, I'm the author of the Reagent Restocker addon, and I'm trying to add guild bank support to my addon.

    Currently, Reagent Restocker makes several calls to GetContainerItemLink and GetContainerItemInfo. However, all of that changes when I want it to access the guild bank.

    When the guild bank is being accessed, it needs to use GetGuildBankItemLink and GetGuildBankItemInfo for items in the guild bank.

    Problem is, I'm unsure of how to do this cleanly. I started putting in a lot of if...else..end statements, but it just makes the code a lot more complex and more difficult to work with, and has to be done pretty much anywhere where I need choose between a guild bank function and the regular function.

    Is there a way to cleanly use these API calls without making my code a mess?
    Posted in: AddOn HELP!
  • 0

    posted a message on LuaTexts Official Thread
    Couple of qeuestions about texts:

    Is it possible to add titles to the names? Can't figure out how to do it.

    For raids and battlegrounds where there are multiple groups, is it possible to list my group number next to my name? (edit: Forgot to check the last page before posting)
    Posted in: Unit Frames
  • 0

    posted a message on Frame appears outside options dialog . . .
    downside is that even if you use the BlizOptionsGroup, you still have to pass f.frame to IO_AC() and you still have to add a group to it as "fill" layout then add what ever you want to that group.


    Yup, I pretty much figured that.

    It kinda works.

    BUT - there's a bit of a "bug" in WoW's handling of frames it receives . . .

    Not really a bug, I guess, since they do it on purpose, but still very annoying . . .

    Basically, when you pass a new pane/frame/whatever to InterfaceOptions_AddCategory, it pretty much clobbers the parents of the frame every time you display it. So if I want to create another frame with the same controls outside of WoW's frame, I have to pretty much create an exact duplicate of the controls.

    That's not Ace3's fault, though, since it's WoW's own behavior.
    Posted in: Ace3
  • 0

    posted a message on Frame appears outside options dialog . . .
    I'm curious, and maybe I've missed a comment elsewhere, but... Why are you using AceGUI directly instead of AceConfig?


    I'm using custom widgets.

    Why dont you use the BlizGroup container?


    Because I'm totally, completely unaware of its existence or how to use it. Can't find it in WoWWiki or in Ace. What is it, how do I use it, and where are the docs?
    Posted in: Ace3
  • To post a comment, please or register a new account.