lyn-wow / LynUI

World of Warcraft User Interface for Legion
http://www.wowinterface.com/downloads/info24059-LynUI.html
4 stars 0 forks source link

Custom Game Menu fucked up HonorQueue #6

Closed mtthsw closed 8 years ago

mtthsw commented 8 years ago
hooksecurefunc('UIDropDownMenu_AddButton', function(info, level)
    if not level then level = 1 end
    for j = 1, _G.UIDROPDOWNMENU_MAXBUTTONS do
        UIDROPDOWNMENU_BUTTON_HEIGHT = info.isLynMenu and 26 or 16
        local button    = _G['DropDownList'..level..'Button'..j]
        local icon      = _G['DropDownList'..level..'Button'..j..'Icon']
        button:SetHeight(UIDROPDOWNMENU_BUTTON_HEIGHT)
        if not button.iconOnly and info.isLynMenu then
            icon:SetSize(24, 24)
        end
    end
end)

This code breaks the following code by Blizzard