Go to Page... |
|
Thread Tools | Display Modes |
|
02-10-12, 12:21 PM | #3 |
I'm not able to post on Rift forums (Rift Lite, etc. - willing to change that very soon).
Code:
local queueStatus = false local function QueueStatus() queueStatus = Inspect.Queue.Status("global") if queueStatus then return end -- global queue is still backlogged, var is true so exit out queueStatus = false end table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"}) local commandOne = false local commandTwo = false local commandThree = false function MyAddon:DoCommands() if not commandOne and not queueStatus then command.blah1 commandOne = true elseif not commandTwo and not queueStatus then command.blah2 commandTwo = true elseif not commandThree and not queueStatus then command.blah3 commandThree = true end commandOne, commandTwo, commandThree = false, false, false end Code:
table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"}) What I'm willing to do is, wait until a Command.Item.Move() is complete, then run 2 functions. Ideas how I can do that ? Thanks in advance! |
|
02-10-12, 02:27 PM | #4 | |
Quote:
http://forums.riftgame.com/beta-addo...low-error.html I ended up combining both a "Queue" and a "thread" manager. |
||
02-11-12, 03:51 AM | #5 |
Thank you!
With the info in the post you provided me, I created the LibCoroutine. It's very early and the code can be considered Alpha quality. It's included with zBag (Alpha4), in case you want to take a look on how I implemented it. Suggestions / improvements are welcome |
|
02-12-12, 07:08 AM | #6 | |
Quote:
I'll have a look at your library. Not sure I'll implement it for my add-on since I've already done this part, but maybe for my next project |
||
02-12-12, 12:41 PM | #7 | |
Quote:
I've uploaded it here: http://www.riftui.com/downloads/info...Coroutine.html It doesn't support Queue, like you used on your project ( I still need to study that part ), but in case you need it in your next project and want to improve the library, you're more than welcome to do so |
||
Riftui » AddOns, Layouts and Macros » Help/Support » How do you "wait" without crashing the game client. |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|