refactoring
This commit is contained in:
@@ -18,9 +18,7 @@ do
|
||||
frame:SetMovable(true)
|
||||
frame:EnableMouse(true)
|
||||
frame:SetClampedToScreen(true)
|
||||
frame:RegisterForDrag('LeftButton')
|
||||
frame:SetScript('OnDragStart', function() this:StartMoving() end)
|
||||
frame:SetScript('OnDragStop', function() this:StopMovingOrSizing() end)
|
||||
frame:CreateTitleRegion():SetAllPoints()
|
||||
frame:SetScript('OnShow', function() PlaySound('AuctionWindowOpen') end)
|
||||
frame:SetScript('OnHide', function() PlaySound('AuctionWindowClose'); CloseAuctionHouse() end)
|
||||
frame.content = CreateFrame('Frame', nil, frame)
|
||||
|
||||
Reference in New Issue
Block a user