Simple class for fading Widgets. More...
Private Member Functions | |
void | WidgetFadeTimer () |
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) | |
override private void | OnTimer () |
override private void | OnUpdate () |
void | Timer (int category=CALL_CATEGORY_SYSTEM) |
void | Run (float duration, Managed obj, string fn_name, Param params=NULL, bool loop=false) |
Starts timer. | |
override protected void | OnTimer () |
override void | Stop () |
Private Attributes | |
private Widget | m_widget |
bool | m_fadeIn |
float | m_alpha |
protected Managed | m_target |
protected string | m_function |
protected 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:
|
inlineprivate |
Referenced by Tick().
|
inlineprivate |
References ScriptModule::CallFunction(), ScriptModule::CallFunctionParams(), CGame::GameScript, and GetGame().
|
inlineprivate |
References Math::Clamp(), Math::Lerp(), m_duration, and m_time.
Referenced by Tick().
|
inlineprivate |
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. |
References OnStart().
|
inlineprivate |
|
inlineprivate |
References OnInit().
|
inlineprivate |
References CALL_CATEGORY_GUI, and OnInit().
|
private |
|
private |
|
private |
|
private |
|
private |