refactoring
This commit is contained in:
@@ -17,8 +17,8 @@ do
|
||||
frame:RegisterForDrag('LeftButton')
|
||||
frame:SetScript('OnDragStart', function() this:StartMoving() end)
|
||||
frame:SetScript('OnDragStop', function() this:StopMovingOrSizing() end)
|
||||
frame:SetScript('OnShow', function() PlaySound 'AuctionWindowOpen' end)
|
||||
frame:SetScript('OnHide', function() PlaySound 'AuctionWindowClose' CloseAuctionHouse() end)
|
||||
frame:SetScript('OnShow', function() PlaySound('AuctionWindowOpen') end)
|
||||
frame:SetScript('OnHide', function() PlaySound('AuctionWindowClose') CloseAuctionHouse() end)
|
||||
frame.content = CreateFrame('Frame', nil, frame)
|
||||
frame.content:SetPoint('TOPLEFT', 4, -80)
|
||||
frame.content:SetPoint('BOTTOMRIGHT', -4, 35)
|
||||
@@ -31,18 +31,18 @@ do
|
||||
function public.tab.set(id) tabs:select(id) end
|
||||
end
|
||||
do
|
||||
local btn = gui.button(aux_frame, 16)
|
||||
btn:SetPoint('BOTTOMRIGHT', -6, 6)
|
||||
gui.set_size(btn, 65, 24)
|
||||
local btn = gui.button(aux_frame)
|
||||
btn:SetPoint('BOTTOMRIGHT', -5, 5)
|
||||
gui.set_size(btn, 60, 24)
|
||||
btn:SetText('Close')
|
||||
btn:SetScript('OnClick', L(aux_frame.Hide, aux_frame))
|
||||
public.close_button = btn
|
||||
end
|
||||
do
|
||||
local btn = gui.button(aux_frame, 16)
|
||||
local btn = gui.button(aux_frame, gui.font_size.small)
|
||||
btn:SetPoint('RIGHT', close_button, 'LEFT' , -5, 0)
|
||||
gui.set_size(btn, 65, 24)
|
||||
btn:SetText('Default UI')
|
||||
gui.set_size(btn, 60, 24)
|
||||
btn:SetText(color.blizzard'Blizzard UI')
|
||||
btn:SetScript('OnClick',function()
|
||||
if AuctionFrame:IsVisible() then HideUIPanel(AuctionFrame) else ShowUIPanel(AuctionFrame) end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user