예제 #1
0
파일: MainGUI.cs 프로젝트: pdjdev/monZi
 private void Transani_Tick(object sender, EventArgs e)
 {
     if (ShowingMenu)
     {
         if ((MenuPanel.Height + transnum <= MainPanel.Height))
         {
             transnum         += dpicalc(this, 2);
             MenuPanel.Height += transnum;
         }
         else
         {
             MenuPanel.Dock = DockStyle.Fill;
             Transani.Stop();
         }
     }
     else if ((MenuPanel.Height - transnum >= 1))
     {
         transnum         += dpicalc(this, 2);
         MenuPanel.Height -= transnum;
     }
     else
     {
         MenuPanel.Visible = false;
         ShowingMenu       = false;
         MenuPanel.Dock    = DockStyle.Top;
         Transani.Stop();
     }
 }
예제 #2
0
파일: MainGUI.cs 프로젝트: pdjdev/monZi
        public void ModeChange()
        {
            if (ShowingMenu)
            {
                if (My.Settings.AniEnabled)
                {
                    transnum         = 0;
                    MenuPanel.Dock   = DockStyle.Top;
                    MenuPanel.Height = 1;
                    Transani.Start();
                }
                else
                {
                    MenuPanel.Dock = DockStyle.Fill;
                }

                MenuPanel.Visible = true;
            }
            else if (My.Settings.AniEnabled)
            {
                transnum         = 0;
                MenuPanel.Dock   = DockStyle.Top;
                MenuPanel.Height = MainPanel.Height;
                Transani.Start();
            }
            else
            {
                MenuPanel.Visible = false;
            }
        }