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

◆ ExpandHierarchy()

void UIPopupScript::ExpandHierarchy ( int row)
inlineprivate

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

70 {
71 if( row <= -1 && row >= m_ConfigHierarchyTextListbox.GetNumItems() )
72 {
73 return;
74 }
75
76 ref TStringArray variables;
77
78 // get current row data
79 ConfigParams config_params;
80 m_ConfigHierarchyTextListbox.GetItemData( row, 0, config_params );
81
82 string config_path = config_params.param4;
83 int deep = config_params.param5;
84
85 string offset = "";
86 for ( int i = 0; i < deep; i++)
87 {
88 offset = offset + " ";
89 }
90
91 // change selected node
92 variables = m_ModuleConfigViewer.GetConfigHierarchy( config_path );
93 int childrens_count = variables.Count();
94 m_ConfigHierarchyTextListbox.SetItem( row, offset + "- " + config_params.param2, new ConfigParams( true, config_params.param2, childrens_count, config_path, deep ), 0 );
95
96 offset = offset + " ";
97
98 // render childrens
99 deep = deep + 1;
100 childrens_count = 0;
101 for ( i = variables.Count() - 1; i >= 0; i-- )
102 {
103 string new_config_path = ( config_path + " " + variables.Get(i) ).Trim();
104 m_ConfigHierarchyTextListbox.AddItem( offset + "+ " + variables.Get(i), new ConfigParams( false, variables.Get(i), childrens_count, new_config_path, deep ), 0, (row + 1) );
105 }
106 }
Param5< bool, string, int, string, int > ConfigParams
Определения ScriptConsoleConfigTab.c:1
TextListboxWidget m_ConfigHierarchyTextListbox
Определения UIPopupScriptConfigs.c:7
PluginConfigViewer m_ModuleConfigViewer
Определения UIPopupScriptConfigs.c:10
array< string > TStringArray
Определения EnScript.c:685
proto string Get(int index)
Gets n-th character from string.

Перекрестные ссылки string::Get(), m_ConfigHierarchyTextListbox и m_ModuleConfigViewer.

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