Esempio n. 1
0
 public override void Reset(VMContext context)
 {
     base.Reset(context);
     if (Animations != null)
     {
         Animations.Clear();
     }
     if (Headline != null)
     {
         HeadlineRenderer.Dispose();
         Headline         = null;
         HeadlineRenderer = null;
     }
     foreach (var aprName in BoundAppearances)
     {
         //remove all appearances, so we don't have stuff stuck to us.
         var apr = FSO.Content.Content.Get().AvatarAppearances.Get(aprName);
         Avatar.RemoveAccessory(apr);
     }
     BoundAppearances.Clear();
     if (context.VM.EODHost != null)
     {
         context.VM.EODHost.ForceDisconnect(this);
     }
 }
Esempio n. 2
0
        public void ShowMoneyHeadline(int value)
        {
            if (HeadlineRenderer != null)
            {
                HeadlineRenderer.Dispose();
            }

            //(int)(headline.Operand.Flags2 | (ushort)(headline.Operand.Duration << 16));
            uint uval = (uint)value;

            Headline = new VMRuntimeHeadline(new VMSetBalloonHeadlineOperand
            {
                Group    = VMSetBalloonHeadlineOperandGroup.Money,
                Flags2   = (ushort)(uval),
                Duration = (short)(uval >> 16)
            }, this, null, 0);
            Headline.Duration = 60;
            HeadlineRenderer  = Thread?.Context.VM.Headline.Get(Headline);
        }