예제 #1
0
            public HolidayMistletoeAddonGump(Mobile from, HolidayMistletoeAddon addon) : base(150, 50)
            {
                m_From  = from;
                m_Addon = addon;

                AddPage(0);

                AddBackground(0, 0, 220, 170, 0x13BE);
                AddBackground(10, 10, 200, 150, 0xBB8);
                AddHtmlLocalized(20, 30, 180, 60, 1062839, false, false);                   // Do you wish to re-deed this decoration?
                AddHtmlLocalized(55, 100, 160, 25, 1011011, false, false);                  // CONTINUE
                AddButton(20, 100, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(55, 125, 160, 25, 1011012, false, false);                  // CANCEL
                AddButton(20, 125, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0);
            }
예제 #2
0
        private void PlaceAddon(Mobile from, Point3D loc, bool northWall, bool westWall)
        {
            if (Deleted)
            {
                return;
            }

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

            if (house == null || !house.IsCoOwner(from))
            {
                from.SendLocalizedMessage(1042036);                   // That location is not in your house.
                return;
            }

            int itemID = 0;

            if (northWall)
            {
                itemID = 0x2374;
            }
            else if (westWall)
            {
                itemID = 0x2375;
            }
            else
            {
                from.SendLocalizedMessage(1070883);                   // The HolidayMistletoe must be placed next to a wall.
            }
            if (itemID > 0)
            {
                Item addon = new HolidayMistletoeAddon(this.Hue, this.HolidayYear);

                addon.ItemID = itemID;
                addon.MoveToWorld(loc, from.Map);

                house.Addons.Add(addon);
                Delete();
            }
        }
예제 #3
0
		private void PlaceAddon( Mobile from, Point3D loc, bool northWall, bool westWall )
		{
			if ( Deleted )
				return;

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

			if ( house == null || !house.IsCoOwner( from ) )
			{
				from.SendLocalizedMessage( 1042036 ); // That location is not in your house.
				return;
			}

			int itemID = 0;

			if ( northWall )
				itemID = 0x2374;
			else if ( westWall )
				itemID = 0x2375;
			else
				from.SendLocalizedMessage( 1070883 ); // The HolidayMistletoe must be placed next to a wall.

			if ( itemID > 0 )
			{
				Item addon = new HolidayMistletoeAddon( this.Hue, this.HolidayYear );

				addon.ItemID = itemID;
				addon.MoveToWorld( loc, from.Map );

				house.Addons.Add( addon );
				Delete();
			}
		}
예제 #4
0
			public HolidayMistletoeAddonGump( Mobile from, HolidayMistletoeAddon addon ) : base( 150, 50 )
			{
				m_From = from;
				m_Addon = addon;

				AddPage( 0 );

				AddBackground( 0, 0, 220, 170, 0x13BE );
				AddBackground( 10, 10, 200, 150, 0xBB8 );
				AddHtmlLocalized( 20, 30, 180, 60, 1062839, false, false ); // Do you wish to re-deed this decoration?
				AddHtmlLocalized( 55, 100, 160, 25, 1011011, false, false ); // CONTINUE
				AddButton( 20, 100, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 );
				AddHtmlLocalized( 55, 125, 160, 25, 1011012, false, false ); // CANCEL
				AddButton( 20, 125, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0 );
			}