hack: dpsmate overwrites all dropdowns

This commit is contained in:
shagu
2016-08-26 13:36:50 +02:00
parent 3ef7f14ab4
commit 4e6b7edf12
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
-- DPSMate overrides fontstyle and size of every dropdown menu
pfUIhookShowMenu = UnitPopup_ShowMenu
function UnitPopup_ShowMenu(dropdownMenu, which, unit, name, userData)
pfUIhookShowMenu(dropdownMenu, which, unit, name, userData)
for i=1, 20 do
getglobal("DropDownList1Button"..i.."NormalText"):SetFont(STANDARD_TEXT_FONT, 10)
end
end
pfUIhookUIDropDownMenu_Initialize = UIDropDownMenu_Initialize
function UIDropDownMenu_Initialize(frame, initFunction, displayMode, level)
pfUIhookUIDropDownMenu_Initialize(frame, initFunction, displayMode, level)
for i=1, 20 do
getglobal("DropDownList1Button"..i.."NormalText"):SetFont(STANDARD_TEXT_FONT, 10)
end
end