コード例 #1
0
ファイル: Animation.cs プロジェクト: JanBalke420/MusikApp
        public Animation(Control parent, string name, int transform, List <KeyFrame> keyFrames, int ms, AnimationTimer ticker)
        {
            animationTicker = ticker;
            animationTicker.AddAnimation(this);
            this.transform = transform;
            this.parent    = parent;

            this.iterations = (ms / animationTicker.Interval) + 1;

            this.name = name;
        }
コード例 #2
0
ファイル: Animation.cs プロジェクト: JanBalke420/MusikApp
        public Animation(Control parent, string name, int transform, int a, int b, int ms, AnimationTimer ticker)
        {
            animationTicker = ticker;
            animationTicker.AddAnimation(this);
            this.transform = transform;
            this.parent    = parent;

            this.iterations = (ms / animationTicker.Interval) + 1;

            this.name = name;

            if (this.transform == 0)
            {
                this.x = a;
                this.y = b;
            }
            else if (this.transform == 1)
            {
                this.w = a;
                this.h = b;
            }
        }