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

◆ OnGUI_CommandsEdit()

void OnGUI_CommandsEdit ( )

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

327 {
328 const int INPUT_BOX_SIZE = 35;
329
330 DbgUI.PushID_Str("CommandsEdit");
331 int cmdCount = m_EntityAnimDbg.GetCommandCount();
332 for (int i=0; i < cmdCount; i++)
333 {
335
336 DbgUI.PushID_Int(i);
337
338 bool result;
339 DbgUI.Check("", result);
340 m_SetCommandCheckStates[i] = result;
341
342 DbgUI.SameLine();
343 bool setButtonPressed = DbgUI.Button("Set");
344
345 DbgUI.SameLine();
346 string strUserInt;
347 DbgUI.InputText("int", strUserInt, INPUT_BOX_SIZE);
348
349 DbgUI.SameLine();
350 string strUserFloat;
351 DbgUI.InputText("float", strUserFloat, INPUT_BOX_SIZE);
352
353 DbgUI.SameLine();
354 DbgUI.Text(m_EntityAnimDbg.GetCommandName(i) + "[" + m_EntityAnimDbg.GetCommandID(i) + "]");
355
356 if (setButtonPressed || (m_bBulkSet && m_SetCommandCheckStates[i]))
357 {
358 GUIAction_ActivateCommand(i, strUserInt.ToInt(), strUserFloat.ToFloat());
359 }
360
361 DbgUI.PopID();
362
364 }
365
366 DbgUI.PopID();
367 }
ref array< bool > m_SetCommandCheckStates
Определения PluginDayZCreatureAIDebug.c:97
ref DayZCreatureAnimScriptDebug m_EntityAnimDbg
Определения PluginDayZCreatureAIDebug.c:84
void GUIAction_ActivateCommand(int commandIdx, int userInt, float userFloat)
Определения PluginDayZCreatureAIDebug.c:719
bool m_bBulkSet
Определения PluginDayZCreatureAIDebug.c:95
Определения DbgUI.c:60
static proto native void PopID()
static proto native bool Button(string txt, int minWidth=0)
static proto native void Text(string label)
static proto void InputText(string txt, out string value, int pxWidth=150)
static proto native void SameLine()
static proto void BeginCleanupScope()
static proto native void PushID_Int(int int_id)
static proto native void PushID_Str(string str_id)
static proto void Check(string label, out bool checked)
static proto native void EndCleanupScope()
proto native int ToInt()
Converts string to integer.
proto native float ToFloat()
Converts string to float.

Перекрестные ссылки DbgUI::BeginCleanupScope(), DbgUI::Button(), DbgUI::Check(), DbgUI::EndCleanupScope(), GUIAction_ActivateCommand(), DbgUI::InputText(), m_bBulkSet, m_EntityAnimDbg, m_SetCommandCheckStates, DbgUI::PopID(), DbgUI::PushID_Int(), DbgUI::PushID_Str(), DbgUI::SameLine(), DbgUI::Text(), string::ToFloat() и string::ToInt().

Используется в OnGUI().