95 {
96 super.OnClick(w,
x,
y,button);
97
98 CheckBoxWidget cbw = CheckBoxWidget.Cast(w);
99
101 {
103 string paramFinal;
104 if (selectedRowIndex > -1)
105 {
106 string param;
108 int index = param.
IndexOf(
"=");
109 if (index > 0)
111 }
112
113 int objects_row_index;
116 {
119 string path = params.param4;
122 string relativePath;
123
124 foreach (int indx, string s:pathArr)
125 {
126 if (indx > 2)
127 {
128 relativePath+= s+" ";
129 }
130 }
131
132 if (relativePath)
133 relativePath = relativePath.
Trim();
134
137 }
138
139 if (paramFinal)
141
142 return true;
143 }
145 {
147
148
150 {
153
154 if (config_params.param1 == false)
155 {
157 }
158 else
159 {
161 }
162
164 m_Row = objects_row_index;
165 }
166 return true;
167 }
169 {
172
174
175 int flag, new_flag;
176
178 {
180 }
181
182 if (cbw.IsChecked())
183 {
184 if (index_toggled == -1)
185 {
187
189 {
190 new_flag = (flag | (
int)Math.Pow(2, checkbox_index));
191 }
192 }
193 }
194 else if (index_toggled != -1)
195 {
197
199 {
200 new_flag = (flag ^ (
int)Math.Pow(2, checkbox_index));
201 }
202 }
204
205
206
207
208
209
210
211
212
214 }
216 {
218 return true;
219 }
220 return false;
221 }
Param6< bool, string, int, string, int, string > ConfigParamsEx
TextListboxWidget m_ConfigVariablesTextListbox
void DumpParam(string param, string relativePath)
void RenderVariables(int row)
ref TStringArray m_BaseConfigClasses
ref map< CheckBoxWidget, int > m_ClassCheckboxes
TextListboxWidget m_ConfigHierarchyTextListbox
void ExpandHierarchy(int row)
void CollapseHierarchy(int row)
ref TStringArray m_BaseConfigClassesToggled
ButtonWidget m_DumpParamButton
ButtonWidget m_SelectedRowCopy
PluginConfigDebugProfile m_ConfigDebugProfile
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
proto string Trim()
Returns trimmed string with removed leading and trailing whitespaces.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.