Ejemplo n.º 1
0
 protected TextBox(string text, Color color, TextEffect effect, string soundLocation, float timePerLetter)
 {
     this.textArray     = Regex.Matches(text, "(<.*?>)|\\.|.").Cast <Match>().Select(m => m.Value).ToArray(); //Splits by rich text, then letters
     this.rawText       = text;
     this.color         = color;
     this.timePerLetter = timePerLetter;
     this.soundLoc      = soundLocation;
     this.effect        = effect;
     this.tooltip       = new TooltipBundle();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TextBox"/> class.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="tooltip">The tooltip.</param>
 public TextBox(string text, TooltipBundle tooltip) : this(text) {
     this.tooltip = tooltip;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Setups the specified bundle.
 /// </summary>
 /// <param name="bundle">The bundle.</param>
 public void Setup(TooltipBundle bundle)
 {
     this.sprite = bundle.Sprite;
     this.title  = bundle.Title;
     this.body   = bundle.Text;
 }