Beispiel #1
0
        public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list)
        {
            base.GetContextMenuEntries(from, list);
            SetSecureLevelEntry.AddTo(from, this, list);

            if (ContainerRenamePrompt.HasAccess(from, this))
            {
                list.Add(new ContainerRenameEntry(from, this));
            }
        }
 public override void OnClick()
 {
     if (ContainerRenamePrompt.HasAccess(this.Mobile, this.Container))
     {
         this.Mobile.SendMessage("What name do you want to give it?");
         this.Mobile.SendMessage("(Press ESC to cancel)");
         this.Mobile.Prompt = new ContainerRenamePrompt(this.Container);
     }
     else
     {
         this.Mobile.SendLocalizedMessage(500447); // That is not accessible.
     }
 }