Пример #1
0
 public GBuyGump_OfferMenu(GBuyGump owner)
     : base(0x871, 170, 0xd6)
 {
     string str;
     this.m_Owner = owner;
     Mobile player = World.Player;
     if (((player != null) && ((str = player.Name) != null)) && ((str = str.Trim()).Length > 0))
     {
         this.m_Signature = new GLabel(str, Engine.GetFont(5), Hues.Load(0x455), 0x48, 0xc2);
         this.m_Signature.Visible = false;
         base.m_Children.Add(this.m_Signature);
     }
     base.m_Children.Add(new GLabel((player != null) ? player.Gold.ToString() : "0", Engine.GetFont(6), Hues.Default, 0xbc, 0xa7));
     this.m_Total = new GLabel("0", Engine.GetFont(6), Hues.Default, 0x44, 0xa7);
     this.m_Accept = new GBuyAccept(owner);
     this.m_Clear = new GBuyClear(owner);
     base.m_Children.Add(this.m_Total);
     base.m_Children.Add(this.m_Accept);
     base.m_Children.Add(this.m_Clear);
     base.m_CanDrag = true;
     base.m_QuickDrag = true;
     GVSlider toAdd = new GVSlider(0x828, 0xed, 0x51, 0x22, 0x3a, 0.0, 0.0, 50.0, 1.0);
     this.m_Slider = toAdd;
     base.m_Children.Add(toAdd);
     base.m_Children.Add(new GHotspot(0xed, 0x42, 0x22, 0x54, toAdd));
 }
Пример #2
0
        public GBuyGump_OfferMenu(GBuyGump owner) : base(0x871, 170, 0xd6)
        {
            string str;

            this.m_Owner = owner;
            Mobile player = World.Player;

            if (((player != null) && ((str = player.Name) != null)) && ((str = str.Trim()).Length > 0))
            {
                this.m_Signature         = new GLabel(str, Engine.GetFont(5), Hues.Load(0x455), 0x48, 0xc2);
                this.m_Signature.Visible = false;
                base.m_Children.Add(this.m_Signature);
            }
            base.m_Children.Add(new GLabel((player != null) ? player.Gold.ToString() : "0", Engine.GetFont(6), Hues.Default, 0xbc, 0xa7));
            this.m_Total  = new GLabel("0", Engine.GetFont(6), Hues.Default, 0x44, 0xa7);
            this.m_Accept = new GBuyAccept(owner);
            this.m_Clear  = new GBuyClear(owner);
            base.m_Children.Add(this.m_Total);
            base.m_Children.Add(this.m_Accept);
            base.m_Children.Add(this.m_Clear);
            base.m_CanDrag   = true;
            base.m_QuickDrag = true;
            GVSlider toAdd = new GVSlider(0x828, 0xed, 0x51, 0x22, 0x3a, 0.0, 0.0, 50.0, 1.0);

            this.m_Slider = toAdd;
            base.m_Children.Add(toAdd);
            base.m_Children.Add(new GHotspot(0xed, 0x42, 0x22, 0x54, toAdd));
        }