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

    posted a message on Prevent Releasing an already Released AceGUI Widget?
    Still haven't solved this problem =/
    Posted in: Lua Code Discussion
  • 0

    posted a message on Prevent Releasing an already Released AceGUI Widget?
    I understand what you're saying, but I'm still a bit confused as to how I can get around this problem.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Prevent Releasing an already Released AceGUI Widget?
    The tree group is added to the tab group. Inside the tree group is a scroll frame then inside the scroll frame is 2 inline groups with various labels.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Prevent Releasing an already Released AceGUI Widget?
    Only on other widgets. But that's the only place I call a release for GuildMemberTabGroup.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Prevent Releasing an already Released AceGUI Widget?
    Been running into the "Attempt to Release Widget that is already released" error when calling ReleaseChildren on a tab group in a OnGroupSelected callback handler. Here's a bit of the code:
    GuildMemberTabGroup = AceGUI:Create("TabGroup");
    GuildMemberTabGroup:SetCallback("OnGroupSelected", function(widget, event, value)
    	widget:ReleaseChildren();
    	TabSelectedItem = tostring(value);			
    	if (TabSelectedItem == "1") then
    		HALootManager:InsertGuildMembersTree();
    	elseif (TabSelectedItem == "2") then
    		HALootManager:InsertOtherGroup();				
    	end
    end);
    GuildMemberTabGroup:SetLayout("fill");
    GuildMemberTabGroup.width = "fill";
    GuildMemberTabGroup.height = "fill";
    GuildMemberTabGroup:SetTabs({
    	{
    		value = "1",
    		text = "Visible Text1"
    	},
    	{
    		value = "2",
    		text = "Visible Text2"
    	},
    });
    GuildMemberTabGroup:SelectTab("1");
    GuildMemberInfoFrame:AddChild(GuildMemberTabGroup);


    HALootManager:InsertGuildMembersTree() creates a tree group and adds it to GuildMemberTabGroup. HALootManager:InsertOtherGroup() creates a scroll frame and adds it to GuildMemberTabGroup.

    I start getting the error when I switch tabs. Is there anyway to check if the children of the widget are already released or am I just doing something wrong here?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting the selected item in an AceGUI Dropdown?
    Awesome glad to see the change. And thank you for the sample code. I had my parameters wrong on my callback function.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting the selected item in an AceGUI Dropdown?
    How would I go about using OnValueChanged? I've tried messing with it before but could not get that to work.

    Hopefully they do make the change you have in your ticket.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting the selected item in an AceGUI Dropdown?
    Referring to http://www.wowace.com/addons/ace3/pages/ace-gui-3-0-widgets/ I see functions to SetValue and SetText on a dropdown widget, but nothing to get what is currently selected?

    Am I missing something?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Comparing Names containing non-ASCII characters?
    Quote from Graveeater
    You mean, that one has a NON ascii char in its name? Like Gändálf?

    Oh yes sry that is what I meant >.>. His name is Cptámerika for the record.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Comparing Names containing non-ASCII characters?
    In my addon I have tables which contains lists of peoples Mains and Alts. One person in particular has a Non ASCII char in his name and while his name is in the table when ever I try comparing a list of people in a raid group with these tables his doesn't compare properly. It shows him as non existent in both tables.

    Is there anyway I can get around this?

    Thanks in advance!

    Edit: Here is an example of how I look through the Mains table:

    for k, v in pairs(RaidGuildMembers) do
    	for i = 1, #(HALootManager.PriorityList.Mains), 1 do
    		if (HALootManager.PriorityList.Mains[i] == v) and (HALootManager:IsInGuild(v)) then							
    			table.insert(MainsAndPrimaryAlts, v);
    			break;
    		end
    	end
    end


    RaidGuildMembers (still need to rename from my previous implementation) is just a list of names from the raid. The IsInGuild function checks if the person is in the guild or not. The MainsAndPrimaryAlts table is what I use later in the code.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Countdown
    Quote from Valana_TB
    What wasn't working with it? Were you not using a repeating timer, possibly? Or maybe you weren't creating a new timer on every call?

    Well I guess at this point it doesn't matter. I'm using OnUpdate now and it's working just fine. Thank you very much for your help :)!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Countdown
    Quote from Valana_TB
    You could get the value of time() when a button is pushed, then in OnUpdate() check the difference between the current time() and the original value. I believe the OnUpdate call also passed in the amount of time elapsed since the last update as described here http://www.wowwiki.com/Using_OnUpdate_correctly. Or you could use AceTimer, I suppose.

    AceTimer was what i tried 1st, but I couldn't get it to work properly. I may have done something wrong though.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Countdown
    I am not looking for an addon but a way to code up a countdown timer that starts from 10 and counts down to 0 and sends each tick in a raid message. It would look something like this:
    Raid: 10
    Raid: 9
    Raid: 8
    Raid: 7
    Raid: 6
    Raid: 5
    etc...

    I've tried many different ways and can't seem to get it working properly. If anyone can help it would be much appreciated.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Northrend Dailies Location Guide
    With the release of Wrath of the Lich King there are many more daily quests added to WoW. However, unlike in BC where they were much easier to find, the Northrend Dailies are scattered all across the frozen waste land. My idea is to write an addon providing locations for these daily quests and be able to filter them by rep, zone, etc.

    While this may sound like a good idea there is an issue I can for see that would cause problems and that would be Blizzard's usage of Phasing in this expansion. For example: most (if not all) of the Ebon Dailies have to be unlocked via a quest change in Icecrown. I do not believe there is a way to track the completion of this quest chain (unless through achievements or possibly your reputation status).

    This is the only issue stopping me from writing this addon, but I believe if I can get past that somehow an addon like this would prove to be very useful.
    Posted in: Addon Ideas
  • 0

    posted a message on Reagent Helper 2: Remastered
    Curse Download
    WowInterface Download



    Inspired by the original addon by Tuatara from Cosmos UI comes Reagent Helper 2: Remastered. RH2 shows within a reagent item's tooltip the Profession and/or Class it is used for.

    Full description at one of the links above.
    Posted in: General AddOns
  • To post a comment, please or register a new account.