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

◆ ShowHairDebugValues()

void MissionBase::ShowHairDebugValues ( bool state)
inlineprotected

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

1480 {
1481#ifdef DIAG_DEVELOPER
1482 if ( state )
1483 {
1484 PluginDiagMenuClient diagmenu = PluginDiagMenuClient.Cast(GetPlugin(PluginDiagMenuClient));
1485
1486 int i = DiagMenu.GetValue(DiagMenuIDs.MISC_HAIR_LEVEL);
1487 bool bState = diagmenu.m_HairHidingStateMap.Get(i);
1488 string selectionState;
1489 if (!bState)
1490 selectionState = "Hidden";
1491 else
1492 selectionState = "Shown";
1493 string selectionName = diagmenu.m_HairSelectionArray.Get(i);
1494
1495 DbgUI.BeginCleanupScope();
1496 DbgUI.Begin("Hair Debug", 50, 150);
1497 DbgUI.Text("Current Hair Selection:" + selectionName);
1498 DbgUI.Text("State: " + selectionState);
1499
1500 DbgUI.End();
1501 DbgUI.EndCleanupScope();
1502 }
1503 else
1504 {
1505 DbgUI.BeginCleanupScope();
1506 DbgUI.Begin("Hair Debug", 50, 50);
1507 DbgUI.End();
1508 DbgUI.EndCleanupScope();
1509 }
1510#endif
1511 }
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().