Example #1
0
 // Token: 0x06000CA3 RID: 3235 RVA: 0x0005572C File Offset: 0x0005392C
 private void DrawCheckAvailabilityButton(Rect position)
 {
     GUI.enabled = (!string.IsNullOrEmpty(this._characterName) && !this._checkButtonClicked && !this._waitingForWsReturn);
     if (GUITools.Button(new Rect(225f, 60f, 110f, 24f), new GUIContent("Check Availability"), BlueStonez.buttondark_small))
     {
         this.HideKeyboard();
         this._availableNames.Clear();
         this._checkButtonClicked = true;
         this._targetHeight       = 260f;
         if (!ValidationUtilities.IsValidMemberName(this._characterName, ApplicationDataManager.CurrentLocale.ToString()))
         {
             this._feedbackMessageColor = Color.red;
             this._errorMessage         = "'" + this._characterName + "' is not a valid name!";
         }
         else
         {
             this._waitingForWsReturn = true;
             UserWebServiceClient.IsDuplicateMemberName(this._characterName, new Action <bool>(this.IsDuplicatedNameCallback), delegate(Exception ex)
             {
                 this._waitingForWsReturn   = false;
                 this._feedbackMessageColor = Color.red;
                 this._errorMessage         = "Our server had an error, please try again.";
             });
         }
     }
     GUI.enabled = true;
 }
 // Token: 0x06001226 RID: 4646 RVA: 0x0006AF48 File Offset: 0x00069148
 public static bool ValidateMemberName(string name, LocaleType locale = LocaleType.en_US)
 {
     if (locale != LocaleType.ko_KR)
     {
         return(ValidationUtilities.IsValidMemberName(name));
     }
     return(ValidationUtilities.IsValidMemberName(name, "ko-KR"));
 }
Example #3
0
 // Token: 0x06001DC6 RID: 7622 RVA: 0x00013C40 File Offset: 0x00011E40
 public static bool IsValidMemberName(string memberName)
 {
     return(ValidationUtilities.IsValidMemberName(memberName, "en-US"));
 }