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

◆ RegisterItem()

static proto void DiagMenu::RegisterItem ( int id,
string shortcut,
string name,
int parent,
string values,
func callback = null )
staticprivate

Register a new item.

Аргументы
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
parentint The index of the parent of the item
valuesstring The values of the item separated by commas, internally this will be an int starting at 0 for the first item
callbackfunc Callback to call when the value is changed (OPTIONAL) (Also read BindCallback)

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