public GSellGump_OfferedItem(GSellGump owner, SellInfo si) : base(32, 67, 196, 0) { this.m_OfferMenu = owner.OfferMenu; IFont font = (IFont)Engine.GetUniFont(3); IHue hue = Hues.Load(648); this.m_xAmount = si.ToSell; this.m_Amount = new GLabel(si.ToSell.ToString(), font, hue, 0, 0); this.m_Description = (GLabel) new GWrappedLabel(string.Format("{0} at {1} gp", (object)si.Name, (object)si.Price), font, hue, 41, 0, 105); this.m_More = new GSellGump_AmountButton(owner, si, 5, 55, 155); this.m_Less = new GSellGump_AmountButton(owner, si, -5, 56, 173); this.m_Height = this.m_Amount.Image.yMax - this.m_Amount.Image.yMin + 1; int num = this.m_Description.Image.yMax - this.m_Description.Image.yMin + 1; if (num > this.m_Height) { this.m_Height = num; } int height1 = this.m_More.Height; if (height1 > this.m_Height) { this.m_Height = height1; } int height2 = this.m_Less.Height; if (height2 > this.m_Height) { this.m_Height = height2; } this.m_Amount.X -= this.m_Amount.Image.xMin; this.m_Amount.Y = (this.m_Height - (this.m_Amount.Image.yMax - this.m_Amount.Image.yMin + 1)) / 2; this.m_Description.X -= this.m_Description.Image.xMin; this.m_Description.Y = (this.m_Height - (this.m_Description.Image.yMax - this.m_Description.Image.yMin + 1)) / 2; if (this.m_Amount.Y > this.m_Description.Y) { this.m_Amount.Y = this.m_Description.Y; } this.m_Amount.Y -= this.m_Amount.Image.yMin; this.m_Description.Y -= this.m_Description.Image.yMin; this.m_More.Y = (this.m_Height - this.m_More.Height) / 2; this.m_Less.Y = (this.m_Height - this.m_Less.Height) / 2; this.m_Children.Add((Gump)this.m_Amount); this.m_Children.Add((Gump)this.m_Description); this.m_Children.Add((Gump)this.m_More); this.m_Children.Add((Gump)this.m_Less); this.Clipper = this.m_OfferMenu.ContentClipper; if (!Engine.ServerFeatures.AOS) { return; } this.Tooltip = (ITooltip) new ItemTooltip(si.Item); }
public GSellClear(GSellGump owner) : base(169, 199, 55, 35) { this.m_Owner = owner; }
public GSellAccept(GSellGump owner) : base(30, 193, 63, 42) { this.m_Owner = owner; }