97 {
98 super.OnClick(w,
x,
y,button);
99
100 CheckBoxWidget cbw = CheckBoxWidget.Cast(w);
101
103 {
105 string paramFinal;
106 if (selectedRowIndex > -1)
107 {
108 string param;
110 int index = param.
IndexOf(
"=");
111 if (index > 0)
113 }
114
115 int objects_row_index;
118 {
121 string path = params.param4;
124 string relativePath;
125
126 foreach (int indx, string s:pathArr)
127 {
128 if (indx > 2)
129 {
130 relativePath+= s+" ";
131 }
132 }
133
134 if (relativePath)
135 relativePath = relativePath.
Trim();
136
139 }
140
141 if (paramFinal)
143
144 return true;
145 }
147 {
149
150
152 {
155
156 if (config_params.param1 == false)
157 {
159 }
160 else
161 {
163 }
164
166 m_Row = objects_row_index;
167 }
168 return true;
169 }
171 {
174
176
177 int flag, new_flag;
178
180 {
182 }
183
184 if (cbw.IsChecked())
185 {
186 if (index_toggled == -1)
187 {
189
191 {
192 new_flag = (flag | (
int)Math.Pow(2, checkbox_index));
193 }
194 }
195 }
196 else if (index_toggled != -1)
197 {
199
201 {
202 new_flag = (flag ^ (
int)Math.Pow(2, checkbox_index));
203 }
204 }
206
207
208
209
210
211
212
213
214
216 }
218 {
220 return true;
221 }
222 return false;
223 }
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.
class array< Class T > 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.