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

◆ CollapseHierarchy()

void UIPopupScript::CollapseHierarchy ( int row)
inlineprivate

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

110 {
111 if( row <= -1 && row >= m_ConfigHierarchyTextListbox.GetNumItems() )
112 {
113 return;
114 }
115
116 ConfigParams config_params;
117 ConfigParams config_params_next;
118 m_ConfigHierarchyTextListbox.GetItemData( row, 0, config_params );
119 m_ConfigHierarchyTextListbox.GetItemData( row + 1, 0, config_params_next );
120
121 int deep = config_params.param5;
122 int deep_next = config_params_next.param5;
123 int max_count = m_ConfigHierarchyTextListbox.GetNumItems();
124 int remove_lines_count = 0;
125 // Print(max_count);
126 for ( int i = row + 1; i < max_count; i++)
127 {
128 if ( deep < deep_next && i <= max_count )
129 {
130 remove_lines_count = remove_lines_count + 1;
131 m_ConfigHierarchyTextListbox.GetItemData( i, 0, config_params_next );
132 deep_next = config_params_next.param5;
133 }
134 }
135
136 // remove remove_lines_count lines from row
137 // remove_lines_count = remove_lines_count - 1;
138 for ( i = 1; i < remove_lines_count; i++ )
139 {
140 int x = row + 1;
141 if ( x < max_count )
142 {
143 m_ConfigHierarchyTextListbox.RemoveRow( x );
144 }
145 }
146
147 string offset = "";
148 for ( i = 0; i < deep; i++)
149 {
150 offset = offset + " ";
151 }
152 m_ConfigHierarchyTextListbox.SetItem( row, offset + "+ " + config_params.param2, new ConfigParams( false, config_params.param2, 0, config_params.param4, deep ), 0 );
153 }
Icon x
Param5< bool, string, int, string, int > ConfigParams
Определения ScriptConsoleConfigTab.c:1
TextListboxWidget m_ConfigHierarchyTextListbox
Определения UIPopupScriptConfigs.c:7

Перекрестные ссылки m_ConfigHierarchyTextListbox и x.

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