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

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

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

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

            NextFrame = 0;
            ExecutedLoops = 0;
        }
Ejemplo n.º 8
0
        public override void StartWithTarget(CozyNode target)
        {
            base.StartWithTarget(target);

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

            NextFrame     = 0;
            ExecutedLoops = 0;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
                    }
                }
            }
        }
Ejemplo n.º 12
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     PositionDelta = EndPosition - StartPosition;
 }
Ejemplo n.º 13
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Split = Actions[0].Duration / Duration;
     Last  = -1;
 }
Ejemplo n.º 14
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Elapsed = 0.0f;
     FirstTick = true;
 }
Ejemplo n.º 15
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Elapsed   = 0.0f;
     FirstTick = true;
 }
Ejemplo n.º 16
0
 public virtual void StartWithTarget(CozyNode target)
 {
     OriginalTarget = Target = target;
 }
Ejemplo n.º 17
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     Split   = Actions[0].Duration / Duration;
     Last    = -1;
 }
Ejemplo n.º 18
0
 public override void StartWithTarget(CozyNode target)
 {
     base.StartWithTarget(target);
     StartPosition = target.Position;
 }
Ejemplo n.º 19
0
 public void DetachChild(CozyNode child)
 {
     child.Parent = null;
     Children.Remove(child);
 }
Ejemplo n.º 20
0
 public void InsertChild(CozyNode child, int zorder = 0)
 {
     child.ZOrder = zorder;
     Children.Add(child);
     IsChildDirty = true;
 }
Ejemplo n.º 21
0
 public void DetachChild(CozyNode child)
 {
     child.Parent = null;
     Children.Remove(child);
 }
Ejemplo n.º 22
0
        public void AddChind(CozyNode child, int zorder = 0)
        {
            if (child == null) return;

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

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