![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Simple class for fading Widgets. More...
Protected Member Functions | |
| void | OnTimer () |
| void | Run (float duration, Managed obj, string fn_name, Param params=NULL, bool loop=false) |
| Starts timer. | |
| override void | Stop () |
| void | Timer (int category=CALL_CATEGORY_SYSTEM) |
Protected Attributes | |
| string | m_function |
| ref Param | m_params |
| Managed | m_target |
Private Member Functions | |
| void | FadeIn (Widget w, float time, bool continue_=false) |
| Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0). | |
| void | FadeOut (Widget w, float time, bool continue_=false) |
| Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0). | |
| void | OnTimer () |
| void | OnUpdate () |
| void | WidgetFadeTimer () |
Private Attributes | |
| float | m_alpha |
| bool | m_fadeIn |
| Widget | m_widget |
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:
Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0).
| w | widget which will be faded |
| time | duration of effect |
| continue | - if True continue from current alpha value, otherwise always begin from 0.0 alpha |
Definition at line 445 of file tools.c.
References m_alpha, m_fadeIn, m_time, m_widget, and OnStart().
Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0).
| w | widget which will be faded |
| time | duration of effect |
| continue | - if True continue from current alpha value, otherwise always begin from 1.0 alpha |
Definition at line 480 of file tools.c.
References m_alpha, m_fadeIn, m_time, m_widget, and OnStart().
|
inlineprotected |
|
inlineprivate |
|
inlineprivate |
Definition at line 525 of file tools.c.
References Math::Clamp(), Math::Lerp(), m_alpha, m_duration, m_fadeIn, m_time, and m_widget.
Referenced by Tick().
|
inlineprotected |
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. |
Definition at line 595 of file tools.c.
References m_function, m_params, m_target, and OnStart().
|
inlineprotected |
Definition at line 582 of file tools.c.
References CALL_CATEGORY_SYSTEM, and OnInit().
|
inlineprivate |
Definition at line 433 of file tools.c.
References CALL_CATEGORY_GUI, m_fadeIn, and OnInit().
|
private |
Definition at line 431 of file tools.c.
Referenced by FadeIn(), FadeOut(), and OnUpdate().
|
private |
Definition at line 430 of file tools.c.
Referenced by FadeIn(), FadeOut(), OnTimer(), OnUpdate(), and WidgetFadeTimer().
|
protected |
|
protected |
|
protected |
|
private |