• 0

    posted a message on My Little Companion [Official Thread]
    My Little Companion is an addon that allows you to place an animated sprite anywhere on your screen. That sprite will walk around a set area which can be moved and resized.

    Green Area:


    Each sprite has its own walking and idle animations.

    Example:


    More sprites are being added constantly. (And for all of you who hate MLP sprites here is a teaser)

    Coming Soon...


    Posted in: General AddOns
  • 0

    posted a message on WoW PuG Builder [Official Thread]
    Quote from Ketho
    This looks great, I'm a big fan ur addons :)


    Q: How and why exactly does it show cross-realm characters?!
    I thought u can't raid cross-realm ..


    Thats actually just Strand of the Ancients (^_^). It was the easiest way to get 15 people together
    Posted in: Raid AddOns
  • 0

    posted a message on WoW PuG Builder [Official Thread]
    WoW PuG Builder aims to make peoples lives easier when building pugs.

    Features:
    * LFM Auto Announce
    o Set how many tanks, healers, melee and ranged you need
    o Drag and drop the tanks, healers, melee and ranged to fill in their roles
    o Set what classes you want for that role or leave it blank (e.g. Warrior Tank or Priest Healer)
    o Add a custom message to the end
    o Add quest, achievement and item links to your message by Shift clicking them
    o Select how many seconds to wait between announces
    o Auto-announce the message every x seconds in channel 1/2/3/4

    * Whisper Tracker
    o Records the last 5 messages sent/received by each person allowing you to easily know what role they are
    o Shift Click the frame to invite the person
    o Ctrl Click the frame to remove the frame

    * Additional
    o Phrases such as "LFM" and "Tank" can be changed to whatever you want
    o Amount of tanks, healers, melee, ranged required and custom message are saved on a per raid name basis (e.g. 3 tanks for icc10 and 2 tanks for icc25)
    o Message can be in the format "LF{x}M" (English only) (e.g. LF4M ICC10 ...)
    o LDB Support

    Posted in: Raid AddOns
  • 0

    posted a message on Need help intercepting achievement links
    Quote from Deepac
    I use a much simpler method in LFMonitor to intercept any link like this. In the following code, LFMonitor.EditFocus is the edit box in my addon which currently has focus. Pretty sure I stole this code from somewhere but can't remember where, so all credit to the original author.

    local orig_ChatEdit_GetActiveWindow = ChatEdit_GetActiveWindow
    
    function ChatEdit_GetActiveWindow()
     
        return LFMonitor.EditFocus or orig_ChatEdit_GetActiveWindow()
    	
    end


    This is the best idea yet. It grabs item links, quests and achievements. Thank you so much. Although I couldnt get it to work i changed it to:

    function WoWPuG_SetupQuestGrabber()
    -- Use my editbox as the active window
    	local orig_ChatEdit_GetActiveWindow = ChatEdit_GetActiveWindow
    
    	function ChatEdit_GetActiveWindow()
    		if WPuG_SetupGrp_MessageBox:HasFocus() then	-- if my editbox has focus
    			return WPuG_SetupGrp_MessageBox
    		else
    			return orig_ChatEdit_GetActiveWindow()
    		end
    	end
    end


    Quote from Phanx
    WoWPuG_OnAddonLoadCatcher:SetScript("OnEvent", function(self, event, ...) 
    	local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 = ...;
    	
    	if arg1 == "Blizzard_AchievementUI" then


    Just curious... why bother using a vararg, when you immediately assigning to to individual variables and then only use the first value, instead of just naming the incoming parameter directly?

    WoWPuG_OnAddonLoadCatcher:SetScript("OnEvent", function(self, event, addon)
    	if addon == "Blizzard_AchievementUI" then


    Mostly just sticking to old habits, then when i am looking around going "how did i do xxx?" its easier to see
    Posted in: Need Help?
  • 0

    posted a message on Need help intercepting achievement links
    Thanks guys, here is what i decided to go with in the end. This grabs the links from achievements and quests

    WoWPuG_OnAddonLoadCatcher = CreateFrame("Frame");
    WoWPuG_OnAddonLoadCatcher:SetScript("OnEvent", function(self, event, ...) 
    	local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 = ...;
    	
    	if arg1 == "Blizzard_AchievementUI" then
    		WoWPuG_SetupAchievementGrabber();
    	end
    end)
    WoWPuG_OnAddonLoadCatcher:RegisterEvent("ADDON_LOADED");
    
    
    function WoWPuG_SetupQuestGrabber()
    	local function QuestLinkGrabber(self, button, down, ignoreModifiers)
    		local questLink = GetQuestLink(self:GetID())
    		WoWPuG_AddLinkToMessage(questLink)
    	end
    
    	hooksecurefunc("QuestLogTitleButton_OnClick", QuestLinkGrabber)
    end
    
    function WoWPuG_SetupAchievementGrabber()
    	local function AchievementLinkGrabber(self, button, down, ignoreModifiers)
    		local achLink = GetAchievementLink(self.id)
    		WoWPuG_AddLinkToMessage(achLink)
    	end
    	
    	hooksecurefunc("AchievementButton_OnClick", AchievementLinkGrabber)
    end
    
    function WoWPuG_AddLinkToMessage(Link)
    	if WPuG_SetupGrp_MessageBox then	-- if the edit box has loaded
    		if IsModifiedClick() then	-- if we are holding a modifier	(alt/ctrl/shift)
    			if WPuG_SetupGrp_MessageBox:HasFocus() then	-- if the editbox has focus
    				WPuG_SetupGrp_MessageBox:Insert(Link)	-- then add the link to the message
    			end
    		end
    	end
    end
    Posted in: Need Help?
  • 0

    posted a message on Need help intercepting achievement links
    Hey,

    I was wondering if i could get a bit of help with something. The current way that the achievement panel works you can shift click an achievement and add that link to the message you are typing.



    What i wanted help with was intercepting the achievement link when my editbox has focus and when the achievement is shift clicked



    edit: If a mod sees this can they move it to "Development Help" please
    Posted in: Need Help?
  • To post a comment, please or register a new account.