public SpellSprite(string name, SpellSlot slot, CustomSprite icon, CustomSprite grayicon) { this.SpellName = name; this.Slot = slot; this.Icon = icon; this.GrayIcon = grayicon; }
public ChampionSprite(AIHeroClient champion, CustomSprite icon, CustomSprite grayIcon, CustomSprite circleIcon, CustomSprite hp, CustomSprite mp, CustomSprite xp, CustomSprite empty, params SpellSprite[] spells) { this.Champion = champion; this.Icon = icon; this.GrayIcon = grayIcon; this.HPBar = hp; this.MPBar = mp; this.XPBar = xp; this.EmptyBar = empty; this.SpellSprites = spells; this.CircleIcon = circleIcon; var barWidth = this.Icon.Sprite.Rectangle.Value.Width + spells[0].Icon.Sprite.Rectangle.Value.Width; var barHeight = (int)(spells[0].Icon.Sprite.Rectangle.Value.Height * (HUDConfig.BarSize * 0.01f)); var rectangle = new Rectangle(0, 0, barWidth, barHeight / 3); hp.Sprite.Rectangle = rectangle; mp.Sprite.Rectangle = rectangle; xp.Sprite.Rectangle = rectangle; empty.Sprite.Rectangle = rectangle; this.Offset += barHeight; this.Offset += this.Icon.Sprite.Rectangle.Value.Height; }