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

◆ RegisterBool()

static proto void DiagMenu::RegisterBool ( int id,
string shortcut,
string name,
int parent,
bool reverse = false,
func callback = null )
staticprivate

Register a new bool item.

Заметки
This is just a RegisterItem with value="true,false" or when reversed value="false,true"
Аргументы
idint The unique ID of the item in the range [0,512]
shortcutstring The keyboard shortcut of the item
namestring The name of the item
parentstring The index of the parent of the item
valuesstring The values of the item, separated by commas
reversebool Whether to reverse the bool (OPTIONAL)
callbackfunc Callback to call when the value is changed (OPTIONAL) (Also read BindCallback)

Перекрестные ссылки name.