private void UC_MouseLeave(object sender, MouseEventArgs e) { if (!(sender as Menu).IsPressed) { AnimationLib.ChangeBackgroundColor(sender as Menu, Color.FromRgb(0x00, 0x77, 0x9F), 0.2); } }
private void DoAnimation() { // AYY LMAO int DeltaVariation = -100; AnimationLib.MoveToTargetY(this.CB_Debug, DeltaVariation, 0.25, 50); AnimationLib.MoveToTargetY(this.LBL_UpTime, DeltaVariation, 0.25, 100); AnimationLib.MoveToTargetY(this.img_Timer, DeltaVariation, 0.25, 110); AnimationLib.MoveToTargetY(this.LBL_IP, DeltaVariation, 0.25, 200); AnimationLib.MoveToTargetY(this.img_Internet, DeltaVariation, 0.25, 210); AnimationLib.MoveToTargetY(this.MainRectangle, -DeltaVariation, 0.25, 250); AnimationLib.MoveToTargetY(this.UC_Menu, -DeltaVariation, 0.25, 300); AnimationLib.MoveToTargetY(this.UC_Menu_Background, -DeltaVariation, 0.25, 300); AnimationLib.MoveToTargetY(this.RBase, -DeltaVariation, 0.25, 325); AnimationLib.MoveToTargetY(this.UC_Commands, -DeltaVariation, 0.25, 350); AnimationLib.MoveToTargetY(this.R1, -DeltaVariation, 0.25, 375); AnimationLib.MoveToTargetY(this.UC_Utility, -DeltaVariation, 0.25, 400); AnimationLib.MoveToTargetY(this.R2, -DeltaVariation, 0.25, 425); AnimationLib.MoveToTargetY(this.UC_PlayerInfo, -DeltaVariation, 0.25, 450); AnimationLib.MoveToTargetY(this.R3, -DeltaVariation, 0.25, 475); AnimationLib.MoveToTargetY(this.UC_Restart, -DeltaVariation, 0.25, 500); AnimationLib.MoveToTargetX(this.BTN_LaunchServer, DeltaVariation - 100, 0.25, 100); AnimationLib.MoveToTargetX(this.listBox, DeltaVariation - 100, 0.3, 200); AnimationLib.MoveToTargetX(this.label_player, DeltaVariation - 100, 0.35, 200); AnimationLib.MoveToTargetX(this.img_Players, DeltaVariation - 100, 0.35, 230); AnimationLib.MoveToTargetX(this.BTN_Enter, -DeltaVariation * 7, 0.4, 150); AnimationLib.MoveToTargetX(this.CommandLine, -DeltaVariation * 7, 0.4, 250); AnimationLib.MoveToTargetX(this.img_Text, -DeltaVariation * 7, 0.4, 280); AnimationLib.MoveToTargetX(this.RTB_Console, -DeltaVariation * 7, 0.3, 300); AnimationLib.MoveToTargetX(this.label_console, -DeltaVariation * 7, 0.35, 300); AnimationLib.MoveToTargetX(this.img_Console, -DeltaVariation * 7, 0.35, 330); }
// Events for SubCommands private void USC_MouseLeave(object sender, MouseEventArgs e) { AnimationLib.ChangeBackgroundColor(sender as Menu, Color.FromRgb(0x00, 0x77, 0x9F), 0.2); AnimationLib.MoveToTargetXwoMargin(sender as Control, 0, 10, .2); }
private void UC_MouseEnter(object sender, MouseEventArgs e) { AnimationLib.ChangeBackgroundColor(sender as Menu, Color.FromRgb(0x00, 0x4c, 0x65), 0.2); }
private void UC_Menu_MouseLeave(object sender, MouseEventArgs e) { AnimationLib.ChangeBackgroundBorderColor(this.UC_Menu_Background, Color.FromRgb(0x00, 0x77, 0x9F), 0.2); }
private void USC_MouseEnter(object sender, MouseEventArgs e) { AnimationLib.ChangeBackgroundColor((sender as UI.UC.Menu), Color.FromRgb(0x00, 0x4c, 0x65), 0.2); AnimationLib.MoveToTargetXwoMargin((sender as Control), 10, 0, .2); }