Class:apiName(parameters) | Return | Description |
MiniTimer:isExist(id:int) | result:bool | Determine whether the timer exists |
MiniTimer:createTimer(name:string) | ErrorCode.OK id:int | Add a timer |
MiniTimer:deleteTimer(id:int) | ErrorCode.OK | Delete the timer |
MiniTimer:startBackwardTimer(id:int, interval:int, repeated:bool) | ErrorCode.OK | Start the countdown timer |
MiniTimer:startForwardTimer(id:int) | ErrorCode.OK | Start the forward timing timer |
MiniTimer:pauseTimer(id:int) | ErrorCode.OK | Pause the timer |
MiniTimer:resumeTimer(id:int) | ErrorCode.OK | Restore the timer |
MiniTimer:stopTimer(id:int) | ErrorCode.OK | Stop the timer |
MiniTimer:changeTimerTime(id:int, time:int) | ErrorCode.OK | Change the timer timing |
MiniTimer:getTimerTime(id:int) | ErrorCode.OK second:int | Get the timer time |
MiniTimer:showTimerWnd(playerids:table, timerid:number, title:string) | code:number | Display the timer window (replace the display if other timers are already displayed) |
MiniTimer:hideTimerWnd(playerids:table, timerid:number, title:string) | code:number | Hide the timer window |