~~NOTOC~~ ====== MiniTimer Class ====== Class For MiniTimer Interface [[developer_center:developer_editor:script|Return To Previous Page]] ------ ===== Events ===== ^ Event name ^ Parameters ^ Description ^ | minitimer.change | timerid, timername, timertime | Triggers when a specified timer changes. Parameters: Timer ID, Timer Name, Timer Time | ===== API list ===== ^ 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 |