Exemple #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;
 }
Exemple #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 };
 }
Exemple #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);
        }
Exemple #4
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((LocationThreadParam)clon).location = location;
     ((LocationThreadParam)clon).speedMode = speedMode;
 }
Exemple #5
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((ColorThreadParam)clon).color = color;
     ((ColorThreadParam)clon).speedMode = speedMode;
 }
Exemple #6
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((HiglightThreadParam)clon).HiglightPercent = HiglightPercent;
 }
Exemple #7
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((IntValueThreadParam)clon).value = value;
     ((IntValueThreadParam)clon).speedMode = speedMode;
 }
Exemple #8
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((CustomThreadParam) clon).customMethod = customMethod;
     ((CustomThreadParam) clon).MaxIteration = MaxIteration;
 }
Exemple #9
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((RectThreadParam)clon).rect = rect;
     ((RectThreadParam)clon).speedMode = speedMode;
 }
Exemple #10
0
 protected override void CloneTo(AnimationControler.BaseThreadParam clon)
 {
     base.CloneTo(clon);
     ((SizeThreadParam)clon).size = size;
     ((SizeThreadParam)clon).speedMode = speedMode;
 }