removed the disabling of split/pickup while posting, caused more problems than it solved

This commit is contained in:
Manuel Simon Hirsig
2015-09-27 04:08:38 +02:00
parent 97e203a5bc
commit 0ee3ed6723
4 changed files with 9 additions and 18 deletions
+3 -6
View File
@@ -1,4 +1,6 @@
Aux.post = {}
Aux.post = {
orig = {}
}
local state
@@ -39,8 +41,6 @@ function Aux.post.stop()
local posted = state.posted
state = nil
PickupContainerItem = Aux.stack.orig.PickupContainerItem
SplitContainerItem = Aux.stack.orig.SplitContainerItem
if callback then
callback(posted)
@@ -67,9 +67,6 @@ function Aux.post.start(name, stack_size, duration, bid, buyout, count, callback
ClickAuctionSellItemButton()
ClearCursor()
PickupContainerItem = function() end
SplitContainerItem = function() end
state = {
name = name,
stack_size = stack_size,
+3 -10
View File
@@ -1,6 +1,4 @@
Aux.stack = {
orig = {},
}
Aux.stack = {}
local state
@@ -71,8 +69,8 @@ function move_item(from_slot, to_slot, amount)
state.processing = 3
ClearCursor()
Aux.stack.orig.SplitContainerItem(from_slot.bag, from_slot.bag_slot, amount)
Aux.stack.orig.PickupContainerItem(to_slot.bag, to_slot.bag_slot)
SplitContainerItem(from_slot.bag, from_slot.bag_slot, amount)
PickupContainerItem(to_slot.bag, to_slot.bag_slot)
ClearCursor()
end
end
@@ -155,8 +153,6 @@ function Aux.stack.stop()
local callback = state.callback
state = nil
PickupContainerItem = Aux.stack.orig.PickupContainerItem
SplitContainerItem = Aux.stack.orig.SplitContainerItem
if callback then
callback(slot)
@@ -167,9 +163,6 @@ end
function Aux.stack.start(name, size, callback)
Aux.stack.stop()
PickupContainerItem = function() end
SplitContainerItem = function() end
local slots = item_slots(name)
local target_slot = slots()
-2
View File
@@ -4,8 +4,6 @@
<Frame>
<Scripts>
<OnLoad>
Aux.stack.orig.PickupContainerItem = PickupContainerItem
Aux.stack.orig.SplitContainerItem = SplitContainerItem
this:RegisterEvent('ITEM_LOCK_CHANGED')
</OnLoad>
<OnEvent>
+3
View File
@@ -6,4 +6,7 @@ function Aux.util.iter(array)
local _, value = with_index
return value
end
end
function Aux.util.dummy()
end