class AnimationTimerSource
AnimationTimer › TimerBase › Managed
Part of Tools
All members, including inherited
AnimationTimer class. This timer is for animating float value.
usage:
class MyObject
{
ref AnimationTimer myAnim;
void MyObject()
{
myAnim = new AnimationTimer();
myAnim.Run(60, this, "Refresh");
}
void Refresh()
{
Print(myAnim.GetValue());
}
};Constructors 2
void AnimationTimer(int category = CALL_CATEGORY_SYSTEM)References TimerBase.OnInit()
void ~AnimationTimer()References TimerBase.SetRunning()
Members 8
private bool m_Activeprivate float m_ValueMethods 4
void Run(float targetVal, Managed obj, string updateFunc, string finishedFunc, float startingVal = 0, bool loop = false, float speed = 1.0, Param params = null, int category = CALL_CATEGORY_SYSTEM)References TimerBase.SetRunning(), m_Active, m_FinishedFunction
Show 8 more
, TimerBase.m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, TimerBase.m_time, m_UpdateFunction, and m_Valueoverride bool IsRunning()References m_Active
Referenced by UndergroundHandlerClient.CalculateLinePointFade()
override void Tick(float timeslice)Ticks the timer, is called by timer subsystem.
References Math.AbsFloat(), ScriptModule.CallFunction(), CGame.GameScript