Tools
Helpful functions & classes
Classes
Typedefs
TStringMap | map<string, string> |
Functions
void ~AnimationTimer() | more… | |
void ~multiMap() | more… | |
void ~TimerBase() | more… | |
void ~TimerQueue() | more… | |
void Animate(float val, float speed = 1.0) | Starts animate value until value reaches target value. | more… |
void AnimateLoop(float speed = 1.0) | Starts infinite animation loop <-1,1>. Based on sinus transition. | more… |
void AnimationTimer(int category = CALL_CATEGORY_SYSTEM) | more… | |
void Call(Class obj, string fn_name, Param params = NULL) [1/2] | Creates new call request, add it on queue and execute during frame update (depends on call category) | more… |
void Call() [2/2] | more… | |
void CallParams(Param params) | more… | |
void CallQueue() | ||
void CallQueueContext(Class target, string fn, Param params) | ||
void Clear() | more… | |
void Continue() | Timer continue when it was paused. | more… |
int Count() | more… | |
bool Deserializer(Serializer ctx) [1/11] | ||
override bool Deserializer(Serializer ctx) [2/11] | more… | |
override bool Deserializer(Serializer ctx) [3/11] | more… | |
override bool Deserializer(Serializer ctx) [4/11] | more… | |
override bool Deserializer(Serializer ctx) [5/11] | more… | |
override bool Deserializer(Serializer ctx) [6/11] | more… | |
override bool Deserializer(Serializer ctx) [7/11] | more… | |
override bool Deserializer(Serializer ctx) [8/11] | more… | |
override bool Deserializer(Serializer ctx) [9/11] | more… | |
override bool Deserializer(Serializer ctx) [10/11] | more… | |
override bool Deserializer(Serializer ctx) [11/11] | more… | |
void DragQueue() | ||
void FadeIn(Widget w, float time, bool continue_ = false) | Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0) | more… |
void FadeOut(Widget w, float time, bool continue_ = false) | Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0) | more… |
array<V> Get(K key) | more… | |
array<V> GetByIndex(int index) | more… | |
float GetDuration() | ||
K GetKeyByIndex(int index) | more… | |
bool GetProfileValueBool(string name, bool def = false) | Return value from profile variable, if variable with given name is not present, default value is returned | more… |
float GetRemaining() | ||
float GetRunTime() | ||
float GetTargetValue() | Returns target value. While AnimateLoop returns angle of cycle in radians. | |
int GetTemperatureColor(int temperature) | more… | |
float GetTime() | ||
float GetValue() [1/2] | Returns actual animated value. | |
float GetValue() [2/2] | Returns actual animated value. | |
bool HasKey(K key) | more… | |
void Insert(K key, V value) | more… | |
void Invalidate() | ||
override bool IsRunning() [1/3] | ||
bool IsRunning() [2/3] | ||
bool IsRunning() [3/3] | more… | |
bool IsValid() | ||
protected void OnInit(int category) | more… | |
protected void OnStart(float duration, bool loop) | more… | |
override protected void OnTimer() [1/3] | more… | |
protected void OnTimer() [2/3] | ||
override private void OnTimer() [3/3] | more… | |
void OnTimerQueueDestoryed() | System function, don't call. | |
protected void OnUpdate() [1/2] | ||
override private void OnUpdate() [2/2] | more… | |
void Param1(T1 p1) | ||
void Param10(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10) | ||
void Param2(T1 p1, T2 p2) | ||
void Param3(T1 p1, T2 p2, T3 p3) | ||
void Param4(T1 p1, T2 p2, T3 p3, T4 p4) | ||
void Param5(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) | ||
void Param6(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6) | ||
void Param7(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7) | ||
void Param8(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8) | ||
void Param9(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9) | ||
void Pause() | Pause Timer, internal counter is not restarted, so timer can continue later. Can be unpaused via Continue. | more… |
void Remove(K key) | more… | |
void RemoveByIndex(int index) | more… | |
void RemoveCalls(Class obj) | Removes all queued calls for object (call this function when object is going to be deleted) | more… |
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) [1/2] | more… | |
void Run(float duration, Managed obj, string fn_name, Param params = NULL, bool loop = false) [2/2] | Starts timer. | more… |
bool Serialize(Serializer ctx) [1/11] | ||
override bool Serialize(Serializer ctx) [2/11] | more… | |
override bool Serialize(Serializer ctx) [3/11] | more… | |
override bool Serialize(Serializer ctx) [4/11] | more… | |
override bool Serialize(Serializer ctx) [5/11] | more… | |
override bool Serialize(Serializer ctx) [6/11] | more… | |
override bool Serialize(Serializer ctx) [7/11] | more… | |
override bool Serialize(Serializer ctx) [8/11] | more… | |
override bool Serialize(Serializer ctx) [9/11] | more… | |
override bool Serialize(Serializer ctx) [10/11] | more… | |
override bool Serialize(Serializer ctx) [11/11] | more… | |
void SetProfileValueBool(string name, bool value) | Writes bool variable to profile, after write don't forget to call CGame::SaveProfile() to save profile to storage! | more… |
protected void SetRunning(bool running) | more… | |
void SetValue(float val) | Sets both value and target value. | |
override void Stop() [1/2] | more… | |
void Stop() [2/2] | Stop Timer and restart internal counter. Cannot be unpaused, must be started again. | more… |
override void Tick(float timeslice) [1/6] | Ticks the timer, is called by timer subsystem. | more… |
void Tick(float timeslice) [2/6] | Ticks the timer, is called by timer subsystem. | more… |
void Tick() [3/6] | System function, don't call it | more… |
override void Tick() [4/6] | System function, don't call it | more… |
void Tick(float timeslice) [5/6] | System function, don't call. | more… |
void Tick(float timeslice) [6/6] | more… | |
void Timer(int category = CALL_CATEGORY_SYSTEM) | more… | |
void TimerQueue() | ||
void WidgetFadeTimer() | more… |
Variables
const int CALL_CATEGORY_COUNT = 3 | ||
const int CALL_CATEGORY_GAMEPLAY = 2 | Runs unless ingame menu is opened | |
const int CALL_CATEGORY_GUI = 1 | Runs always (on client) | |
const int CALL_CATEGORY_SYSTEM = 0 | Runs always | |
private bool m_active = false | ||
private bool m_Active | ||
float m_alpha | ||
protected float m_duration | ||
bool m_fadeIn | ||
protected string m_FinishedFunction | ||
string m_function [1/2] | ||
protected string m_function [2/2] | ||
private ref array<K> m_keys | ||
private bool m_loop = false [1/2] | ||
protected bool m_loop [2/2] | ||
private ref Param3<int, int, bool> m_mouse_params | x,y, is_holding_mb | |
ref Param m_params [1/2] | ||
protected ref Param m_params [2/2] | ||
protected ref Param m_Params | ||
private bool m_processing [1/2] | ||
private bool m_processing [2/2] | ||
protected bool m_running | ||
protected float m_RunTime | ||
Class m_target [1/2] | ||
protected Managed m_target [2/2] | ||
private float m_target_value = 0 | ||
protected Managed m_TargetObject | ||
private float m_TargetValue | ||
private float m_TargetValueOriginal | ||
private float m_time = 0 [1/2] | ||
protected float m_time [2/2] | ||
protected array<TimerBase> m_timerQueue | ||
protected string m_UpdateFunction | ||
bool m_valid | ||
private float m_value = 0 | ||
private float m_Value | ||
private ref array<ref array<V> > m_values | ||
private Widget m_widget | ||
T1 param1 [1/10] | ||
T1 param1 [2/10] | ||
T1 param1 [3/10] | ||
T1 param1 [4/10] | ||
T1 param1 [5/10] | ||
T1 param1 [6/10] | ||
T1 param1 [7/10] | ||
T1 param1 [8/10] | ||
T1 param1 [9/10] | ||
T1 param1 [10/10] | ||
T10 param10 | ||
T2 param2 [1/9] | ||
T2 param2 [2/9] | ||
T2 param2 [3/9] | ||
T2 param2 [4/9] | ||
T2 param2 [5/9] | ||
T2 param2 [6/9] | ||
T2 param2 [7/9] | ||
T2 param2 [8/9] | ||
T2 param2 [9/9] | ||
T3 param3 [1/8] | ||
T3 param3 [2/8] | ||
T3 param3 [3/8] | ||
T3 param3 [4/8] | ||
T3 param3 [5/8] | ||
T3 param3 [6/8] | ||
T3 param3 [7/8] | ||
T3 param3 [8/8] | ||
T4 param4 [1/7] | ||
T4 param4 [2/7] | ||
T4 param4 [3/7] | ||
T4 param4 [4/7] | ||
T4 param4 [5/7] | ||
T4 param4 [6/7] | ||
T4 param4 [7/7] | ||
T5 param5 [1/6] | ||
T5 param5 [2/6] | ||
T5 param5 [3/6] | ||
T5 param5 [4/6] | ||
T5 param5 [5/6] | ||
T5 param5 [6/6] | ||
T6 param6 [1/5] | ||
T6 param6 [2/5] | ||
T6 param6 [3/5] | ||
T6 param6 [4/5] | ||
T6 param6 [5/5] | ||
T7 param7 [1/4] | ||
T7 param7 [2/4] | ||
T7 param7 [3/4] | ||
T7 param7 [4/4] | ||
T8 param8 [1/3] | ||
T8 param8 [2/3] | ||
T8 param8 [3/3] | ||
T9 param9 [1/2] | ||
T9 param9 [2/2] |
Function Documentation
~TimerQueueTimerQueue
void ~TimerQueue()AnimateAnimatorTimer
Starts animate value until value reaches target value.
valfloattarget valuespeedfloatspeed of animating, units per second
Show 1 more
, MainMenuButtonEffect.OnFocusLost()AnimateLoopAnimatorTimer
void AnimateLoop(float speed = 1.0)Starts infinite animation loop <-1,1>. Based on sinus transition.
speedfloatspeed of animating , cycles per second (1.0 means one 360 degree sinus cycle per second: 0..1..0..-1..0)
AnimationTimerAnimationTimer
void AnimationTimer(int category = CALL_CATEGORY_SYSTEM)Call [1/2]CallQueue
Creates new call request, add it on queue and execute during frame update (depends on call category)
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)
Call [2/2]CallQueueContext
void Call()CallParamsCallQueueContext
void CallParams(Param params)Show 2 more
, m_function, and m_targetContinueTimerBase
void Continue()Timer continue when it was paused.
Deserializer [2/11]Param1
override bool Deserializer(Serializer ctx)Deserializer [3/11]Param10
override bool Deserializer(Serializer ctx)Deserializer [4/11]Param2
override bool Deserializer(Serializer ctx)Deserializer [5/11]Param3
override bool Deserializer(Serializer ctx)Deserializer [6/11]Param4
override bool Deserializer(Serializer ctx)Deserializer [7/11]Param5
override bool Deserializer(Serializer ctx)Deserializer [8/11]Param6
override bool Deserializer(Serializer ctx)Deserializer [9/11]Param7
override bool Deserializer(Serializer ctx)Deserializer [10/11]Param8
override bool Deserializer(Serializer ctx)Deserializer [11/11]Param9
override bool Deserializer(Serializer ctx)FadeInWidgetFadeTimer
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
Show 8 more
, Widget.SetAlpha(), Widget.SetAlpha(), Widget.Show(), Widget.Show(), m_alpha, m_fadeIn, TimerBase.m_time, and m_widgetShow 2 more
, MainMenu.OnMouseEnter(), and MissionGameplay.OnEvent()FadeOutWidgetFadeTimer
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
Show 7 more
, Widget.SetAlpha(), Widget.Show(), Widget.Show(), m_alpha, m_fadeIn, TimerBase.m_time, and m_widgetGetProfileValueBool
Return value from profile variable, if variable with given name is not present, default value is returned
GetTemperatureColor
InsertmultiMap
void Insert(K key, V value)Show 5 more
, array.Insert(), Insert(), array.Insert(), m_keys, and m_valuesIsRunning [3/3]TimerBase
bool IsRunning()Returns: True when Timer is running (not stopped, not paused)
Show 34 more
, CargoContainer.Refresh(), ComponentEnergyManager.OnIsPlugged(), ComponentEnergyManager.RefreshDebug(), ComponentEnergyManager.StartUpdates(), DayZPlayerImplement.StopDeathDarkeningEffect(), DayZPlayerInventory.HandleWeaponEvents(), Defibrillator.OnWorkStart(), EmoteManager.~EmoteManager(), FireplaceBase.AddDamageToItemByFireEx(), FireplaceBase.AddTemperatureToItemByFire(), FireplaceBase.IsProcessing(), FireplaceBase.IsSelfAdjustingTemperature(), FlashbangEffect.~FlashbangEffect(), FlashbangEffect.SetAttenuationFilter(), Grenade_Base.Activate(), Grenade_Base.Deactivate(), Grenade_Base.IsPinnable(), LandMineTrap.OnServerSteppedOn(), LandMineTrap.OnSteppedOut(), Particle.IsWiggling(), Particle.RandomizeOrientation(), Particle.SetWiggle(), ParticleSource.RandomizeOrientation(), PlayerBase.ClearLastUAMessage(), PlayerBase.RunFightBlendTimer(), PlayerBase.SetLastUAMessage(), PluginDeveloperSync.EnableUpdate(), PowerGeneratorBase.OnWorkStart(), PresenceNotifierNoiseEvents.ProcessEvent(), RadialMenu.RegisterClass(), ScriptConsoleWeatherTab.OnChange(), Tick(), UniversalTemperatureSource.IsActive(), and UniversalTemperatureSource.SetActive()OnInitTimerBase
protected void OnInit(int category)Show 4 more
, m_loop, m_running, m_time, and m_timerQueueOnStartTimerBase
OnTimer [1/3]Timer
override protected void OnTimer()Show 3 more
, m_function, m_params, and m_targetOnTimer [3/3]WidgetFadeTimer
override private void OnTimer()OnUpdate [2/2]WidgetFadeTimer
override private void OnUpdate()Show 5 more
, m_alpha, TimerBase.m_duration, m_fadeIn, TimerBase.m_time, and m_widgetPauseTimerBase
void Pause()Pause Timer, internal counter is not restarted, so timer can continue later. Can be unpaused via Continue.
RemoveCallsCallQueue
void RemoveCalls(Class obj)Removes all queued calls for object (call this function when object is going to be deleted)
obj- object for which you want remove all "lazy" calls
Show 1 more
, CallQueueContext.m_targetRun [1/2]AnimationTimer
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)Show 8 more
, TimerBase.m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, TimerBase.m_time, m_UpdateFunction, and m_ValueRun [2/2]Timer
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.
Serialize [2/11]Param1
override bool Serialize(Serializer ctx)Serialize [3/11]Param10
override bool Serialize(Serializer ctx)Serialize [4/11]Param2
override bool Serialize(Serializer ctx)Serialize [5/11]Param3
override bool Serialize(Serializer ctx)Serialize [6/11]Param4
override bool Serialize(Serializer ctx)Serialize [7/11]Param5
override bool Serialize(Serializer ctx)Serialize [8/11]Param6
override bool Serialize(Serializer ctx)Serialize [9/11]Param7
override bool Serialize(Serializer ctx)Serialize [10/11]Param8
override bool Serialize(Serializer ctx)Serialize [11/11]Param9
override bool Serialize(Serializer ctx)SetProfileValueBool
Writes bool variable to profile, after write don't forget to call CGame::SaveProfile() to save profile to storage!
SetRunningTimerBase
protected void SetRunning(bool running)Show 6 more
, Continue(), OnStart(), Pause(), Stop(), Tick(), and UniversalTemperatureSourceTimer.Stop()Stop [1/2]Timer
override void Stop()Stop [2/2]TimerBase
void Stop()Stop Timer and restart internal counter. Cannot be unpaused, must be started again.
Tick [1/6]AnimationTimer
override void Tick(float timeslice)Ticks the timer, is called by timer subsystem.
Show 10 more
, m_Active, m_FinishedFunction, TimerBase.m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, TimerBase.m_time, m_UpdateFunction, and m_ValueTick [2/6]AnimatorTimer
void Tick(float timeslice)Ticks the timer, is called by timer subsystem.
Show 5 more
, m_loop, m_target_value, m_time, m_value, and Math.PI2Tick [3/6]CallQueue
void Tick()System function, don't call it
Show 3 more
, CallQueueContext.IsValid(), array.Remove(), and m_processingTick [4/6]DragQueue
override void Tick()System function, don't call it
Tick [5/6]TimerBase
void Tick(float timeslice)System function, don't call.
Show 5 more
, SetRunning(), m_duration, m_loop, m_RunTime, and m_timeTimerTimer
void Timer(int category = CALL_CATEGORY_SYSTEM)