public ConfirmGump(BaseEngravingTool tool, Mobile npc) : base(200, 200) { Tool = tool; m_NPC = npc; AddPage(0); AddBackground(0, 0, 291, 133, 0x13BE); AddImageTiled(5, 5, 280, 100, 0xA40); if (npc != null) { AddHtmlLocalized(9, 9, 272, 100, 1076169, 0x7FFF, false, false); // It will cost you 100,000 gold and a blue diamond to recharge your weapon engraver with 10 charges. AddHtmlLocalized(195, 109, 120, 20, 1076172, 0x7FFF, false, false); // Recharge it } else { AddHtmlLocalized(9, 9, 272, 100, 1076176, 0x7FFF, false, false); // You will need a blue diamond to repair the tip of the engraver. A successful repair will give the engraver 10 charges. AddHtmlLocalized(195, 109, 120, 20, 1076177, 0x7FFF, false, false); // Replace the tip. } AddButton(160, 107, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0); AddButton(5, 107, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(40, 109, 100, 20, 1060051, 0x7FFF, false, false); // CANCEL }
public InternalGump(BaseEngravingTool tool, Item target) : base(0, 0) { this.m_Tool = tool; this.m_Target = target; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; this.AddPage(0); this.AddBackground(50, 50, 400, 300, 0xA28); this.AddHtmlLocalized(50, 70, 400, 20, 1072359, 0x0, false, false); this.AddHtmlLocalized(75, 95, 350, 145, 1072360, 0x0, true, true); this.AddButton(125, 300, 0x81A, 0x81B, (int)Buttons.Okay, GumpButtonType.Reply, 0); this.AddButton(320, 300, 0x819, 0x818, (int)Buttons.Cancel, GumpButtonType.Reply, 0); this.AddImageTiled(75, 245, 350, 40, 0xDB0); this.AddImageTiled(76, 245, 350, 2, 0x23C5); this.AddImageTiled(75, 245, 2, 40, 0x23C3); this.AddImageTiled(75, 285, 350, 2, 0x23C5); this.AddImageTiled(425, 245, 2, 42, 0x23C3); this.AddTextEntry(78, 245, 345, 40, 0x0, (int)Buttons.Text, ""); }
public EngravingGump(Item item, BaseEngravingTool tool) : base(50, 50) { m_Item = item; m_Tool = tool; Closable = true; Disposable = false; Dragable = true; Resizable = false; AddPage(0); AddBackground(15, 15, 400, 300, 2600); // <CENTER>Engraving Tool</CENTER> AddHtmlLocalized(35, 35, 350, 20, m_Tool.GumpTitle, 0, false, false); // Please enter the text to add to the selected object. // Leave the text area blank to remove the text from the // object without using up the tool AddHtmlLocalized(41, 60, 350, 150, 1072360, 0, true, true); AddBackground(40, 215, 350, 40, 3000); AddTextEntry(40, 215, 350, 40, 0, 0, ""); AddButton(90, 265, 2450, 2451, 1, GumpButtonType.Reply, 0); AddButton(280, 265, 2453, 248, 2, GumpButtonType.Reply, 0); }
public static BaseEngravingTool Find(Mobile from) { if (from.Backpack != null) { BaseEngravingTool tool = from.Backpack.FindItemByType(typeof(BaseEngravingTool)) as BaseEngravingTool; if (tool != null && !tool.DeletedItem && tool.UsesRemaining <= 0) { return(tool); } else { return(null); } } return(null); }
public InternalGump(BaseEngravingTool tool, IEntity target) : base(0, 0) { m_Tool = tool; m_Target = target; AddBackground(50, 50, 400, 300, 0xA28); AddPage(0); AddHtmlLocalized(50, 70, 400, 20, m_Tool.GumpTitle, 0x0, false, false); AddHtmlLocalized(75, 95, 350, 145, 1072360, 0x0, true, true); AddButton(125, 300, 0x81A, 0x81B, 1, GumpButtonType.Reply, 0); AddButton(320, 300, 0x819, 0x818, 0, GumpButtonType.Reply, 0); AddImageTiled(75, 245, 350, 40, 0xDB0); AddImageTiled(76, 245, 350, 2, 0x23C5); AddImageTiled(75, 245, 2, 40, 0x23C3); AddImageTiled(75, 285, 350, 2, 0x23C5); AddImageTiled(425, 245, 2, 42, 0x23C3); AddTextEntry(78, 246, 343, 37, 0x4FF, 15, "", 78); }
public InternalTarget(BaseEngravingTool tool) : base(2, true, TargetFlags.None) { this.m_Tool = tool; }
public InternalGump( BaseEngravingTool tool, Item target ) : base( 0, 0 ) { m_Tool = tool; m_Target = target; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage( 0 ); AddBackground( 50, 50, 400, 300, 0xA28 ); AddHtmlLocalized( 50, 70, 400, 20, 1072359, 0x0, false, false ); AddHtmlLocalized( 75, 95, 350, 145, 1072360, 0x0, true, true ); AddButton( 125, 300, 0x81A, 0x81B, (int) Buttons.Okay, GumpButtonType.Reply, 0 ); AddButton( 320, 300, 0x819, 0x818, (int) Buttons.Cancel, GumpButtonType.Reply, 0 ); AddImageTiled( 75, 245, 350, 40, 0xDB0 ); AddImageTiled( 76, 245, 350, 2, 0x23C5 ); AddImageTiled( 75, 245, 2, 40, 0x23C3 ); AddImageTiled( 75, 285, 350, 2, 0x23C5 ); AddImageTiled( 425, 245, 2, 42, 0x23C3 ); AddTextEntry( 78, 245, 345, 40, 0x0, (int) Buttons.Text, "" ); }
public InternalTarget( BaseEngravingTool tool ) : base( 2, true, TargetFlags.None ) { m_Tool = tool; }
public EngravingGump( Item item, BaseEngravingTool tool ) : base(50, 50) { m_Item = item; m_Tool = tool; Closable = true; Disposable = false; Dragable = true; Resizable = false; AddPage( 0 ); AddBackground( 15, 15, 400, 300, 2600 ); // <CENTER>Engraving Tool</CENTER> AddHtmlLocalized( 35, 35, 350, 20, m_Tool.GumpTitle, 0, false, false ); // Please enter the text to add to the selected object. // Leave the text area blank to remove the text from the // object without using up the tool AddHtmlLocalized( 41, 60, 350, 150, 1072360, 0, true, true ); AddBackground( 40, 215, 350, 40, 3000 ); AddTextEntry( 40, 215, 350, 40, 0, 0, "" ); AddButton( 90, 265, 2450, 2451, 1, GumpButtonType.Reply, 0 ); AddButton( 280, 265, 2453, 248, 2, GumpButtonType.Reply, 0 ); }