public MistletoeAddonGump(Mobile from, MistletoeAddon 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); }
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 mistletoe must be placed next to a wall. } if (itemID > 0) { Item addon = new MistletoeAddon(Hue) { ItemID = itemID }; addon.MoveToWorld(loc, from.Map); house.Addons[addon] = from; Delete(); } }
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.SendAsciiMessage("That location is not in your house."); return; } int itemID = 0; if (northWall) { itemID = 0x2374; } else if (westWall) { itemID = 0x2375; } else { from.SendAsciiMessage("The mistletoe must be placed next to a wall."); } if (itemID > 0) { Item addon = new MistletoeAddon(this.Hue); addon.ItemID = itemID; addon.MoveToWorld(loc, from.Map); house.Addons.Add(addon); Delete(); } }
private void PlaceAddon(Mobile from, Point3D loc, bool northWall, bool westWall) { if (this.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 mistletoe must be placed next to a wall. if (itemID > 0) { Item addon = new MistletoeAddon(this.Hue); addon.ItemID = itemID; addon.MoveToWorld(loc, from.Map); house.Addons.Add(addon); this.Delete(); } }
public MistletoeAddonGump(Mobile from, MistletoeAddon addon) : base(150, 50) { this.m_From = from; this.m_Addon = addon; this.AddPage(0); this.AddBackground(0, 0, 220, 170, 0x13BE); this.AddBackground(10, 10, 200, 150, 0xBB8); this.AddHtmlLocalized(20, 30, 180, 60, 1062839, false, false); // Do you wish to re-deed this decoration? this.AddHtmlLocalized(55, 100, 160, 25, 1011011, false, false); // CONTINUE this.AddButton(20, 100, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(55, 125, 160, 25, 1011012, false, false); // CANCEL this.AddButton(20, 125, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0); }