//Control del menu private void MouseDetect_Tick(object sender, EventArgs e) { if (!BunifuTransition1.IsCompleted) { return; } else if (panel_Color1.ClientRectangle.Contains(PointToClient(Control.MousePosition))) { if (!MenuDesplegado) { MenuDesplegado = true; panel_Color1.Visible = false; panel_Color1.Width = 187; BunifuTransition1.Show(panel_Color1); } } else { if (MenuDesplegado) { MenuDesplegado = false; panel_Color1.Visible = false; panel_Color1.Width = 41; panel_Color1.Visible = true; } } }
public void Animate_BackLogo() { if (pictureBox4.Visible == true) { BunifuTransition1.HideSync(pictureBox4); } pictureBox4.Visible = false; //pictureBox4.BringToFront(); BunifuTransition1.AnimationType = AnimationType; BunifuTransition1.ShowSync(pictureBox4); if (AnimationType == (AnimationType)13) { AnimationType = (AnimationType)1; } else { AnimationType += 1; } }