refactoring

This commit is contained in:
Manuel Simon Hirsig
2017-11-12 05:40:48 +01:00
parent cdfbba10ec
commit d1b0ae4f9d
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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)
+1 -1
View File
@@ -40,7 +40,7 @@ M.index = T.vararg-function(arg)
return t
end
M.huge = 1.8 * 10 ^ 308
M.huge = 1/0
function M.modified()
return IsShiftKeyDown() or IsControlKeyDown() or IsAltKeyDown()