Go Back   WowAce Forums > General > Lua Code Discussion
Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding].

Reply
 
Thread Tools
Old 03-14-2009   #1
Mikari
Full Member
 
Join Date: Sep 2008
Posts: 241
Default Hovertips on Profession UI

On the PTR when you mouseover recipes in your profession UI you get a hovertip, I believe this is being caused by the Blizzard Feedback UI, any ideas how it's doing it, wouldn't mind being able to have this feature on live.
Mikari is offline   Reply With Quote
Old 03-15-2009   #2
Phanx
Seal Cub Clubbing Club
 
Phanx's Avatar
 
Join Date: May 2005
Posts: 5,576
Send a message via AIM to Phanx Send a message via MSN to Phanx Send a message via Yahoo to Phanx
Default Re: Hovertips on Profession UI

wowcompares.com has all of Blizzard's UI code for every build available.
Phanx is offline   Reply With Quote
Old 03-15-2009   #3
Mikari
Full Member
 
Join Date: Sep 2008
Posts: 241
Default Re: Hovertips on Profession UI

wowcompares is actually the first place I looked before making this topic, it doesn't have the feedbackUI though.
Mikari is offline   Reply With Quote
Old 03-15-2009   #4
Arrowmaster
Hero Member
 
Join Date: Apr 2006
Posts: 807
Default Re: Hovertips on Profession UI

Disable the feedbackUI like everybody else does then check if the hovertips are still there.
Arrowmaster is offline   Reply With Quote
Old 03-15-2009   #5
Mikari
Full Member
 
Join Date: Sep 2008
Posts: 241
Default Re: Hovertips on Profession UI

Whilst it used to show up in earlier WoW patches I don't think the FeedbackUI shows up under the addons page in the 3.1 PTR.
Mikari is offline   Reply With Quote
Old 03-15-2009   #6
Dridzt
Senior Member
 
Dridzt's Avatar
 
Join Date: Nov 2005
Posts: 328
Default Re: Hovertips on Profession UI

I believe you are correct but maybe you can "fake it" with

/script DisableAddOn("Blizzard_FeedbackUI")
/console reloadui

Check with IsAddOnLoaded("Blizzard_FeedbackUI") after the reload to see that it's truly disabled.
Dridzt is offline   Reply With Quote
Old 03-15-2009   #7
Dridzt
Senior Member
 
Dridzt's Avatar
 
Join Date: Nov 2005
Posts: 328
Default Re: Hovertips on Profession UI

Since AddonKit does not extract the feedbackUI code,
attaching the latest 3.1 build feedbackUI source for the curious.

This is the TradeskillUI relevant code btw:
Code:
function FeedbackUI_TradeSkillFrameSetup ()
    local skillFrame, reagentFrame, script;
    
    TradeSkillListScrollFrame:HookScript("OnVerticalScroll",
        function(self, offset)
            if ( GameTooltip:IsVisible() ) then
                if ( string.match(GameTooltip:GetOwner():GetName(), "^TradeSkillSkill") ) then
                    FeedbackUI_TradeSkillFrame_Update(GameTooltip:GetOwner());
                end
            end
        end);
        
    for i = 1, 8 do 
        skillFrame = getglobal("TradeSkillSkill" .. i);
        reagentFrame = getglobal("TradeSkillReagent" ..i);
        
        --[[ Grab OnClick events ]]
        skillFrame:HookScript("OnEnter", 
            function(self)
                FeedbackUI_TradeSkillFrame_Update(self);
            end);
            
        skillFrame:HookScript("OnLeave",
            function(self)
                GameTooltip:Hide();
            end);
        
        skillFrame:RegisterForClicks("LeftButtonUp", "RightButtonUp");
        reagentFrame:RegisterForClicks("LeftButtonUp", "RightButtonUp");
        skillFrame:HookScript("OnClick",
            function(...)
                FeedbackUI_TradeSkillListClick(self, ...);
            end);
        reagentFrame:HookScript("OnClick",
            function(...)
                FeedbackUI_TradeSkillListClick(self, ...);
            end);
    end
    
    TradeSkillSkillIcon:RegisterForClicks("LeftButtonUp", "RightButtonUp");
end

function FeedbackUI_TradeSkillFrame_Update(self)
    if ( GetTradeSkillItemLink(self:GetID()) or GetTradeSkillRecipeLink(self:GetID()) ) then
        GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT", 0, self:GetHeight());
        GameTooltip:SetTradeSkillItem(self:GetID());
    end    
end
Attached Files
File Type: zip Blizzard_FeedbackUI-v2.48-30100-noArt.zip (91.7 KB, 1 views)
File Type: zip Blizzard_FeedbackUI-v2.48-30100-onlyArt.zip (70.9 KB, 0 views)

Last edited by Dridzt; 03-15-2009 at 02:14 PM.
Dridzt is offline   Reply With Quote
Old 03-15-2009   #8
Dridzt
Senior Member
 
Dridzt's Avatar
 
Join Date: Nov 2005
Posts: 328
Default Re: Hovertips on Profession UI

Here's a small addon to do just that with the default UI.

CraftUITips
Attached Files
File Type: zip CraftUITips-1.0-30000.zip (995 Bytes, 6 views)
Dridzt is offline   Reply With Quote
Old 03-15-2009   #9
Mikari
Full Member
 
Join Date: Sep 2008
Posts: 241
Default Re: Hovertips on Profession UI

Quote:
Originally Posted by Dridzt View Post
Here's a small addon to do just that with the default UI.
Thank you, I always wanted this feature since I noticed it in beta, I always thought it was a feature they were adding in 3.0, but it just ended up being a feature of the FeedbackUI.
Mikari is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:40 PM.