Example #1
0
        void TimerAnimation_Tick(object sender, EventArgs e)
        {
            if (Deployed)
            {
                if (OriginalHeight - this.Height == 1)
                {
                    this.Height = OriginalHeight;
                    TimerAnimation.Stop();
                }
                else
                {
                    this.Height += (int)Math.Ceiling((OriginalHeight - this.Height) / 5.0);
                }
            }
            else
            {
                if (this.Height - ReducedHeight == 1)
                {
                    this.Height = ReducedHeight;
                    TimerAnimation.Stop();
                    foreach (Control c in Controls)
                    {
                        c.Visible = false;
                    }

                    ButtonArrow.Visible = true;
                    ButtonArrow.Focus();
                }
                else
                {
                    this.Height -= (int)Math.Ceiling((this.Height - ReducedHeight) / 5.0);
                }
            }
        }
Example #2
0
 public BeginForm(string file)
 {
     InitializeComponent();
     _watch.Path   = Path.GetDirectoryName(file);
     _watch.Filter = Path.GetFileName(file);
     ReadFile(file);
     Focus();
     TimerAnimation.Start();
 }
Example #3
0
 //timer animation has completed, go to next dialogue
 void TimerComplete(TimerAnimation timerAnim)
 {
     if (timerAnim == timer)
     {
         //Debug.Log("Timer: "+ dialogue);
         timer.animationCompleteDelegate = null;
         //dialogue.owner.UpdateToNextSprite();
         dialogue.owner.SetDialogue(dialogue.nextDialogue);
     }
 }