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

◆ InitRangeFinderData()

void PoweredOptic_Base::InitRangeFinderData ( )
inlineprotected

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

22 {
23 string path = "cfgVehicles " + GetType();
24 if (GetGame().ConfigIsExisting(path))
25 {
26 string layout;
27 if (GetGame().ConfigIsExisting(path + " rangeFinderLayout"))
28 {
29 GetGame().ConfigGetText(path + " rangeFinderLayout", layout);
30 }
31
32 if (layout != "" && layout.Length() > 0)
33 {
34 m_LayoutPath = layout;
35 }
36 else
37 {
38 m_LayoutPath = "gui/layouts/gameplay/rangefinder_hud.layout";
39 }
40 }
41 }
eBleedingSourceType GetType()
string path
Определения OptionSelectorMultistate.c:142
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
string m_LayoutPath
Определения Rangefinder.c:9
proto native CGame GetGame()
proto native int Length()
Returns length of string.

Перекрестные ссылки CGame::ConfigGetText(), GetGame(), GetType(), string::Length(), m_LayoutPath и path.

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