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

◆ ShowHairDebugValues()

void MissionBase::ShowHairDebugValues ( bool state)
inlineprotected

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

1553 {
1554#ifdef DIAG_DEVELOPER
1555 if ( state )
1556 {
1557 PluginDiagMenuClient diagmenu = PluginDiagMenuClient.Cast(GetPlugin(PluginDiagMenuClient));
1558
1559 int i = DiagMenu.GetValue(DiagMenuIDs.MISC_HAIR_LEVEL);
1560 bool bState = diagmenu.m_HairHidingStateMap.Get(i);
1561 string selectionState;
1562 if (!bState)
1563 selectionState = "Hidden";
1564 else
1565 selectionState = "Shown";
1566 string selectionName = diagmenu.m_HairSelectionArray.Get(i);
1567
1568 DbgUI.BeginCleanupScope();
1569 DbgUI.Begin("Hair Debug", 50, 150);
1570 DbgUI.Text("Current Hair Selection:" + selectionName);
1571 DbgUI.Text("State: " + selectionState);
1572
1573 DbgUI.End();
1574 DbgUI.EndCleanupScope();
1575 }
1576 else
1577 {
1578 DbgUI.BeginCleanupScope();
1579 DbgUI.Begin("Hair Debug", 50, 50);
1580 DbgUI.End();
1581 DbgUI.EndCleanupScope();
1582 }
1583#endif
1584 }
DiagMenuIDs
Определения EDiagMenuIDs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:326

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

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