Plugin : TimeLine

Author:Rex.Rainbow

Download

Properties

Game time

  • Enable to update timeline with game time, or real-time.
    • Options : ["No","Yes","Real-time"]

Actions

Setup

Action:Setup callback

  • Setup callback.
    • Callback ( Combo ) : Callback object.
      • Options : ["Official function","Rex function2"]

TimeLine

Action:Clean

  • Clean timeline.

Action:Pause timeline

  • Pause timeline, it will pause all timers registed on it.

Action:Resume timeline

  • Resume timeline, it will resume all timers registed on it.

TimeLine - manual

Action:Push timeline forward

  • Push timeline forward with delta-time.
    • Time ( number ) : Delta-time in seconds

Action:Push timeline to

  • Push timeline to specific time. It could not turn back the timeline.
    • Time ( number ) : Time in seconds

Timer

Action:Delete

  • Delete timer.
    • Name ( string ) : Timer's name.

Action:Create timer

  • Create timer.
    • Timer ( string ) : Timer's name
    • Name ( string ) : The name of the callback.
    • Parameter {n} ( variadic ) : A parameter to pass for the callback, which can be accessed with Function.Param({n}).

Action:Set parameters

  • Set parameters passed into callback.
    • Name ( string ) : Timer's name.
    • Parameter {n} ( variadic ) : A parameter to pass for the callback, which can be accessed with Function.Param({n}).

Timer: Control

Action:Start

  • Start timer.
    • Name ( string ) : Timer's name.
    • Time ( number ) : Time-out in seconds
    • Repeat ( number ) : Repeat count, 0 is infinity.

Action:Pause

  • Pause timer.
    • Name ( string ) : Timer's name.

Action:Resume

  • Resume timer.
    • Name ( string ) : Timer's name.

Action:Stop

  • Stop timer.
    • Name ( string ) : Timer's name.

Timer: Triggered timer

Action:Start triggered timer

  • Start triggered timer.
    • Time ( number ) : Time-out in seconds

Action:Set parameters

  • Set triggered timer's parameters passed into callback.
    • Parameter {n} ( variadic ) : A parameter to pass for the callback, which can be accessed with Function.Param({n}).

Action:Delete triggered timer

  • Delete triggered timer.

Expressions

TimeLine

Expression:TimeLineTime

  • Get current time of timeline.

Timer

Expression:TimerRemainder

  • Get remainder time of timer.
    • Name ( string ) : Timer's name.

Expression:TimerElapsed

  • Get elapsed time of timer.
    • Name ( string ) : Timer's name.

Expression:TimerRemainderPercent

  • Get remainder time percentage of timer.
    • Name ( string ) : Timer's name.

Expression:TimerElapsedPercent

  • Get elapsed time percentage of timer.
    • Name ( string ) : Timer's name.

Expression:TriggeredTimerName

  • Get triggered timer's name.

Expression:TimerDelayTime

  • Get delay time of timer.
    • Name ( string ) : Timer's name.

Conditions

Timer

Condition:Is timer running

  • Return true if timer is running.
    • Name ( number or string ) : Timer's name