public GBuyGump_OfferedItem(GBuyGump owner, BuyInfo bi)
            : base(32, 67, 196, 0)
        {
            this.m_OfferMenu = owner.OfferMenu;
            IFont font = (IFont)Engine.GetUniFont(3);
            IHue  hue  = Hues.Load(648);

            this.m_xAmount     = bi.ToBuy;
            this.m_Amount      = new GLabel(bi.ToBuy.ToString(), font, hue, 0, 0);
            this.m_Description = (GLabel) new GWrappedLabel(string.Format("{0} at {1} gp", (object)bi.Name, (object)bi.Price), font, hue, 41, 0, 105);
            this.m_More        = new GBuyGump_AmountButton(owner, bi, 5, 55, 155);
            this.m_Less        = new GBuyGump_AmountButton(owner, bi, -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(bi.Item);
        }
Esempio n. 2
0
 public GBuyAccept(GBuyGump owner)
     : base(30, 193, 63, 42)
 {
     this.m_Owner = owner;
 }
Esempio n. 3
0
 public GBuyClear(GBuyGump owner)
     : base(169, 199, 55, 35)
 {
     this.m_Owner = owner;
 }