work on manage tab

This commit is contained in:
Manuel Simon Hirsig
2015-10-28 09:10:17 +01:00
parent f091153a8c
commit 49a1b6b089
3 changed files with 27 additions and 28 deletions
+24 -24
View File
@@ -160,33 +160,33 @@ end
function Aux.on_tab_click(index)
Aux.post.stop()
Aux.stack.stop()
Aux.scan.abort()
Aux.scan.abort(function()
Aux.buy.on_close()
Aux.sell.on_close()
Aux.manage_frame.on_close()
Aux.history.on_close()
Aux.buy.on_close()
Aux.sell.on_close()
Aux.manage_frame.on_close()
Aux.history.on_close()
for i=1,4 do
getglobal('AuxTab'..i):SetAlpha(i == index and 1 or 0.5)
end
for i=1,4 do
getglobal('AuxTab'..i):SetAlpha(i == index and 1 or 0.5)
end
AuxSellFrame:Hide()
AuxBuyFrame:Hide()
AuxHistoryFrame:Hide()
AuxSellFrame:Hide()
AuxBuyFrame:Hide()
AuxHistoryFrame:Hide()
if index == 1 then
AuxBuyFrame:Show()
Aux.buy.on_open()
elseif index == 2 then
AuxSellFrame:Show()
Aux.sell.on_open()
elseif index == 3 then
Aux.manage_frame.on_open()
elseif index == 4 then
AuxHistoryFrame:Show()
Aux.history.on_open()
end
if index == 1 then
AuxBuyFrame:Show()
Aux.buy.on_open()
elseif index == 2 then
AuxSellFrame:Show()
Aux.sell.on_open()
elseif index == 3 then
Aux.manage_frame.on_open()
elseif index == 4 then
AuxHistoryFrame:Show()
Aux.history.on_open()
end
end)
end
function Aux_Round(v)
+2 -2
View File
@@ -331,10 +331,10 @@ local auction_listing_config = {
}
function on_open()
-- update_bid_records(function()
update_bid_records(function()
update_auction_records(function()
end)
-- end)
end)
end
function on_close()
+1 -2
View File
@@ -46,7 +46,6 @@ end
function wait_for_results(k)
local ok
ok = true
if state.job.type == 'bidder' then
Aux.control.on_next_event('AUCTION_BIDDER_LIST_UPDATE', function()
ok = true
@@ -140,7 +139,6 @@ end
function submit_query(k)
if state.page then
controller().wait(function() return state.job.type ~= 'list' or CanSendAuctionQuery() end, function()
snipe.log('kek')
if state.job.on_submit_query then
state.job.on_submit_query()
end
@@ -155,6 +153,7 @@ function submit_query(k)
end)
if state.job.type == 'bidder' then
GetBidderAuctionItems(state.page)
snipe.log('kek'..state.page)
elseif state.job.type == 'owner' then
GetOwnerAuctionItems(state.page)
else