Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
TimerBase Class Reference

Simple class for fading Widgets. More...

Inheritance diagram for TimerBase:
AnimationTimer

Detailed Description

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:

class MyObject
{
ref Timer myTimer2;
ref Timer myTimer3;
void MyObject()
{
myTimer1 = new Timer();
myTimer1.Run(10, this, "Refresh"); // calls "Refresh" on "this" after 10 seconds
myTimer2 = new Timer();
myTimer2.Run(10, this, "Refresh", NULL, true); // calls "Refresh" on "this" every 10 seconds, until Pause or Stop is called
myTimer3 = new Timer();
myTimer3.Run(15, this, "Show", new Param1<bool>(false)); // calls "Show" on "this" with one bool argument after 15 seconds
}
void Refresh();
void Show(bool visible);
}

Definition at line 429 of file tools.c.


The documentation for this class was generated from the following file:
Show
proto native void Show(bool show, bool immedUpdate=true)
Refresh
void Refresh()
Definition: sizetochild.c:108
myTimer1
ref Timer myTimer1
Definition: pluginitemdiagnostic.c:46
Timer
Definition: dayzplayerimplement.c:62