Example #1
0
        public GStatusBar(Mobile m, int X, int Y) : base(0.25f, 0.25f, 0.6f, 0x2a6c, X, Y)
        {
            this.m_xName     = "";
            this.m_Mobile    = m;
            base.m_CanDrop   = true;
            base.m_QuickDrag = true;
            IFont font = Engine.GetFont(9);
            IHue  hue  = Hues.Load(0x455);

            this.m_Name      = new GLabel("", font, hue, 0x26, 50);
            this.m_Str       = new GLabel("0", font, hue, 0x58, 0x4d);
            this.m_Hits      = new GAttributeCurMax(0x92, 0x48, 0x22, 0x15, this.m_Mobile.HPCur, this.m_Mobile.HPMax, font, hue);
            this.m_Dex       = new GLabel("0", font, hue, 0x58, 0x69);
            this.m_Stam      = new GAttributeCurMax(0x92, 100, 0x22, 0x15, this.m_Mobile.StamCur, this.m_Mobile.StamMax, font, hue);
            this.m_Int       = new GLabel("0", font, hue, 0x58, 0x85);
            this.m_Mana      = new GAttributeCurMax(0x92, 0x80, 0x22, 0x15, this.m_Mobile.ManaCur, this.m_Mobile.ManaMax, font, hue);
            this.m_Armor     = new GLabel("0", font, hue, 0x163, 0x4a);
            this.m_Fire      = new GLabel("0", font, hue, 0x163, 0x5b);
            this.m_Cold      = new GLabel("0", font, hue, 0x163, 0x6a);
            this.m_Poison    = new GLabel("0", font, hue, 0x163, 0x77);
            this.m_Energy    = new GLabel("0", font, hue, 0x163, 0x85);
            this.m_Luck      = new GLabel("0", font, hue, 220, 0x69);
            this.m_Damages   = new GLabel("0-0", font, hue, 280, 0x4d);
            this.m_Gold      = new GLabel("0", font, hue, 280, 0x69);
            this.m_Weight    = new GAttributeCurMax(0xd8, 0x80, 0x22, 0x15, this.m_Mobile.Weight, this.GetMaxWeight(this.m_Mobile.Str), font, hue);
            this.m_StatCap   = new GLabel("0", font, hue, 220, 0x4d);
            this.m_Followers = new GLabel("0/0", font, hue, 0x11d, 0x85);
            this.m_Name.X    = 0x27 + ((0x160 - ((this.m_Name.Image.xMax - this.m_Name.Image.xMin) + 1)) / 2);
            this.m_Name.X   -= this.m_Name.Image.xMin;
            base.m_Children.Add(this.m_Name);
            base.m_Children.Add(this.m_Str);
            base.m_Children.Add(this.m_Hits);
            base.m_Children.Add(this.m_Dex);
            base.m_Children.Add(this.m_Stam);
            base.m_Children.Add(this.m_Int);
            base.m_Children.Add(this.m_Mana);
            base.m_Children.Add(this.m_Armor);
            base.m_Children.Add(this.m_Fire);
            base.m_Children.Add(this.m_Cold);
            base.m_Children.Add(this.m_Poison);
            base.m_Children.Add(this.m_Energy);
            base.m_Children.Add(this.m_Luck);
            base.m_Children.Add(this.m_Damages);
            base.m_Children.Add(this.m_Gold);
            base.m_Children.Add(this.m_Weight);
            base.m_Children.Add(this.m_StatCap);
            base.m_Children.Add(this.m_Followers);
            base.m_Children.Add(new GMinimizer(this));
            this.AddTooltip(0x37, 70, 0x40, 0x1a, 0x10311a);
            this.AddTooltip(0x37, 0x62, 0x40, 0x1a, 0x10311b);
            this.AddTooltip(0x37, 0x7e, 0x40, 0x1a, 0x10311c);
            this.AddTooltip(0x79, 70, 0x3f, 0x1a, 0x10311d);
            this.AddTooltip(0x79, 0x62, 0x3f, 0x1a, 0x10311e);
            this.AddTooltip(0x79, 0x7e, 0x3f, 0x1a, 0x10311f);
            this.AddTooltip(0xba, 70, 0x45, 0x1a, 0x103120);
            this.AddTooltip(0xba, 0x62, 0x45, 0x1a, 0x103121);
            this.AddTooltip(0xba, 0x7e, 0x45, 0x1a, 0x103122);
            this.AddTooltip(0x101, 70, 0x48, 0x1a, 0x103123);
            this.AddTooltip(0x101, 0x62, 0x48, 0x1a, 0x103124);
            this.AddTooltip(0x101, 0x7e, 0x48, 0x1a, 0x103125);
            this.AddTooltip(0x14d, 0x4a, 0x2e, 14, 0x103126);
            this.AddTooltip(0x14d, 0x5b, 0x2e, 14, 0x103127);
            this.AddTooltip(0x14d, 0x6a, 0x2e, 13, 0x103128);
            this.AddTooltip(0x14d, 120, 0x2e, 11, 0x103129);
            this.AddTooltip(0x14d, 0x85, 0x2e, 0x10, 0x10312a);
            this.OnRefresh();
            if (Engine.Features.AOS)
            {
                base.Tooltip = new MobileTooltip(m);
            }
        }
