Exemplo n.º 1
0
 public void TypeText(string myText, TypedTextSettings settings)
 {
     if(string.IsNullOrEmpty(myText))
         return;
     // This should be a struct or deep cloned to prevent editing externally
     this.settings = settings;
     CreateDelayDictionary(settings.customTypeDelays, out customStringTypeTimeDictionary);
     CreateDelayDictionary(settings.customPostTypePause, out customPostTypePauseDictionary);
     targetText += myText;
     typing = true;
     currentSplitStringIndex = 0;
     splitString = GetSplitText(myText);
     TypeCurrentString();
 }
Exemplo n.º 2
0
 public void TypeText(string myText, TypedTextSettings settings)
 {
     if (string.IsNullOrEmpty(myText))
     {
         return;
     }
     // This should be a struct or deep cloned to prevent editing externally
     this.settings = settings;
     CreateDelayDictionary(settings.customTypeDelays, out customStringTypeTimeDictionary);
     CreateDelayDictionary(settings.customPostTypePause, out customPostTypePauseDictionary);
     targetText += myText;
     typing      = true;
     currentSplitStringIndex = 0;
     splitString             = GetSplitText(myText);
     TypeCurrentString();
 }