refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-28 03:00:16 +02:00
parent f42e54a4fc
commit c07c3dad6f
16 changed files with 92 additions and 92 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ do
frame:SetMovable(true)
frame:EnableMouse(true)
frame:SetClampedToScreen(true)
frame:RegisterForDrag 'LeftButton'
frame:RegisterForDrag('LeftButton')
frame:SetScript('OnDragStart', function() this:StartMoving() end)
frame:SetScript('OnDragStop', function() this:StopMovingOrSizing() end)
frame:SetScript('OnShow', function() PlaySound 'AuctionWindowOpen' end)
@@ -34,7 +34,7 @@ do
local btn = gui.button(aux_frame, 16)
btn:SetPoint('BOTTOMRIGHT', -6, 6)
gui.set_size(btn, 65, 24)
btn:SetText 'Close'
btn:SetText('Close')
btn:SetScript('OnClick', L(aux_frame.Hide, aux_frame))
public.close_button = btn
end
@@ -42,7 +42,7 @@ do
local btn = gui.button(aux_frame, 16)
btn:SetPoint('RIGHT', close_button, 'LEFT' , -5, 0)
gui.set_size(btn, 65, 24)
btn:SetText 'Default UI'
btn:SetText('Default UI')
btn:SetScript('OnClick',function()
if AuctionFrame:IsVisible() then HideUIPanel(AuctionFrame) else ShowUIPanel(AuctionFrame) end
end)