Пример #1
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((RectArrayThreadParam)clon).rects = (Rectangle[])rects.Clone();
     ((RectArrayThreadParam)clon).objects = (object[])objects.Clone();
     ((RectArrayThreadParam)clon).speedMode = speedMode;
 }
Пример #2
0
 internal static AnimationControler.AnimePacket AnimeWaitPacket(string queueName, int time, bool queue, int queueLevel, object qOwner, AnimationControler.FinalCallback finalCallback)
 {
     AnimationControler.BaseThreadParam baseThreadParam = new AnimationControler.BaseThreadParam();
     baseThreadParam.time = time;
     baseThreadParam.QueueLevel = queueLevel;
     baseThreadParam.finalCallback = finalCallback;
     baseThreadParam.queueName = queueName;
     return new AnimationControler.AnimePacket() { isQueue = queue && queueLevel >= 0, queueOwner = qOwner, method = Wait, threadParam = baseThreadParam };
 }
Пример #3
0
        private static void Wait(object baseThreadParam)
        {
            AnimationControler.BaseThreadParam td = (AnimationControler.BaseThreadParam)baseThreadParam;
            StepProcesor procesor = new StepProcesor(AnimationControler.GetIterations(td.time), td.time);

            procesor.Start((d) => { if (td.animatorState.Canceled) d.Cancel = true; });

            td.controlState.AnimatorEnd(td.animatorState);
        }
Пример #4
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((LocationThreadParam)clon).location = location;
     ((LocationThreadParam)clon).speedMode = speedMode;
 }
Пример #5
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((ColorThreadParam)clon).color = color;
     ((ColorThreadParam)clon).speedMode = speedMode;
 }
Пример #6
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((HiglightThreadParam)clon).HiglightPercent = HiglightPercent;
 }
Пример #7
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((IntValueThreadParam)clon).value = value;
     ((IntValueThreadParam)clon).speedMode = speedMode;
 }
Пример #8
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((CustomThreadParam) clon).customMethod = customMethod;
     ((CustomThreadParam) clon).MaxIteration = MaxIteration;
 }
Пример #9
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((RectThreadParam)clon).rect = rect;
     ((RectThreadParam)clon).speedMode = speedMode;
 }
Пример #10
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((SizeThreadParam)clon).size = size;
     ((SizeThreadParam)clon).speedMode = speedMode;
 }