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

◆ RefreshVisual()

void Hologram::RefreshVisual ( )
inlineprotected

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

1547 {
1548 if (m_Projection)
1549 {
1550 static const string textureName = "#(argb,8,8,3)color(0.5,0.5,0.5,0.75,ca)";
1551
1552 int hidden_selection = 0;
1553 string selection_to_refresh;
1554 string config_material = string.Format("CfgVehicles %1 hologramMaterial", m_Projection.GetType());
1555 string hologram_material = g_Game.ConfigGetTextOut(config_material);
1556 string config_model = string.Format("CfgVehicles %1 hologramMaterialPath", m_Projection.GetType());
1557 string hologram_material_path = string.Format("%1\\%2%3", g_Game.ConfigGetTextOut(config_model), hologram_material, CorrectMaterialPathName());
1558
1559 for (int i = 0; i < m_SelectionsToRefresh.Count(); ++i)
1560 {
1561 selection_to_refresh = m_SelectionsToRefresh.Get(i);
1562 hidden_selection = GetHiddenSelection(selection_to_refresh);
1563 m_Projection.SetObjectTexture(hidden_selection, textureName);
1564 m_Projection.SetObjectMaterial(hidden_selection, hologram_material_path);
1565 }
1566 }
1567 }
DayZGame g_Game
Определения DayZGame.c:3942
string CorrectMaterialPathName()
Определения Hologram.c:1570
EntityAI m_Projection
Определения Hologram.c:22
ref set< string > m_SelectionsToRefresh
Определения Hologram.c:59
int GetHiddenSelection(string selection)
Определения Hologram.c:1523

Перекрестные ссылки CorrectMaterialPathName(), g_Game, GetHiddenSelection(), m_Projection и m_SelectionsToRefresh.

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