mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 17:50:48 +00:00
skin: fix auctionhouse button placement
This commit is contained in:
@@ -93,4 +93,22 @@ pfUI.utils:CreateBackdrop(TicketStatusFrame)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
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("AUCTION_HOUSE_SHOW")
|
||||||
|
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)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user