refactoring
This commit is contained in:
@@ -18,9 +18,7 @@ do
|
|||||||
frame:SetMovable(true)
|
frame:SetMovable(true)
|
||||||
frame:EnableMouse(true)
|
frame:EnableMouse(true)
|
||||||
frame:SetClampedToScreen(true)
|
frame:SetClampedToScreen(true)
|
||||||
frame:RegisterForDrag('LeftButton')
|
frame:CreateTitleRegion():SetAllPoints()
|
||||||
frame:SetScript('OnDragStart', function() this:StartMoving() end)
|
|
||||||
frame:SetScript('OnDragStop', function() this:StopMovingOrSizing() end)
|
|
||||||
frame:SetScript('OnShow', function() PlaySound('AuctionWindowOpen') end)
|
frame:SetScript('OnShow', function() PlaySound('AuctionWindowOpen') end)
|
||||||
frame:SetScript('OnHide', function() PlaySound('AuctionWindowClose'); CloseAuctionHouse() end)
|
frame:SetScript('OnHide', function() PlaySound('AuctionWindowClose'); CloseAuctionHouse() end)
|
||||||
frame.content = CreateFrame('Frame', nil, frame)
|
frame.content = CreateFrame('Frame', nil, frame)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ M.index = T.vararg-function(arg)
|
|||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
M.huge = 1.8 * 10 ^ 308
|
M.huge = 1/0
|
||||||
|
|
||||||
function M.modified()
|
function M.modified()
|
||||||
return IsShiftKeyDown() or IsControlKeyDown() or IsAltKeyDown()
|
return IsShiftKeyDown() or IsControlKeyDown() or IsAltKeyDown()
|
||||||
|
|||||||
Reference in New Issue
Block a user