refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-06 10:09:35 +02:00
parent 3e2814a752
commit b5750fc294
6 changed files with 46 additions and 73 deletions
+2 -6
View File
@@ -33,19 +33,15 @@ function create_frames()
status_bar:set_text('')
end
do
local btn = gui.button(frame, 16)
local btn = gui.button(frame)
btn:SetPoint('TOPLEFT', status_bar, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Cancel')
btn:Disable()
cancel_button = btn
end
do
local btn = gui.button(frame, 16)
local btn = gui.button(frame)
btn:SetPoint('TOPLEFT', cancel_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Refresh')
btn:SetScript('OnClick', function()
scan_auctions()