diff --git a/Aux-Addon.toc b/Aux-Addon.toc
index fd902ab..e1334f2 100644
--- a/Aux-Addon.toc
+++ b/Aux-Addon.toc
@@ -4,6 +4,7 @@
## SavedVariablesPerCharacter: AUX_SELL_SHORTCUT, AUX_BUY_SHORTCUT, AUX_OPEN_SELL, AUX_OPEN_BUY, AUX_INSTANT_BUYOUT, AUX_AUCTION_DURATION
## SavedVariables: auxSellEntries
core.xml
+control.xml
sell.xml
buy.xml
diff --git a/buy.xml b/buy.xml
index 767ddad..6cdf815 100644
--- a/buy.xml
+++ b/buy.xml
@@ -477,32 +477,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/control.lua b/control.lua
index 2916c5a..81a3e2c 100644
--- a/control.lua
+++ b/control.lua
@@ -31,7 +31,7 @@ function Aux.control.event_listener(event, action) -- async!
function self:start(self)
Aux.util.set_add(event_listeners, listener)
- if not Aux.util.any(event_listeners, function(l) l.event == event end then
+ if not Aux.util.any(event_listeners, function(l) return l.event == event end) then
AuxControlFrame:RegisterEvent(event)
end
return self
@@ -39,7 +39,7 @@ function Aux.control.event_listener(event, action) -- async!
function self:stop(self)
Aux.util.set_remove(event_listeners, listener)
- if not Aux.util.any(event_listeners, function(l) l.event == event end then
+ if not Aux.util.any(event_listeners, function(l) return l.event == event end) then
AuxControlFrame:UnregisterEvent(event)
end
return self
@@ -78,7 +78,7 @@ function Aux.control.on_next_update(callback)
listener:set_action(function()
listener:stop()
callback()
- end
+ end)
listener:start()
end
@@ -104,7 +104,7 @@ function Aux.control.on_next_event(event, callback)
listener:set_action(function()
listener:stop()
ok = true
- end
+ end)
listener:start()
diff --git a/control.xml b/control.xml
index e69de29..778c193 100644
--- a/control.xml
+++ b/control.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ Aux.control.on_event()
+
+
+ Aux.control.on_update()
+
+
+
+
\ No newline at end of file
diff --git a/sell.xml b/sell.xml
index 4ee1bfd..6b40db8 100644
--- a/sell.xml
+++ b/sell.xml
@@ -395,6 +395,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file