Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
CallQueue Class Reference

DragQueue Class provide callbacks while mouse is dragging. More...

Private Member Functions

void DragQueue ()
override void Tick ()
 System function, don't call it.

Private Attributes

ref Param3< int, int, boolm_mouse_params

Detailed Description

DragQueue Class provide callbacks while mouse is dragging.

Callback function must have exact arguments:

void AnyFunctionName(int mouse_x, int mouse_y, bool is_dragging);

When mouse button is released, callback function is called one more time with is_dragging = false. Then all callbacks are automatically removed from queue.


usage:

class XYZ
{
void UpdateDrag(int mouse_x, int mouse_y, bool is_dragging);
}
...
g_Game.GetDragQueue().Call(this, "UpdateDrag"); // calls "UpdateDrag" function on "this"
DayZGame g_Game
Definition dayzgame.c:3942

Definition at line 153 of file tools.c.

Member Function Documentation

◆ DragQueue()

void DragQueue ( )
inlineprivate

Definition at line 157 of file tools.c.

References m_mouse_params.

◆ Tick()

override void Tick ( )
inlineprivate

System function, don't call it.

Definition at line 165 of file tools.c.

References CallQueueContext::CallParams(), Clear(), Count, Get(), GetMousePos(), GetMouseState(), CallQueueContext::IsValid(), m_mouse_params, and Remove().

Field Documentation

◆ m_mouse_params

ref Param3<int, int, bool> m_mouse_params
private

Definition at line 155 of file tools.c.

Referenced by DragQueue(), and Tick().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/3_game/tools/tools.c