skin: add AuctionFrame

This commit is contained in:
Artur Morozov
2019-03-31 14:59:21 +02:00
committed by shagu
parent 5d4693c1b6
commit 92561da9b5
3 changed files with 222 additions and 16 deletions
-16
View File
@@ -178,22 +178,6 @@ pfUI:RegisterModule("skin", function ()
end)
end)
-- due to the fontsize, the auctionhouse dropdown menu is misplaced.
-- This hackfix rearranges it, by setting the width of it, as soon as
-- the auctionhouse window is ready to get hooked.
local pfAuctionHouseFix = CreateFrame("Frame", nil)
pfAuctionHouseFix:RegisterEvent("ADDON_LOADED")
pfAuctionHouseFix:SetScript("OnEvent", function ()
if not pfAuctionFrame_OnShow and AuctionFrame_OnShow then
pfAuctionFrame_OnShow = AuctionFrame_OnShow
function AuctionFrame_OnShow ()
pfAuctionFrame_OnShow()
BrowseLevelText:SetWidth(70)
end
pfAuctionHouseFix:UnregisterAllEvents()
end
end)
if C.global.errors_limit == "1" then
UIErrorsFrame:SetHeight(25)
end