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

◆ RefreshVisual()

void Hologram::RefreshVisual ( )
inlineprotected

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

1498 {
1499 if (m_Projection)
1500 {
1501 static const string textureName = "#(argb,8,8,3)color(0.5,0.5,0.5,0.75,ca)";
1502
1503 int hidden_selection = 0;
1504 string selection_to_refresh;
1505 string config_material = string.Format("CfgVehicles %1 hologramMaterial", m_Projection.GetType());
1506 string hologram_material = GetGame().ConfigGetTextOut(config_material);
1507 string config_model = string.Format("CfgVehicles %1 hologramMaterialPath", m_Projection.GetType());
1508 string hologram_material_path = string.Format("%1\\%2%3", GetGame().ConfigGetTextOut(config_model), hologram_material, CorrectMaterialPathName());
1509
1510 for (int i = 0; i < m_SelectionsToRefresh.Count(); ++i)
1511 {
1512 selection_to_refresh = m_SelectionsToRefresh.Get(i);
1513 hidden_selection = GetHiddenSelection(selection_to_refresh);
1514 m_Projection.SetObjectTexture(hidden_selection, textureName);
1515 m_Projection.SetObjectMaterial(hidden_selection, hologram_material_path);
1516 }
1517 }
1518 }
string ConfigGetTextOut(string path)
Get string value from config on path.
Определения Game.c:463
string CorrectMaterialPathName()
Определения Hologram.c:1521
EntityAI m_Projection
Определения Hologram.c:22
ref set< string > m_SelectionsToRefresh
Определения Hologram.c:59
int GetHiddenSelection(string selection)
Определения Hologram.c:1474
proto native CGame GetGame()
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

Перекрестные ссылки CGame::ConfigGetTextOut(), CorrectMaterialPathName(), string::Format(), GetGame(), GetHiddenSelection(), m_Projection и m_SelectionsToRefresh.

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