183 {
184 int i;
185 TextWidget digitTextW;
186
188 {
189 Param1<int> uiAction = new Param1<int>(0);
191 {
192 uiAction.param1 = CodeLockUIAction.CONFIRM_INPUT;
195 }
197 {
198 uiAction.param1 = CodeLockUIAction.CLEAR_INPUT;
201 }
202 else
203 {
204 uiAction.param1 = CodeLockUIAction.DIGIT_INPUT;
206
207 string codeText;
209 {
210 codeText = "";
211 }
212 else
213 {
215 }
216
217 int codeLength = codeText.
Length();
219 {
220 int digit;
224 digit = 0;
225
226 codeText = codeText + digit.
ToString();
228
229 #ifdef CODELOCKCOMPONENT_LOG
231 #endif
232
234
236 {
237 digitTextW = TextWidget.Cast(layoutRoot.FindAnyWidget("PasswordDigitNumber_Text" + i));
238 if (digitTextW)
240 }
241 }
242 }
243 }
244 }
const int MAX_LOCK_PIN_LENGTH
int m_SelectedButtonIndex
const int RESET_BUTTON_INDEX
const int CONFIRM_BUTTON_INDEX
ref array< ButtonWidget > m_NumButtons
proto native int Length()
Returns length of string.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.