public BarterDetailGump( BarterGump parent, Item item, bool isVendorItem ) : base( 240, 10 ) { _item = item; _parent = parent; _vendorItem = isVendorItem; AddPage( 1 ); AddBackground( 0, 0, 300, 175, 9250 ); AddLabel( (IsVendorItem ? 95 : 100), 15, BarterGump.LabelHue, String.Format( "{0} Item Details", (IsVendorItem ? "Vendor" : "Your") ) ); AddHtml( 15, 35, 270, 100, String.Format( "<basefont color=black>{0}</basefont>", GetItemDetails( item ) ), false, true ); AddButton( 15, 140, 4020, 4022, 0, GumpButtonType.Reply, 0 ); AddLabel( 180, 140, BarterGump.LabelHue, "Trade item" ); AddButton( 255, 140, 4011, 4013, 1, GumpButtonType.Reply, 0 ); }
public BarterDetailGump(BarterGump parent, Item item, bool isVendorItem) : base(240, 10) { _item = item; _parent = parent; _vendorItem = isVendorItem; AddPage(1); AddBackground(0, 0, 300, 175, 9250); AddLabel((IsVendorItem ? 95 : 100), 15, BarterGump.LabelHue, String.Format("{0} Item Details", (IsVendorItem ? "Vendor" : "Your"))); AddHtml(15, 35, 270, 100, String.Format("<basefont color=black>{0}</basefont>", GetItemDetails(item)), false, true); AddButton(15, 140, 4020, 4022, 0, GumpButtonType.Reply, 0); AddLabel(180, 140, BarterGump.LabelHue, "Trade item"); AddButton(255, 140, 4011, 4013, 1, GumpButtonType.Reply, 0); }