Esempio n. 1
0
    	public MailBoxOptionsGump(Mobile from, Mailbox mailbox) : base( 100, 100 )
        {
    		m_mailbox = mailbox;
    		
            this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;

			AddPage(0);
			AddBackground(0, 0, 357, 259, 2620);//background immage
			AddImage(13, 190, 2152);//help info blank button
			AddImage(13, 220, 2154);//help info checked button
			AddImage(309, 180, 9004);//signature stamp graphic
			AddItem(13, 15, 16706);//mailbox graphic
			AddImage(137, 21, 5001);//option graphic
			AddLabel(151, 5, 38, @"Mailbox");//title mailbox
			AddLabel(70, 116, 1149, @"Public can drop into mailbox?");
			AddLabel(70, 86, 1149, "Public can open to look inside mailbox?");
			AddLabel(70, 56, 1149, @"Public can see this mailbox?");
			AddLabel(15, 166, 1149, @"Information help:");
			AddLabel(48, 194, 1149, @"This meens no they can not.");
			AddLabel(48, 225, 1149, @"This meens yes they can.");
			AddButton(334, 9, 3, 4, 0, GumpButtonType.Reply, 0);//X  close button
			//		x,y,color, @=center?
			
			//for button of can see the mailbox
//			AddButton(264, 110, 2151, 2154, 0, GumpButtonType.Reply, 0);//button can see this is checked
//			AddButton(320, 80, 2151, 2154, 0, GumpButtonType.Reply, 0);//button can open this is not checked
			//2152 pressed, 2154 checked, 2151 notchecked
			// x y normal pressed calltonumber
			
			if (mailbox.Visible == true)
				AddButton(248, 50, 2154, 2152, 1, GumpButtonType.Reply, 0);
			if (mailbox.Visible == false)
				AddButton(248, 50, 2151, 2152, 2, GumpButtonType.Reply, 0);
			
			
			if (mailbox.PublicCanOpen == true)
				AddButton(311, 80, 2154, 2152, 3, GumpButtonType.Reply, 0);
			if (mailbox.PublicCanOpen == false)
				AddButton(311, 80, 2151, 2152, 4, GumpButtonType.Reply, 0);
			
			
			if (mailbox.PublicCanDrop == true)
				AddButton(258, 110, 2154, 2152, 5, GumpButtonType.Reply, 0);
			if (mailbox.PublicCanDrop == false)
				AddButton(258, 110, 2151, 2152, 6, GumpButtonType.Reply, 0);
    	}
Esempio n. 2
0
 public mailboxoptionsgumpCME(Mobile from, Mailbox mailbox)
     : base(0127)                //5070=Done>>//0127 options
 {
     contextmenu_from    = from;
     contextmenu_mailbox = mailbox;
 }
Esempio n. 3
0
		public void Placement_OnTarget( Mobile from, object targeted, object state )
		{
			IPoint3D p = targeted as IPoint3D;
			Map map = from.Map;

			if ( p == null )
				return;

			Point3D loc = new Point3D( p );

			BaseHouse house = BaseHouse.FindHouseAt( loc, from.Map, 16 );

			if ( house != null && house.IsOwner( from ) )
			{
				Mailbox mailbox = new Mailbox( );
				mailbox.MoveToWorld( new Point3D( p ), map );
				Delete();
				mailbox.Owner = from;
//				house.Addons.Add(mailbox);
				house.AddSecure(from,mailbox);
			}
			else
			{
				from.SendMessage(38,"You don't Own that property. You can only place this Mailbox on house property you own.");
			}
		}
Esempio n. 4
0
		private void AdjustMailboxFlagDown(Mailbox mailbox)
		{
			if ( ItemID == 0x4141 )
				this.ItemID = 0x4142;
			if ( ItemID == 0x4143 )
				this.ItemID = 0x4144;
		}
Esempio n. 5
0
        private void AdjustMailboxFlagUp(Mailbox mailbox)
		{
			if (this.ItemID == 0x4142 )
				this.ItemID = 0x4141;
			if (this.ItemID == 0x4144 )
				this.ItemID = 0x4143;
		}
Esempio n. 6
0
			public isSECUREDsecuritysettingsCME(Mobile from, Mailbox mailbox, BaseHouse house)
				: base(6203)//5070=Done>>//6203 Security settings
			{
				contextmenu_from = from;
				contextmenu_mailbox = mailbox;
				contextmenu_house = house;					
			}
Esempio n. 7
0
			public mailboxoptionsgumpCME(Mobile from, Mailbox mailbox)
				: base(0127)//5070=Done>>//0127 options
			{
				contextmenu_from = from;
				contextmenu_mailbox = mailbox;
			}