예제 #1
0
 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;
     }
 }
예제 #2
0
        //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;
            }
        }