public void OnNotorietyChange(Notoriety n) { if (!this.m_Player) { base.Hue = Hues.GetNotoriety(n); } }
public void OnNotorietyChange(Notoriety n) { if (this.m_Player) { return; } this.Hue = Hues.GetNotoriety(n); }
private IHue GetDefaultHue() { if (this.m_Object is Mobile) { return(Hues.GetNotoriety(((Mobile)this.m_Object).Notoriety)); } return(Hues.Load(0x34)); }
public GPartyHealthBar(Mobile m, int x, int y) : base(x, y) { base.m_CanDrag = true; base.m_QuickDrag = true; base.m_CanDrop = true; this.m_Mobile = m; this.m_Name = new GLabel("", Engine.GetUniFont(0), m.Visible ? Hues.GetNotoriety(m.Notoriety) : Hues.Grayscale, 4, 4); this.SetName(m.Name); base.m_Children.Add(this.m_Name); }
public void OnNotorietyChange(Notoriety n) { if (this.m_Mobile.Visible) { this.m_Name.Hue = Hues.GetNotoriety(n); } else { this.m_Name.Hue = Hues.Grayscale; } }
public void OnFlagsChange(MobileFlags flags) { if (this.m_Mobile.Visible) { this.m_Name.Hue = Hues.GetNotoriety(this.m_Mobile.Notoriety); } else { this.m_Name.Hue = Hues.Grayscale; } }
public GHealthBar(Mobile m, int X, int Y) : base(m.Player ? (m.Flags[MobileFlag.Warmode] ? 0x807 : 0x803) : 0x804, X, Y) { this.m_xName = ""; this.m_Mobile = m; base.m_CanDrop = true; base.m_QuickDrag = false; this.m_Player = m.Player; if (!this.m_Player) { base.Hue = Hues.GetNotoriety(m.Notoriety); } if (Engine.Features.AOS) { base.Tooltip = new MobileTooltip(m); } if (this.m_Player) { this.m_HP = new GImageClip(this.GetHealthGumpID(m.Flags), 0x22, 12, m.HPCur, m.HPMax); this.m_Mana = new GImageClip(0x806, 0x22, 0x19, m.ManaCur, m.ManaMax); this.m_Stam = new GImageClip(0x806, 0x22, 0x26, m.StamCur, m.StamMax); base.m_Children.Add(new GImage(0x805, 0x22, 12)); base.m_Children.Add(new GImage(0x805, 0x22, 0x19)); base.m_Children.Add(new GImage(0x805, 0x22, 0x26)); base.m_Children.Add(this.m_HP); base.m_Children.Add(this.m_Mana); base.m_Children.Add(this.m_Stam); this.m_xHPCur = m.HPCur; this.m_xHPMax = m.HPMax; this.m_xStamCur = m.StamCur; this.m_xStamMax = m.StamMax; this.m_xManaCur = m.ManaCur; this.m_xManaMax = m.ManaMax; this.m_xFlags = m.Flags.Clone(); } else { this.m_Name = new GLabel(m.Name, Engine.GetFont(1), Hues.Load(0x455), 0x10, 0); this.m_Name.Y = 11 + ((0x18 - this.m_Name.Height) / 2); this.m_Name.Scissor(0, 0, 0x7a, this.m_Name.Height); this.m_HP = new GImageClip(this.GetHealthGumpID(m.Flags), 0x22, 0x26, m.HPCur, m.HPMax); base.m_Children.Add(new GImage(0x805, 0x22, 0x26)); base.m_Children.Add(this.m_Name); base.m_Children.Add(this.m_HP); this.m_xName = m.Name; this.m_xHPCur = m.HPCur; this.m_xHPMax = m.HPMax; this.m_xFlags = m.Flags.Clone(); } }
public GHealthBar(Mobile m, int X, int Y) : base(m.Player ? (m.Flags[MobileFlag.Warmode] ? 2055 : 2051) : 2052, X, Y) { this.m_Mobile = m; this.m_CanDrop = true; this.m_QuickDrag = false; this.m_Player = m.Player; if (!this.m_Player) { this.Hue = Hues.GetNotoriety(m.Notoriety); } if (Engine.ServerFeatures.AOS) { this.Tooltip = (ITooltip) new MobileTooltip(m); } if (this.m_Player) { this.m_HP = new GImageClip(this.GetHealthGumpID(m.Flags), 34, 12, m.CurrentHitPoints, m.MaximumHitPoints); this.m_Mana = new GImageClip(2054, 34, 25, m.CurrentMana, m.MaximumMana); this.m_Stam = new GImageClip(2054, 34, 38, m.CurrentStamina, m.MaximumStamina); this.m_Children.Add((Gump) new GImage(2053, 34, 12)); this.m_Children.Add((Gump) new GImage(2053, 34, 25)); this.m_Children.Add((Gump) new GImage(2053, 34, 38)); this.m_Children.Add((Gump)this.m_HP); this.m_Children.Add((Gump)this.m_Mana); this.m_Children.Add((Gump)this.m_Stam); this.m_xHPCur = m.CurrentHitPoints; this.m_xHPMax = m.MaximumHitPoints; this.m_xStamCur = m.CurrentStamina; this.m_xStamMax = m.MaximumStamina; this.m_xManaCur = m.CurrentMana; this.m_xManaMax = m.MaximumMana; } else { this.m_Name = new GLabel(m.Name, (IFont)Engine.GetFont(1), Hues.Load(1109), 16, 0); this.m_Name.Y = 11 + (24 - this.m_Name.Height) / 2; this.m_Name.Scissor(0, 0, 122, this.m_Name.Height); this.m_HP = new GImageClip(this.GetHealthGumpID(m.Flags), 34, 38, m.CurrentHitPoints, m.MaximumHitPoints); this.m_Children.Add((Gump) new GImage(2053, 34, 38)); this.m_Children.Add((Gump)this.m_Name); this.m_Children.Add((Gump)this.m_HP); this.m_xName = m.Name; this.m_xHPCur = m.CurrentHitPoints; this.m_xHPMax = m.MaximumHitPoints; } }