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

◆ BindCallback()

static proto bool DiagMenu::BindCallback ( int id,
func callback )
staticprivate

Bind a callback to the given id.

Заметки
Only one callback can be registered, so when attempting to registering multiple, only the last one will be present
The callbacks are required to have one of following signatures
  • All Register... support: o static void Callback();
  • RegisterItem & RegisterBool: o static void Callback(int value); o static void Callback(int value, int id); o static void Callback(bool value); o static void Callback(bool value, int id);
  • RegisterRange: o static void Callback(float value); o static void Callback(float value, int id); o static void Callback(int value); o static void Callback(int value, int id);
Keep in mind that bool and int are interchangeable, so 'bool value' is possible for RegisterRange too