Ejemplo n.º 1
0
 protected override void AvatarAnimationHandler(object sender, AvatarAnimationEventArgs e)
 {
     if (e.AvatarID == Client.Self.AgentID)
     {
         foreach (Animation startani in e.Animations)
         {
             if (active_animations.Contains(startani.AnimationID) == false)
             {
                 active_animations.Add(startani.AnimationID);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void Avatars_OnAvatarAnimation(object sender, AvatarAnimationEventArgs e)
 {
     if (!MaintainAnims)
     {
         return;
     }
     EventQueue.Enqueue(() =>
     {
         SimAvatar avatar = (SimAvatar)CreateSimAvatar(e.AvatarID, this, null);
         if (avatar == null)
         {
             return;
         }
         if (UseEventSource(avatar))
         {
             avatar.OnAvatarAnimations(e.Animations);
         }
     });
 }
Ejemplo n.º 3
0
 void Avatars_AvatarAnimation(object sender, AvatarAnimationEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke(new MethodInvoker(() => Avatars_AvatarAnimation(sender, e)));
         return;
     }
     if (e.AvatarID == av.ID)
     {
         foreach (Animation a in e.Animations)
         {
             if (!seenAnim.Contains(a.AnimationID))
             {
                 Logger.Log("New anim for " + av.Name + ": " + a.AnimationID, Helpers.LogLevel.Debug);
                 seenAnim.Add(a.AnimationID);
                 AnimDetail ad = new AnimDetail(instance, av, a.AnimationID, n);
                 ad.Location = new Point(0, n++ *ad.Height);
                 ad.Dock     = DockStyle.Top;
                 Controls.Add(ad);
             }
         }
     }
 }
Ejemplo n.º 4
0
 protected virtual void AvatarAnimationHandler(object sender, AvatarAnimationEventArgs e)
 {
     ConsoleLog.Debug("AvatarAnimationHandler proc not overridden");
 }