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