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

    posted a message on AutoBar by Toadkiller (official thread)
    I'm using CowTip and my unit tooltips are anchored to the cursor.
    The problem is with AutoBar, that if I turn off enhanced tooltips, the tooltip will appear where the last time shown. Like if it appeared near the center of the screen then I moved my cursor on an autobar button the button's tooltip will appear at the center of the screen.

    I sniffed a bit into the default UI then found this solution:

    Old code at line 599 in AutobarButton.lua:
    	if (GetCVar("UberTooltips") == "1") then
    		GameTooltip_SetDefaultAnchor(GameTooltip, self)
    	else
    		GameTooltip:SetOwner(self, "ANCHOR_PRESERVE")
    	end


    New code:
    	if (GetCVar("UberTooltips") == "1") then
    		GameTooltip_SetDefaultAnchor(GameTooltip, self)
    	else
    		local x = self:GetRight();
    		if ( x >= ( GetScreenWidth() / 2 ) ) then
    			GameTooltip:SetOwner(self, "ANCHOR_LEFT");
    		else
    			GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
    		end
    	end


    Now if the enhanced tootlips are turned off, Autobar button's tooltips are appearing next to the button the cursor is on, like items in the bags.
    Posted in: General AddOns
  • 0

    posted a message on AutoBar by Toadkiller (official thread)
    Quote from Toadkiller »

    Ok so what settings do people have for Interface Options/Help/Enhanced Tooltips? Mine is on and I have no issues. Although that also means I am not running the ANCHOR_PRESERVE code path.


    I don't use Enhanced Tooltips, but if I modify the "GameTooltip:SetOwner(self, "ANCHOR_PRESERVE")" to "GameTooltip_SetDefaultAnchor(GameTooltip, self)" the tooltip will appear on the default place and this is good for me. :-)
    Posted in: General AddOns
  • 0

    posted a message on AutoBar by Toadkiller (official thread)
    I'm a hunter and noticed this error when I mouseover a food button that feeds that food to my pet on right cast:
    [2008/05/03 20:09:00-3373-x1]: AutoBar-2.04.01.49 beta.72541\AutoBarButton.lua:650: attempt to concatenate local 'spellName' (a nil value)
    AutoBar-2.04.01.49 beta.72541\AutoBarButton.lua:563: in function <Interface\AddOns\AutoBar\AutoBarButton.lua:562>


    I found out if you change this at line 650:
    		if (rightClickType == "spell") then
    			local spellName = self:GetAttribute("*spell2") or self:GetAttribute("spell")
    			GameTooltip:AddLine(L["Right Click casts "] .. spellName, 1, 0.2, 1, 1)
    		end

    to:
    		if (rightClickType == "spell") then
    			local spellName = self:GetAttribute("*spell2") or self:GetAttribute("spell") or self:GetAttribute("spell2")
    			if spellName then
    				GameTooltip:AddLine(L["Right Click casts "] .. spellName, 1, 0.2, 1, 1)
    			end
    		end


    then everything will be all right and the tooltip will display the Feed Pet spell.

    Also the ANCHOR_PRESERVE not stopped tooltip issues, the tooltip will appear where the last tooltip was displayed before.
    Posted in: General AddOns
  • 0

    posted a message on PT3Bar (non-official Thread of drama and great justice)
    Is there any way to make the buttons the "Dreamlayout" look?
    Posted in: General AddOns
  • 0

    posted a message on Autobar (Toadkiller)
    Hunter problem:
    Feeding pet with right click not working since the patch.
    I can use bandages on my pet, but when I right click on the food, my character eats it instead of my pet.
    Posted in: General AddOns
  • To post a comment, please or register a new account.