Example #2
0
 public GStatusBar(Mobile m, int X, int Y)
     : base(0.25f, 0.25f, 0.6f, 0x2a6c, X, Y)
 {
     this.m_xName = "";
     this.m_Mobile = m;
     base.m_CanDrop = true;
     base.m_QuickDrag = true;
     IFont font = Engine.GetFont(9);
     IHue hue = Hues.Load(0x455);
     this.m_Name = new GLabel("", font, hue, 0x26, 50);
     this.m_Str = new GLabel("0", font, hue, 0x58, 0x4d);
     this.m_Hits = new GAttributeCurMax(0x92, 0x48, 0x22, 0x15, this.m_Mobile.HPCur, this.m_Mobile.HPMax, font, hue);
     this.m_Dex = new GLabel("0", font, hue, 0x58, 0x69);
     this.m_Stam = new GAttributeCurMax(0x92, 100, 0x22, 0x15, this.m_Mobile.StamCur, this.m_Mobile.StamMax, font, hue);
     this.m_Int = new GLabel("0", font, hue, 0x58, 0x85);
     this.m_Mana = new GAttributeCurMax(0x92, 0x80, 0x22, 0x15, this.m_Mobile.ManaCur, this.m_Mobile.ManaMax, font, hue);
     this.m_Armor = new GLabel("0", font, hue, 0x163, 0x4a);
     this.m_Fire = new GLabel("0", font, hue, 0x163, 0x5b);
     this.m_Cold = new GLabel("0", font, hue, 0x163, 0x6a);
     this.m_Poison = new GLabel("0", font, hue, 0x163, 0x77);
     this.m_Energy = new GLabel("0", font, hue, 0x163, 0x85);
     this.m_Luck = new GLabel("0", font, hue, 220, 0x69);
     this.m_Damages = new GLabel("0-0", font, hue, 280, 0x4d);
     this.m_Gold = new GLabel("0", font, hue, 280, 0x69);
     this.m_Weight = new GAttributeCurMax(0xd8, 0x80, 0x22, 0x15, this.m_Mobile.Weight, this.GetMaxWeight(this.m_Mobile.Str), font, hue);
     this.m_StatCap = new GLabel("0", font, hue, 220, 0x4d);
     this.m_Followers = new GLabel("0/0", font, hue, 0x11d, 0x85);
     this.m_Name.X = 0x27 + ((0x160 - ((this.m_Name.Image.xMax - this.m_Name.Image.xMin) + 1)) / 2);
     this.m_Name.X -= this.m_Name.Image.xMin;
     base.m_Children.Add(this.m_Name);
     base.m_Children.Add(this.m_Str);
     base.m_Children.Add(this.m_Hits);
     base.m_Children.Add(this.m_Dex);
     base.m_Children.Add(this.m_Stam);
     base.m_Children.Add(this.m_Int);
     base.m_Children.Add(this.m_Mana);
     base.m_Children.Add(this.m_Armor);
     base.m_Children.Add(this.m_Fire);
     base.m_Children.Add(this.m_Cold);
     base.m_Children.Add(this.m_Poison);
     base.m_Children.Add(this.m_Energy);
     base.m_Children.Add(this.m_Luck);
     base.m_Children.Add(this.m_Damages);
     base.m_Children.Add(this.m_Gold);
     base.m_Children.Add(this.m_Weight);
     base.m_Children.Add(this.m_StatCap);
     base.m_Children.Add(this.m_Followers);
     base.m_Children.Add(new GMinimizer(this));
     this.AddTooltip(0x37, 70, 0x40, 0x1a, 0x10311a);
     this.AddTooltip(0x37, 0x62, 0x40, 0x1a, 0x10311b);
     this.AddTooltip(0x37, 0x7e, 0x40, 0x1a, 0x10311c);
     this.AddTooltip(0x79, 70, 0x3f, 0x1a, 0x10311d);
     this.AddTooltip(0x79, 0x62, 0x3f, 0x1a, 0x10311e);
     this.AddTooltip(0x79, 0x7e, 0x3f, 0x1a, 0x10311f);
     this.AddTooltip(0xba, 70, 0x45, 0x1a, 0x103120);
     this.AddTooltip(0xba, 0x62, 0x45, 0x1a, 0x103121);
     this.AddTooltip(0xba, 0x7e, 0x45, 0x1a, 0x103122);
     this.AddTooltip(0x101, 70, 0x48, 0x1a, 0x103123);
     this.AddTooltip(0x101, 0x62, 0x48, 0x1a, 0x103124);
     this.AddTooltip(0x101, 0x7e, 0x48, 0x1a, 0x103125);
     this.AddTooltip(0x14d, 0x4a, 0x2e, 14, 0x103126);
     this.AddTooltip(0x14d, 0x5b, 0x2e, 14, 0x103127);
     this.AddTooltip(0x14d, 0x6a, 0x2e, 13, 0x103128);
     this.AddTooltip(0x14d, 120, 0x2e, 11, 0x103129);
     this.AddTooltip(0x14d, 0x85, 0x2e, 0x10, 0x10312a);
     this.OnRefresh();
     if (Engine.Features.AOS)
     {
         base.Tooltip = new MobileTooltip(m);
     }
 }