![]() |
Dayz Explorer 1.28.160049
|
Simple class for fading Widgets. More...
Protected Member Functions | |
| void | Timer (int category=CALL_CATEGORY_SYSTEM) |
| void | Run (float duration, Managed obj, string fn_name, Param params=NULL, bool loop=false) |
| Starts timer. | |
| void | OnTimer () |
| override void | Stop () |
Protected Attributes | |
| Managed | m_target |
| string | m_function |
| ref Param | m_params |
Simple class for fading Widgets.
Timer class. Use when you want call function after some time, or repeatedly in time intervals. Call is not executed after the Timer object is deleted.
usage:
|
protected |
Starts timer.
| duration | function is executed after this time (in seconds). |
| obj | target object on which function will be executed |
| fn_name | name of function (on object "obj") which will be executed |
| params | function arguments see Param for usage, default NULL (no arguments) |
| loop | when true, timer is looped endlessly and function is executed after every loop. |
|
protected |