Exemple #1
0
 public override void StartWithTarget(CozyNode target)
 {
     Total  = 0;
     NextDt = InnerAction.Duration / Duration;
     base.StartWithTarget(target);
     InnerAction.StartWithTarget(target);
 }
Exemple #2
0
 public override void StartWithTarget(CozyNode target)
 {
     Total = 0;
     NextDt = InnerAction.Duration / Duration;
     base.StartWithTarget(target);
     InnerAction.StartWithTarget(target);
 }
Exemple #3
0
 public void RemoveAllActionsWithTarget(CozyNode target)
 {
     if(Targets.ContainsKey(target))
     {
         Targets[target].Clear();
         Targets.Remove(target);
     }
 }
Exemple #4
0
 public void RemoveAllActionsWithTarget(CozyNode target)
 {
     if (Targets.ContainsKey(target))
     {
         Targets[target].Clear();
         Targets.Remove(target);
     }
 }
Exemple #5
0
        public void AddChind(CozyNode child, int zorder = 0)
        {
            if (child == null)
            {
                return;
            }

            InsertChild(child, zorder);
            child.Parent = this;
        }
Exemple #6
0
        public void RemoveChild(CozyNode child)
        {
            if (Children.Count <= 0)
            {
                return;
            }

            if (Children.Contains(child))
            {
                DetachChild(child);
            }
        }
Exemple #7
0
        public override void StartWithTarget(CozyNode target)
        {
            base.StartWithTarget(target);

            if(Animaction.RestoreOriginalFrame)
            {
                OrigFrame = (Target as CozySprite).Texture;
            }

            NextFrame = 0;
            ExecutedLoops = 0;
        }
Exemple #8
0
        public override void StartWithTarget(CozyNode target)
        {
            base.StartWithTarget(target);

            if (Animaction.RestoreOriginalFrame)
            {
                OrigFrame = (Target as CozySprite).Texture;
            }

            NextFrame     = 0;
            ExecutedLoops = 0;
        }
Exemple #9
0
        public void AddAction(CozyAction action, CozyNode node, bool paused = false)
        {
            List<CozyAction> elemt = null;
            if(Targets.ContainsKey(node))
            {
                elemt = Targets[node];
            }
            else
            {
                elemt = new List<CozyAction>();
                Targets[node] = elemt;
            }

            elemt.Add(action);

            action.StartWithTarget(node);
        }
Exemple #10
0
        public void AddAction(CozyAction action, CozyNode node, bool paused = false)
        {
            List <CozyAction> elemt = null;

            if (Targets.ContainsKey(node))
            {
                elemt = Targets[node];
            }
            else
            {
                elemt         = new List <CozyAction>();
                Targets[node] = elemt;
            }

            elemt.Add(action);

            action.StartWithTarget(node);
        }
Exemple #11
0
        public void RemoveAction(CozyAction action)
        {
            CozyNode target = action.OriginalTarget;

            if (target != null)
            {
                if (Targets.ContainsKey(target))
                {
                    var elemt = Targets[target];

                    int index = elemt.IndexOf(action);
                    if (index != -1)
                    {
                        elemt.RemoveAt(index);
                    }
                }
            }
        }
Exemple #12
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     PositionDelta = EndPosition - StartPosition;
 }
Exemple #13
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Split = Actions[0].Duration / Duration;
     Last  = -1;
 }
Exemple #14
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Elapsed = 0.0f;
     FirstTick = true;
 }
Exemple #15
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Elapsed   = 0.0f;
     FirstTick = true;
 }
Exemple #16
0
 public virtual void StartWithTarget(CozyNode target)
 {
     OriginalTarget = Target = target;
 }
Exemple #17
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Split   = Actions[0].Duration / Duration;
     Last    = -1;
 }
Exemple #18
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     StartPosition = target.Position;
 }
Exemple #19
0
 public void DetachChild(CozyNode child)
 {
     child.Parent = null;
     Children.Remove(child);
 }
Exemple #20
0
 public void InsertChild(CozyNode child, int zorder = 0)
 {
     child.ZOrder = zorder;
     Children.Add(child);
     IsChildDirty = true;
 }
Exemple #21
0
 public void DetachChild(CozyNode child)
 {
     child.Parent = null;
     Children.Remove(child);
 }
Exemple #22
0
        public void AddChind(CozyNode child, int zorder = 0)
        {
            if (child == null) return;

            InsertChild(child, zorder);
            child.Parent = this;
        }
Exemple #23
0
 public virtual void StartWithTarget(CozyNode target)
 {
     OriginalTarget = Target = target;
 }
Exemple #24
0
        public void RemoveChild(CozyNode child)
        {
            if (Children.Count <= 0) return;

            if(Children.Contains(child))
            {
                DetachChild(child);
            }
        }
Exemple #25
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     StartPosition = target.Position;
 }
Exemple #26
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     PositionDelta = EndPosition - StartPosition;
 }
Exemple #27
0
 public void InsertChild(CozyNode child, int zorder = 0)
 {
     child.ZOrder = zorder;
     Children.Add(child);
     IsChildDirty = true;
 }