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

◆ OnGUI_VariablesEdit()

void OnGUI_VariablesEdit ( )

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

286 {
287 const int INPUT_BOX_SIZE = 35;
288
289 DbgUI.PushID_Str("VariablesEdit");
290
291 int varCount = m_EntityAnimDbg.GetVariableCount();
292 for (int i=0; i < varCount; i++)
293 {
295
296 DbgUI.PushID_Int(i);
297
298 bool result;
299 DbgUI.Check("", result);
300 m_SetVariableCheckStates[i] = result;
301
302 DbgUI.SameLine();
303 bool setButtonPressed = DbgUI.Button("Set");
304
305 DbgUI.SameLine();
306
307 string strUserVal;
308 DbgUI.InputText(GetStrValueType(i), strUserVal, INPUT_BOX_SIZE);
309
310 DbgUI.SameLine();
311 DbgUI.Text(m_EntityAnimDbg.GetVariableName(i));
312
313 if (setButtonPressed || (m_bBulkSet && m_SetVariableCheckStates[i]))
314 {
315 GUIAction_SetValue(i, strUserVal);
316 }
317
318 DbgUI.PopID();
319
321 }
322
323 DbgUI.PopID();
324 }
ref DayZCreatureAnimScriptDebug m_EntityAnimDbg
Определения PluginDayZCreatureAIDebug.c:84
string GetStrValueType(int index)
Определения PluginDayZCreatureAIDebug.c:165
void GUIAction_SetValue(int index, string strVal)
Определения PluginDayZCreatureAIDebug.c:665
bool m_bBulkSet
Определения PluginDayZCreatureAIDebug.c:95
ref array< bool > m_SetVariableCheckStates
Определения PluginDayZCreatureAIDebug.c:96
Определения 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()

Перекрестные ссылки DbgUI::BeginCleanupScope(), DbgUI::Button(), DbgUI::Check(), DbgUI::EndCleanupScope(), GetStrValueType(), GUIAction_SetValue(), DbgUI::InputText(), m_bBulkSet, m_EntityAnimDbg, m_SetVariableCheckStates, DbgUI::PopID(), DbgUI::PushID_Int(), DbgUI::PushID_Str(), DbgUI::SameLine() и DbgUI::Text().

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