• 0

    posted a message on WowAce's Packagemancer and http://files.wowace.com/
    here are some random ideas i had for files.wowace.com

    add links to the addons wiki's and maybe even their external sites (curse,wowinterface,etc)

    some sort of ability to see all of the addons revisions and then chose to download the one you need.(this should be kinda hidden yet readily accessible)

    only other thing is something that concerns the main site and that is the nav bar changes sometimes if you go to certain sections makes it kinda annoying to go from one place to another

    Posted in: Updaters
  • 0

    posted a message on Frame recycling
    thanks to Xinhuan this is my current code


    local GUIFramePool = {}
    --GUIFrameScriptHandler will only contain scrip handlers used in the addon (no sense in checking for things that never exist
    local GUIFrameScriptHandler = {   
    	'OnChar',
    	'OnEnter',
    	'OnHide',
    	'OnKeyDown',
    	'OnKeyUp',
    	'OnLeave',
    	'OnMouseDown',
    	'OnMouseUp',
    	'OnMouseWheel',
    	'OnShow',
    	'OnCursorChanged',
    	'OnEnterPressed',
    	'OnEscapePressed',
    	'OnTabPressed',
    	'OnTextChanged',
    	'OnTextSet'
    }
    
    function YGS:RecycleFrame(frame)
    	frame:UnregisterAllEvents()
    	frame:ClearAllPoints()
    	frame:Hide()
    	for k,v ipairs(GUIFrameScriptHandler) do
    		if frame:HasScript(v) then 
    			frame:SetScript(v, nil)
    		end
    	end
    	local frameType = frame:GetObjectType();
    	GUIFramePool[frameType] = GUIFramePool[frameType] or {}
    	tinsert(GUIFramePool[frameType], frame)
    end
    
    function YGS:GetFrame(frameType,parentFrame)
    	local newFrame
    	if GUIFramePool[frameType] and #GUIFramePool[frameType] > 0 then
    		newFrame = tremove(GUIFramePool[frameType])
    		newFrame:SetParent(parentFrame)
    	else
    		newFrame = CreateFrame(frameType, nil, parentFrame)
    	end
    	return newFrame
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on Frame recycling
    i am trying to setup a frame recycler in my addon here is what i have so far

    local GUIFramePool = {}
    
    function YGS:RecycleFrame(frame)
    	frame:UnregisterAllEvents()
    	frame:ClearAllPoints()
    	frame:Hide()
    	if GUIFramePool[frame:GetObjectType()] then
    		table.insert(GUIFramePool[frame:GetObjectType()],frame)
    	else
    		GUIFramePool[frame:GetObjectType()] = {}
    		table.insert(GUIFramePool[frame:GetObjectType()],frame)
    	end
    end
    
    function YGS:GetFrame(frameType,parentFrame)
    	local newFrame
    	if GUIFramePool[frameType] then
    		if GUIFramePool[frameType][1] then
    			newFrame = GUIFramePool[frameType][1]
    			table.remove (GUIFramePool[frameType], 1)
    		else
    			newFrame = CreateFrame(frameType, nil, parentFrame)
    		end
    	else
    		newFrame = CreateFrame(frameType, nil, parentFrame)
    	end
    	return newFrame
    end


    what do you guys think? anything i need/should change? anything i can improve?
    Posted in: Lua Code Discussion
  • 0

    posted a message on List of addons that now use Rock
    I have converted most of YssGuildShop to rock (only use ace for the fubarplugin) why the change? RockComm fixed an error that happened from time to time in AceComm which hasn't been fixed since i reported it (even made a simple addon that would cause the error).

    So far smooth sailing in the Rock world i guess. Gonna see what Ace3 brings along and switch to it if it means improving my addon.
    Posted in: Rock
  • 0

    posted a message on PitBull - official topic
    would make sense that i never saw them work then since i just upgraded to pitbull


    but again is there the option to add to the context menu (right click menu) of a raid member (set to MT 1) (set to MT2) etc???
    Posted in: Unit Frames
  • 0

    posted a message on PitBull - official topic
    Idk if this has been answered before (i couldn't find it if it was).

    How do the MT/MA frames work when i assign a MT in oRA2 they don't show up there also is there anyway to add the option to set someone as on of the MT's using the right click menu on one of the raid frames (X-Pearl does this)

    other than those questions i just wanna say this addon rocks and is way better than anything i have used before
    Posted in: Unit Frames
  • To post a comment, please or register a new account.