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

◆ DumpParam()

void ScriptConsoleConfigTab::DumpParam ( string param,
string relativePath )
inlineprotected

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

263 {
264 if (relativePath)
265 {
266 relativePath = " " + relativePath;
267 }
268 for ( int i = 0; i < m_BaseConfigClassesToggled.Count(); i++ )
269 {
270 string config_path = m_BaseConfigClassesToggled.Get(i);
271
272 int objects_count = GetGame().ConfigGetChildrenCount( config_path );
273
274 for ( int j = 0; j < objects_count; j++ )
275 {
276 string child_name;
277 GetGame().ConfigGetChildName( config_path, j, child_name );
278
279
280 //string dispName;
281 //GetGame().ConfigGetText( config_path + " " + child_name + " displayName",dispName );
282 string value;
283 string path = config_path + " " + child_name + relativePath + " " + param;
284 if (GetGame().ConfigIsExisting(path))
285 {
286 GetGame().ConfigGetText( path , value);
287 if (value)
288 Print(child_name + "," + param + "," + value);
289 }
290
291
292 /*
293 int scope = GetGame().ConfigGetInt( config_path + " " + child_name + " scope" );
294 {
295 if ( scope == 2)
296 {
297
298 }
299 }*/
300 }
301 }
302 }
string path
Определения OptionSelectorMultistate.c:142
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
ref TStringArray m_BaseConfigClassesToggled
Определения ScriptConsoleConfigTab.c:11
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), CGame::ConfigGetText(), GetGame(), m_BaseConfigClassesToggled, path и Print().

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