This commit is contained in:
Simon Hirsig
2017-11-01 15:10:02 +01:00
parent 8823b34904
commit ac49811f27
4 changed files with 26 additions and 8 deletions
+14 -8
View File
@@ -218,14 +218,20 @@ function AUCTION_HOUSE_SHOW()
set_tab(1) set_tab(1)
end end
function AUCTION_HOUSE_CLOSED() do
bids_loaded = false local handlers = {}
current_owner_page = nil function set_handler.CLOSE(f)
post.stop() tinsert(handlers, f)
stack.stop() end
scan.abort() function AUCTION_HOUSE_CLOSED()
set_tab() bids_loaded = false
AuxFrame:Hide() current_owner_page = nil
for _, handler in handlers do
handler()
end
set_tab()
AuxFrame:Hide()
end
end end
function AUCTION_BIDDER_LIST_UPDATE() function AUCTION_BIDDER_LIST_UPDATE()
+4
View File
@@ -7,6 +7,10 @@ local stack = require 'aux.core.stack'
local state local state
function handle.CLOSE()
stop()
end
function process() function process()
if state.posted < state.count then if state.posted < state.count then
+4
View File
@@ -9,6 +9,10 @@ local history = require 'aux.core.history'
local PAGE_SIZE = 50 local PAGE_SIZE = 50
function handle.CLOSE()
abort()
end
do do
local scan_states = {} local scan_states = {}
+4
View File
@@ -8,6 +8,10 @@ local info = require 'aux.util.info'
local state local state
function handle.CLOSE()
stop()
end
function stack_size(slot) function stack_size(slot)
local container_item_info = T.temp-info.container_item(unpack(slot)) local container_item_info = T.temp-info.container_item(unpack(slot))
return container_item_info and container_item_info.count or 0 return container_item_info and container_item_info.count or 0