public void PasswordEntered() { string text = this.passwordInput.Text; if (text.Length != 4) { ConsoleSystem.Run("notice.popup 5 \"Password must be 4 digits.\"", false); return; } string str = text; for (int i = 0; i < str.Length; i++) { if (!char.IsDigit(str[i])) { ConsoleSystem.Run("notice.popup 5 \"Must be digits only.\"", false); return; } } ConsoleNetworker.SendCommandToServer(string.Concat("lockentry.passwordentry ", text, " ", (!this.changingEntry ? "false" : "true"))); LockEntry.Hide(); }
public static void hide(ref ConsoleSystem.Arg arg) { LockEntry.Hide(); }
public void CancelPressed() { LockEntry.Hide(); }
public void Start() { LockEntry.singleton = this; LockEntry.Hide(); }