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

◆ ShowHairDebugValues()

void MissionBase::ShowHairDebugValues ( bool state)
inlineprotected

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

1465 {
1466#ifdef DIAG_DEVELOPER
1467 if ( state )
1468 {
1469 PluginDiagMenuClient diagmenu = PluginDiagMenuClient.Cast(GetPlugin(PluginDiagMenuClient));
1470
1471 int i = DiagMenu.GetValue(DiagMenuIDs.MISC_HAIR_LEVEL);
1472 bool bState = diagmenu.m_HairHidingStateMap.Get(i);
1473 string selectionState;
1474 if (!bState)
1475 selectionState = "Hidden";
1476 else
1477 selectionState = "Shown";
1478 string selectionName = diagmenu.m_HairSelectionArray.Get(i);
1479
1480 DbgUI.BeginCleanupScope();
1481 DbgUI.Begin("Hair Debug", 50, 150);
1482 DbgUI.Text("Current Hair Selection:" + selectionName);
1483 DbgUI.Text("State: " + selectionState);
1484
1485 DbgUI.End();
1486 DbgUI.EndCleanupScope();
1487 }
1488 else
1489 {
1490 DbgUI.BeginCleanupScope();
1491 DbgUI.Begin("Hair Debug", 50, 50);
1492 DbgUI.End();
1493 DbgUI.EndCleanupScope();
1494 }
1495#endif
1496 }
DiagMenuIDs
Определения EDiagMenuIDs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::End(), DbgUI::EndCleanupScope(), GetPlugin(), DiagMenu::GetValue() и DbgUI::Text().

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