Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
 public static void hide(ref ConsoleSystem.Arg arg)
 {
     LockEntry.Hide();
 }
Ejemplo n.º 3
0
 public void CancelPressed()
 {
     LockEntry.Hide();
 }
Ejemplo n.º 4
0
 public void Start()
 {
     LockEntry.singleton = this;
     LockEntry.Hide();
 }