Mercurial > wow > askmrrobot
comparison wait.lua @ 11:ece9167c0d1c v1.2.14.0
Localization support, combat log features (wipe command, aura/pet tracking, and realm detection).
author | yellowfive |
---|---|
date | Thu, 10 Jul 2014 12:24:59 -0700 |
parents | 880a7273759f |
children |
comparison
equal
deleted
inserted
replaced
10:ef8b45e96b08 | 11:ece9167c0d1c |
---|---|
3 local waitTable = {}; | 3 local waitTable = {}; |
4 local waitFrame = nil; | 4 local waitFrame = nil; |
5 | 5 |
6 function AskMrRobot.wait(delay, func, ...) | 6 function AskMrRobot.wait(delay, func, ...) |
7 if(type(delay)~="number" or type(func)~="function") then | 7 if(type(delay)~="number" or type(func)~="function") then |
8 print("Bad Arguments to amr__wait"); | 8 print(AMR_WAIT_BAD_ARGUMENTS); |
9 return false; | 9 return false; |
10 end | 10 end |
11 if(waitFrame == nil) then | 11 if(waitFrame == nil) then |
12 waitFrame = CreateFrame("Frame","WaitFrame", UIParent); | 12 waitFrame = CreateFrame("Frame","WaitFrame", UIParent); |
13 waitFrame:SetScript("OnUpdate",function (self,elapse) | 13 waitFrame:SetScript("OnUpdate",function (self,elapse) |