Ejemplo n.º 1
0
 public HolidayTreeChoiceMenu(Mobile from, HolidayTreeDeed deed)
     : base("What kind of holiday tree do you want to place?",
            new string[] { "Classic",
                           "Modern" })
 {
     m_From = from;
     m_Deed = deed;
 }
Ejemplo n.º 2
0
 public HolidayTreeChoiceMenu(Mobile from, HolidayTreeDeed deed)
     : base("What kind of holiday tree do you want to place?",
         new string[] { "Classic",
         "Modern"})
 {
     m_From = from;
     m_Deed = deed;
 }
Ejemplo n.º 3
0
 public void ValidatePlacement()
 {
     if (BaseHouse.FindHouseAt(this) == null)
     {
         var deed = new HolidayTreeDeed();
         deed.MoveToWorld(Location, Map);
         Delete();
     }
 }
Ejemplo n.º 4
0
        public void ValidatePlacement()
        {
            BaseHouse house = BaseHouse.FindHouseAt(this);

            if (house == null)
            {
                HolidayTreeDeed deed = new HolidayTreeDeed();
                deed.MoveToWorld(this.Location, this.Map);
                this.Delete();
            }
        }
Ejemplo n.º 5
0
        public HolidayTreeChoiceGump(Mobile from, HolidayTreeDeed deed) : base(200, 200)
        {
            m_From = from;
            m_Deed = deed;

            AddPage(0);

            AddBackground(0, 0, 220, 120, 5054);
            AddBackground(10, 10, 200, 100, 3000);

            AddButton(20, 35, 4005, 4007, 1);
            AddHtmlLocalized(55, 35, 145, 25, 1018322); // Classic

            AddButton(20, 65, 4005, 4007, 2);
            AddHtmlLocalized(55, 65, 145, 25, 1018321); // Modern
        }
Ejemplo n.º 6
0
        public HolidayTreeChoiceGump(Mobile from, HolidayTreeDeed deed) : base(200, 200)
        {
            this.m_From = from;
            this.m_Deed = deed;

            this.AddPage(0);

            this.AddBackground(0, 0, 220, 120, 5054);
            this.AddBackground(10, 10, 200, 100, 3000);

            this.AddButton(20, 35, 4005, 4007, 1, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(55, 35, 145, 25, 1018322, false, false); // Classic

            this.AddButton(20, 65, 4005, 4007, 2, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(55, 65, 145, 25, 1018321, false, false); // Modern
        }
Ejemplo n.º 7
0
        public HolidayTreeChoiceGump( Mobile from, HolidayTreeDeed deed )
            : base(200, 200)
        {
            m_From = from;
            m_Deed = deed;

            AddPage( 0 );

            AddBackground( 0, 0, 220, 120, 5054 );
            AddBackground( 10, 10, 200, 100, 3000 );

            AddButton( 20, 35, 4005, 4007, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 55, 35, 145, 25, 1018322, false, false ); // Classic

            AddButton( 20, 65, 4005, 4007, 2, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 55, 65, 145, 25, 1018321, false, false ); // Modern
        }
Ejemplo n.º 8
0
        public HolidayTreeChoiceGump(Mobile from, HolidayTreeDeed deed)
            : base(200, 200)
        {
            m_From = from;
            m_Deed = deed;

            AddPage(0);

            AddBackground(0, 0, 200, 180, 5054);
            AddBackground(10, 10, 180, 160, 3000);

            AddButton(20, 35, 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(55, 35, 145, 25, 1018322, false, false);               // Classic

            AddButton(20, 65, 4005, 4007, 2, GumpButtonType.Reply, 0);
            AddHtmlLocalized(55, 65, 145, 25, 1018321, false, false);               // Modern

            AddButton(20, 95, 4005, 4007, 3, GumpButtonType.Reply, 0);
            AddHtmlLocalized(55, 95, 145, 25, 1095240, false, false);               // Classic (Bare)

            AddButton(20, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);
            AddHtmlLocalized(55, 125, 145, 25, 1095241, false, false);               // Modern (Bare)
        }
Ejemplo n.º 9
0
		public void ValidatePlacement()
		{
			BaseHouse house = BaseHouse.FindHouseAt( this );

			if ( house == null )
			{
				HolidayTreeDeed deed = new HolidayTreeDeed();
				deed.MoveToWorld( Location, Map );
				Delete();
			}
		}