pausing a mod
is it possible to pause the output of a mod for say 5 seconds
I am trying to output multiple lines of text to the windows & I want to have enough time to read it before the next line overwrites it |
Quote:
(1) Go into a while loop, checking when 5 seconds have passed with time(), and then continue. Pros: Very easy to do Cons: Locks up the game for 5 seconds :p (2) Use OnUpdate to calculate when 5 seconds have passed, and then continue by calling a function which does the rest of what you need to do. Pros: Doesn't lock up the game; the "preferred" way to do it Cons: Not the easiest thing to understand for newer programmers http://www.wowwiki.com/HOWTO:_Use_OnUpdate_Correctly |
http://www.wowinterface.com/download...7-Cadence.html looks what you want.
|
Quote:
You would need to queue the messages (you probably knew that already). OnUpdate would be the prefered way as using a while true or until false loop would just be stupid and annoying, why Shirik even offered it as an option is beyond me. Anywho, Code:
-- assumes the following: |
All times are GMT -6. The time now is 05:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI