From 49a1b6b089f06212c00592a853f25d4716a957ab Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 28 Oct 2015 09:10:17 +0100 Subject: [PATCH] work on manage tab --- core.lua | 48 ++++++++++++++++++++++++------------------------ manage_frame.lua | 4 ++-- scan.lua | 3 +-- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/core.lua b/core.lua index 767f351..a5caf38 100644 --- a/core.lua +++ b/core.lua @@ -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) diff --git a/manage_frame.lua b/manage_frame.lua index d6f4dc6..1acde77 100644 --- a/manage_frame.lua +++ b/manage_frame.lua @@ -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() diff --git a/scan.lua b/scan.lua index fe22953..503d5bb 100644 --- a/scan.lua +++ b/scan.lua @@ -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