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

◆ OnGUI()

void OnGUI ( bool show)

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

458 {
459 const int windowPosX = 0;
460 const int windowPosY = 300;
461 const int mainPanelSizeX = 200;
462 const int mainPanelSizeY = 1;
463 const int margin = 10;
464
466 DbgUI.Begin("CretureAI debug", windowPosX, windowPosY);
467 if (show)
468 {
469 if (m_EntityAnimDbg == NULL)
470 {
471 if (m_bIsCaptureMode == true)
472 {
473 DbgUI.Text("Capturing...");
474 }
475 else
476 {
477 if (DbgUI.Button("Capture"))
478 {
479 m_bIsCaptureMode = true;
480 }
481 }
482
483 // Clear additional windows
484 DbgUI.Begin("CreatureAI EditMenu");
485 DbgUI.End();
486
487 DbgUI.Begin("CreatureAI AnimEvents");
488 DbgUI.End();
489 }
490 else
491 {
492 DbgUI.Panel("MinimumSize", mainPanelSizeX, mainPanelSizeY);
493
495 DbgUI.SameLine();
496 bool btnReleasePressed = DbgUI.Button("Release");
497
498 DbgUI.Check("Edit", m_bEditMode);
499 DbgUI.Check("ShowAnimEvents", m_bShowAnimEvents);
500
501 #ifdef _DAYZ_CREATURE_DEBUG_SHADOW
502 if (!GetGame().IsMultiplayer())
503 {
504 DbgUI.SameLine();
505 if (DbgUI.Button("CreateShadow"))
506 {
507 GUIAction_CreateShadow();
508 }
509 }
510 #endif
511
512 if (!GetGame().IsMultiplayer())
513 {
514 const int simLODInputSize = 20;
515 int simLOD;
516 DbgUI.InputInt("SimLOD", simLOD, simLODInputSize);
517 DbgUI.SameLine();
518 if (DbgUI.Button("UpdateSimulationPrecision"))
519 {
521 }
522 }
523
524 if (btnReleasePressed)
525 {
527 }
528 else
529 {
531 DbgUI.Begin("CreatureAI EditMenu", windowPosX + mainPanelSizeX + margin, windowPosY);
532 if (m_bEditMode)
533 {
537 DbgUI.Spacer(20);
539 }
540 DbgUI.End();
541
542 DbgUI.Begin("CreatureAI AnimEvents", windowPosX + mainPanelSizeX + margin, windowPosY);
544 {
546 }
547 DbgUI.End();
548 }
549 }
550 }
551 DbgUI.End();
553 }
ref DayZCreatureAnimScriptDebug m_EntityAnimDbg
Определения PluginDayZCreatureAIDebug.c:84
bool m_bIsCaptureMode
Определения PluginDayZCreatureAIDebug.c:90
void OnGUI_AnimEvents()
Определения PluginDayZCreatureAIDebug.c:399
bool m_bShowAnimEvents
Определения PluginDayZCreatureAIDebug.c:93
void OnGUI_BulkSet()
Определения PluginDayZCreatureAIDebug.c:389
bool m_bEditMode
Определения PluginDayZCreatureAIDebug.c:91
void OnGUI_VariablesEdit()
Определения PluginDayZCreatureAIDebug.c:285
void OnGUI_CommandsEdit()
Определения PluginDayZCreatureAIDebug.c:326
string m_sDebugEntityName
Определения PluginDayZCreatureAIDebug.c:83
void OnGUI_Variables()
Определения PluginDayZCreatureAIDebug.c:274
void GUIAction_UpdateSimulationPrecision(int simLOD)
Определения PluginDayZCreatureAIDebug.c:651
void GUIAction_ReleaseDebugObject()
Определения PluginDayZCreatureAIDebug.c:656
void OnGUI_AIControlEdit()
Определения PluginDayZCreatureAIDebug.c:369
class PresenceNotifierNoiseEvents windowPosX
dbgUI settings
const int mainPanelSizeX
Определения PluginPresenceNotifier.c:79
const int margin
Определения PluginPresenceNotifier.c:82
const int mainPanelSizeY
Определения PluginPresenceNotifier.c:80
const int windowPosY
Определения PluginPresenceNotifier.c:77
Определения DbgUI.c:60
proto native CGame GetGame()
static proto native void Panel(string label, int width, int height, int color=0xaa555555)
static proto native void End()
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native bool Button(string txt, int minWidth=0)
static proto native void Text(string label)
static proto native void SameLine()
static proto void InputInt(string txt, out int value, int pxWidth=150)
static proto void BeginCleanupScope()
static proto native void Spacer(int height)
static proto void Check(string label, out bool checked)
static proto native void EndCleanupScope()

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::Button(), DbgUI::Check(), DbgUI::End(), DbgUI::EndCleanupScope(), GetGame(), GUIAction_ReleaseDebugObject(), GUIAction_UpdateSimulationPrecision(), DbgUI::InputInt(), m_bEditMode, m_bIsCaptureMode, m_bShowAnimEvents, m_EntityAnimDbg, m_sDebugEntityName, mainPanelSizeX, mainPanelSizeY, margin, OnGUI_AIControlEdit(), OnGUI_AnimEvents(), OnGUI_BulkSet(), OnGUI_CommandsEdit(), OnGUI_Variables(), OnGUI_VariablesEdit(), DbgUI::Panel(), DbgUI::SameLine(), DbgUI::Spacer(), DbgUI::Text(), windowPosX и windowPosY.

Используется в Hide() и OnGUITimer().