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

◆ InitReddotData()

void ItemOptics::InitReddotData ( )
inlineprivate

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

299 {
300 string path = "cfgVehicles " + GetType() + " OpticsInfo";
301 string temp;
302
303 if (GetGame().ConfigIsExisting(path))
304 {
305 m_reddot_index = GetHiddenSelectionIndex("reddot");
306 if (GetGame().ConfigIsExisting(path + " opticSightTexture"))
307 {
308 GetGame().ConfigGetText(path + " opticSightTexture", temp);
310 temp = "";
311 }
312 if (GetGame().ConfigIsExisting(path + " opticSightMaterial"))
313 {
314 GetGame().ConfigGetText(path + " opticSightMaterial", temp);
316 temp = "";
317 }
318 }
319 m_data_set = true;
320 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
string path
Определения OptionSelectorMultistate.c:142
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
int m_reddot_index
Определения ItemOptics.c:9
bool m_data_set
Определения ItemOptics.c:3
string m_optic_sight_material
Определения ItemOptics.c:13
string m_optic_sight_texture
Определения ItemOptics.c:12
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetText(), GetGame(), GetType(), m_data_set, m_optic_sight_material, m_optic_sight_texture, m_reddot_index и path.

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