Example #1
0
            } // Davies Locker

            public LockerPiece(DaviesLocker table, int itemID) : base(itemID)
            {
                Movable = false;
                MoveToWorld(table.Location, table.Map);

                m_Table = table;
            }
Example #2
0
            } // Davies Locker

            public LockerPiece(DaviesLocker table, int itemID) : base(itemID)
            {
                Movable = false;
                MoveToWorld(table.Location, table.Map);

                m_Table = table;
            }
Example #3
0
        public void EndPlace(Mobile from, TableType type, Point3D loc)
        {
            DaviesLocker table = new DaviesLocker(from, type, loc);

            for (int i = 0; i < m_Entries.Count; ++i)
            {
                //BountyBoardEntry entry = (BountyBoardEntry) BountyBoard.Entries[i];
                DaviesDeedEntry e = (DaviesDeedEntry)this.Entries[i];
                table.m_Entries.Add(new DaviesLockerEntry(e.type, e.Level, e.Decoder, e.Map, e.Location2d, e.Location3d, e.Bounds, e.Mapnumber));
            }
            this.Delete();
            BaseHouse house = BaseHouse.FindHouseAt(table);

            if (house != null)
            {
                house.Addons.Add(table);
            }
        }
Example #4
0
            public override void Deserialize(GenericReader reader)
            {
                base.Deserialize(reader);

                int version = reader.ReadInt();

                switch (version)
                {
                case 0:
                {
                    m_Table = reader.ReadItem() as DaviesLocker;

                    if (m_Table == null)
                    {
                        Delete();
                    }

                    break;
                }
                }
            }
			public DaviesLockerTarget( DaviesLocker table ) : base( 18, false, TargetFlags.None )
			{
					m_Table = table;

			}
		public DaviesLockerGump( Mobile from, DaviesLocker Table ) : base( 0, 0 )
		{
			m_Table = Table;

			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;
			
			AddBackground();
			
  

			for ( int page = 0; page < 500; ++page )
			{
				AddPage( 1 + page );
				
				int pageplus; 
				pageplus = (m_Table.Entries.Count/10) + 1;
					if (pageplus > 50)
					pageplus = 50; 
				AddLabel( 110, 545, 2041, String.Format( "Page {0} of {1}", page+1, pageplus  ) );  // # of Pages
				
				if (page < 50)
				{
				AddButton( 625, 545, 4005, 4006, 0, GumpButtonType.Page, 2 + page );  // next button
				}
				AddLabel(550, 545, 2041, @"PAGE");  // Page Label
				AddButton( 500, 545, 4014, 4015, 0, GumpButtonType.Page, page );  // prev button

				
				AddLabel(550, 520, 2041, @"ADD MAPS"); 	// Add Map Label
				AddButton(500, 520, 4011, 4012, 1000, GumpButtonType.Reply, 0); //Add Map button
				
				for ( int count = 0; count < 10; ++count )
				{
					AddDetails( (page * 10) + count, count );
				}
			}
		}
 public void EndPlace(Mobile from, TableType type, Point3D loc)
 {
     DaviesLocker table = new DaviesLocker(from, type, loc);
     for (int i = 0; i < m_Entries.Count; ++i)
     {
         //BountyBoardEntry entry = (BountyBoardEntry) BountyBoard.Entries[i];
         DaviesDeedEntry e = (DaviesDeedEntry) Entries[i];
         table.m_Entries.Add(new DaviesLockerEntry(e.type, e.Level, e.Decoder, e.Map, e.Location2d, e.Location3d,
             e.Bounds, e.Mapnumber));
     }
     Delete();
     BaseHouse house = BaseHouse.FindHouseAt(table);
     if (house != null)
         house.Addons.Add(table);
 }
Example #8
0
            public override void Deserialize(GenericReader reader)
            {
                base.Deserialize(reader);

                int version = reader.ReadInt();

                switch (version)
                {
                    case 0:
                    {
                        m_Table = reader.ReadItem() as DaviesLocker;

                        if (m_Table == null)
                            Delete();

                        break;
                    }
                }
            }