public override void OnUpdateScaling() { animator = new Animation.AngleAnimation(this, Animation.AngleAnimation.StartPoint.TopLeft, Helper.GetScreenMiddle(Style.WindowWidth, Style.WindowHeight)); if (animator is Animation.AngleAnimation anim) { anim.Speed = 1.5f; } }
//sort later public ProfilePanel() : base(nameof(ProfilePanel), GUILayers.ProfilePanel) { animator = new Animation.AngleAnimation(this, Animation.AngleAnimation.StartPoint.TopLeft, Helper.GetScreenMiddle(Style.WindowWidth, Style.WindowHeight)); if (animator is Animation.AngleAnimation anim) { anim.Speed = 1.5f; } }