Beispiel #1
0
 private void AddText(string tx)
 {
     //Thread.Sleep(500);
     ShowText = tx;
     ShowTime = tx.Length;
     if (onType == 0)
     {
         TutorialText.Text = "";
     }
     else if (onType == 1)
     {
         CharacterText.Text = "";
     }
     Showntimer.Start();
 }
Beispiel #2
0
 private void Showntimer_Tick(object sender, EventArgs e)
 {
     if (ShowTime == 0)
     {
         Showntimer.Stop();
     }
     else
     {
         if (onType == 0)
         {
             TutorialText.Text = ShowText.Substring(0, ShowText.Length - ShowTime);
         }
         else if (onType == 1)
         {
             CharacterText.Text = ShowText.Substring(0, ShowText.Length - ShowTime);
         }
         ShowTime--;
     }
 }
Beispiel #3
0
 private void TurtorialText_MouseClick(object sender, MouseEventArgs e)
 {
     TutorialText.Text = ShowText;
     Showntimer.Stop();
     ShowTime = 0;
 }