DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Класс CallQueue

DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact arguments: Подробнее...

Закрытые члены

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

Закрытые данные

ref Param3< int, int, boolm_mouse_params
 

Подробное описание

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);
}
...
GetGame().GetDragQueue().Call(this, "UpdateDrag"); // calls "UpdateDrag" function on "this"
override DragQueue GetDragQueue()
Определения DayZGame.c:1215
proto native CGame GetGame()

См. определение в файле tools.c строка 153