Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right click craft item to search it without typing the name #308

Open
sipertruk opened this issue Feb 19, 2021 · 0 comments
Open

Right click craft item to search it without typing the name #308

sipertruk opened this issue Feb 19, 2021 · 0 comments

Comments

@sipertruk
Copy link

What annoys me is we can search the reagents with a right click in the craft frame but not the crafted item itself, making it mandatory to type the name in the aux frame.
After some research it can be achieved with the following in crafting.lua :

    local function hook_skill_item(f)
        f:SetScript('OnMouseUp', function(self, button)
            if button == 'RightButton' then
                if aux.get_tab() then
                    aux.set_tab(1)
                    search_tab.set_filter(TradeSkillSkillName:GetText() .. '/exact')
                    search_tab.execute(nil, false)
                end
            end
        end)
    end

and then in function trade_skill_ui_loaded() :

        hook_skill_item(_G['TradeSkillSkillIcon'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant