コード例 #1
0
 public GSellGump_OfferMenu(GSellGump owner)
     : base(0x873, 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);
     }
     this.m_Total = new GLabel("0", Engine.GetFont(6), Hues.Default, 0xbc, 0xa7);
     this.m_Accept = new GSellAccept(owner);
     this.m_Clear = new GSellClear(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
ファイル: GSellGump_OfferMenu.cs プロジェクト: uotools/PlayUO
        public GSellGump_OfferMenu(GSellGump owner) : base(0x873, 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);
            }
            this.m_Total  = new GLabel("0", Engine.GetFont(6), Hues.Default, 0xbc, 0xa7);
            this.m_Accept = new GSellAccept(owner);
            this.m_Clear  = new GSellClear(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));
        }