public ToolHouseGump(PlayerMobile from, ToolHouse house) : base(25, 25) { m_From = from; m_House = house; m_From.CloseGump(typeof(ToolHouseGump)); AddPage(0); AddBackground(50, 10, 455, 335, 5054); AddImageTiled(58, 20, 438, 306, 2624); AddAlphaRegion(58, 20, 438, 306); AddLabel(250, 25, 0x480, "Tool House"); AddLabel(120, 50, 0x486, "Sewing Kit"); AddLabel(230, 50, 0x480, house.SewingKit.ToString()); AddButton(70, 50, 4005, 4007, 1, GumpButtonType.Reply, 0); AddLabel(120, 75, 0x486, "Mortar and Pestle"); AddLabel(230, 75, 0x480, house.MortarPestle.ToString()); AddButton(70, 75, 4005, 4007, 2, GumpButtonType.Reply, 0); AddLabel(120, 100, 0x486, "Scribes Pen"); AddLabel(230, 100, 0x480, house.ScribesPen.ToString()); AddButton(70, 100, 4005, 4007, 3, GumpButtonType.Reply, 0); AddLabel(120, 125, 0x486, "Mallet and Chisel"); AddLabel(230, 125, 0x480, house.MalletAndChisel.ToString()); AddButton(70, 125, 4005, 4007, 4, GumpButtonType.Reply, 0); AddLabel(120, 150, 0x486, "Carpentry"); AddLabel(230, 150, 0x480, house.Carpentry.ToString()); AddButton(70, 150, 4005, 4007, 5, GumpButtonType.Reply, 0); AddLabel(120, 175, 0x486, "Fletcher Tools"); AddLabel(230, 175, 0x480, house.FletcherTools.ToString()); AddButton(70, 175, 4005, 4007, 6, GumpButtonType.Reply, 0); AddLabel(120, 200, 0x486, "Tinker Tools"); AddLabel(230, 200, 0x480, house.TinkerTools.ToString()); AddButton(70, 200, 4005, 4007, 7, GumpButtonType.Reply, 0); AddLabel(120, 225, 0x486, "BlackSmith"); AddLabel(230, 225, 0x480, house.BlackSmith.ToString()); AddButton(70, 225, 4005, 4007, 8, GumpButtonType.Reply, 0); AddLabel(120, 250, 0x486, "Shovel & Pickaxe"); AddLabel(230, 250, 0x480, house.Shovel.ToString()); AddButton(70, 250, 4005, 4007, 9, GumpButtonType.Reply, 0); AddLabel(120, 275, 0x486, "Gargoyles Pickaxe"); AddLabel(230, 275, 0x480, house.GargoylesPickaxe.ToString()); AddButton(70, 275, 4005, 4007, 10, GumpButtonType.Reply, 0); AddLabel(120, 300, 0x486, "Prospectors Tool"); AddLabel(230, 300, 0x480, house.ProspectorsTool.ToString()); AddButton(70, 300, 4005, 4007, 11, GumpButtonType.Reply, 0); //AddLabel( 325, 50, 0x486, "Prospectors Axe" ); //AddLabel( 440, 50, 0x480, house.LumberjackingProspectorsTool.ToString() ); //AddButton( 275, 50, 4005, 4007, 12, GumpButtonType.Reply, 0 ); AddLabel(325, 75, 0x486, "Lumberjacking"); AddLabel(440, 75, 0x480, house.Lumberjacking.ToString()); AddButton(275, 75, 4005, 4007, 13, GumpButtonType.Reply, 0); AddLabel(325, 100, 0x486, "Cooking"); AddLabel(440, 100, 0x480, house.Cooking.ToString()); AddButton(275, 100, 4005, 4007, 14, GumpButtonType.Reply, 0); AddLabel(325, 125, 0x486, "Cartography"); AddLabel(440, 125, 0x480, house.Cartography.ToString()); AddButton(275, 125, 4005, 4007, 15, GumpButtonType.Reply, 0); AddLabel(325, 150, 0x486, "Glassblowing"); AddLabel(440, 150, 0x480, house.Glassblowing.ToString()); AddButton(275, 150, 4005, 4007, 16, GumpButtonType.Reply, 0); AddLabel(325, 175, 0x486, "Taxidermy Kit"); AddLabel(440, 175, 0x480, house.TaxidermyKit.ToString()); AddButton(275, 175, 4005, 4007, 17, GumpButtonType.Reply, 0); //AddLabel( 325, 200, 0x486, "Gargoyles Axe" ); //AddLabel( 440, 200, 0x480, house.GargoylesAxe.ToString() ); //AddButton( 275, 200, 4005, 4007, 18, GumpButtonType.Reply, 0 ); //AddLabel( 325, 225, 0x486, "Gargoyles Knife" ); //AddLabel( 440, 225, 0x480, house.GargoylesKnife.ToString() ); //AddButton( 275, 225, 4005, 4007, 19, GumpButtonType.Reply, 0 ); /// AddLabel( 325, 250, 0x486, "Brush" ); /// AddLabel( 440, 250, 0x480, house.Brush.ToString() ); /// AddButton( 275, 250, 4005, 4007, 20, GumpButtonType.Reply, 0 ); AddLabel(325, 275, 88, "Max Uses:"); AddLabel(425, 275, 0x480, house.Limit.ToString()); AddButton(275, 300, 4005, 4007, 21, GumpButtonType.Reply, 0); AddLabel(325, 300, 0x486, "Add Tool"); }
public ToolHouseTarget( ToolHouse house ) : base( 18, false, TargetFlags.None ) { m_House = house; }
public ToolHouseTarget(ToolHouse house) : base(18, false, TargetFlags.None) { m_House = house; }
public ToolHouseGump( PlayerMobile from, ToolHouse house ) : base( 25, 25 ) { m_From = from; m_House = house; m_From.CloseGump( typeof( ToolHouseGump ) ); AddPage( 0 ); AddBackground( 50, 10, 455, 335, 5054 ); AddImageTiled( 58, 20, 438, 306, 2624 ); AddAlphaRegion( 58, 20, 438, 306 ); AddLabel( 250, 25, 0x480, "Tool House" ); AddLabel( 120, 50, 0x486, "Sewing Kit" ); AddLabel( 230, 50, 0x480, house.SewingKit.ToString() ); AddButton( 70, 50, 4005, 4007, 1, GumpButtonType.Reply, 0 ); AddLabel( 120, 75, 0x486, "Mortar and Pestle" ); AddLabel( 230, 75, 0x480, house.MortarPestle.ToString() ); AddButton( 70, 75, 4005, 4007, 2, GumpButtonType.Reply, 0 ); AddLabel( 120, 100, 0x486, "Scribes Pen" ); AddLabel( 230, 100, 0x480, house.ScribesPen.ToString() ); AddButton( 70, 100, 4005, 4007, 3, GumpButtonType.Reply, 0 ); AddLabel( 120, 125, 0x486, "Mallet and Chisel" ); AddLabel( 230, 125, 0x480, house.MalletAndChisel.ToString() ); AddButton( 70, 125, 4005, 4007, 4, GumpButtonType.Reply, 0 ); AddLabel( 120, 150, 0x486, "Carpentry" ); AddLabel( 230, 150, 0x480, house.Carpentry.ToString() ); AddButton( 70, 150, 4005, 4007, 5, GumpButtonType.Reply, 0 ); AddLabel( 120, 175, 0x486, "Fletcher Tools" ); AddLabel( 230, 175, 0x480, house.FletcherTools.ToString() ); AddButton( 70, 175, 4005, 4007, 6, GumpButtonType.Reply, 0 ); AddLabel( 120, 200, 0x486, "Tinker Tools" ); AddLabel( 230, 200, 0x480, house.TinkerTools.ToString() ); AddButton( 70, 200, 4005, 4007, 7, GumpButtonType.Reply, 0 ); AddLabel( 120, 225, 0x486, "BlackSmith" ); AddLabel( 230, 225, 0x480, house.BlackSmith.ToString() ); AddButton( 70, 225, 4005, 4007, 8, GumpButtonType.Reply, 0 ); AddLabel( 120, 250, 0x486, "Shovel & Pickaxe" ); AddLabel( 230, 250, 0x480, house.Shovel.ToString() ); AddButton( 70, 250, 4005, 4007, 9, GumpButtonType.Reply, 0 ); AddLabel( 120, 275, 0x486, "Gargoyles Pickaxe" ); AddLabel( 230, 275, 0x480, house.GargoylesPickaxe.ToString() ); AddButton( 70, 275, 4005, 4007, 10, GumpButtonType.Reply, 0 ); AddLabel( 120, 300, 0x486, "Prospectors Tool" ); AddLabel( 230, 300, 0x480, house.ProspectorsTool.ToString() ); AddButton( 70, 300, 4005, 4007, 11, GumpButtonType.Reply, 0 ); //AddLabel( 325, 50, 0x486, "Prospectors Axe" ); //AddLabel( 440, 50, 0x480, house.LumberjackingProspectorsTool.ToString() ); //AddButton( 275, 50, 4005, 4007, 12, GumpButtonType.Reply, 0 ); AddLabel( 325, 75, 0x486, "Lumberjacking" ); AddLabel( 440, 75, 0x480, house.Lumberjacking.ToString() ); AddButton( 275, 75, 4005, 4007, 13, GumpButtonType.Reply, 0 ); AddLabel( 325, 100, 0x486, "Cooking" ); AddLabel( 440, 100, 0x480, house.Cooking.ToString() ); AddButton( 275, 100, 4005, 4007, 14, GumpButtonType.Reply, 0 ); AddLabel( 325, 125, 0x486, "Cartography" ); AddLabel( 440, 125, 0x480, house.Cartography.ToString() ); AddButton( 275, 125, 4005, 4007, 15, GumpButtonType.Reply, 0 ); AddLabel( 325, 150, 0x486, "Glassblowing" ); AddLabel( 440, 150, 0x480, house.Glassblowing.ToString() ); AddButton( 275, 150, 4005, 4007, 16, GumpButtonType.Reply, 0 ); AddLabel( 325, 175, 0x486, "Taxidermy Kit" ); AddLabel( 440, 175, 0x480, house.TaxidermyKit.ToString() ); AddButton( 275, 175, 4005, 4007, 17, GumpButtonType.Reply, 0 ); //AddLabel( 325, 200, 0x486, "Gargoyles Axe" ); //AddLabel( 440, 200, 0x480, house.GargoylesAxe.ToString() ); //AddButton( 275, 200, 4005, 4007, 18, GumpButtonType.Reply, 0 ); //AddLabel( 325, 225, 0x486, "Gargoyles Knife" ); //AddLabel( 440, 225, 0x480, house.GargoylesKnife.ToString() ); //AddButton( 275, 225, 4005, 4007, 19, GumpButtonType.Reply, 0 ); /// AddLabel( 325, 250, 0x486, "Brush" ); /// AddLabel( 440, 250, 0x480, house.Brush.ToString() ); /// AddButton( 275, 250, 4005, 4007, 20, GumpButtonType.Reply, 0 ); AddLabel(325, 275, 88, "Max Uses:" ); AddLabel(425, 275, 0x480, house.Limit.ToString() ); AddButton( 275, 300, 4005, 4007, 21, GumpButtonType.Reply, 0 ); AddLabel( 325, 300, 0x486, "Add Tool" ); }