public SpellIcon(OldActiveSpells parent, ESFRecord data, int slot) : base(parent, slot) { _spellData = data; _spellGraphic = ((EOGame)Game).GFXManager.TextureFromResource(GFXTypes.SpellIcons, _spellData.Icon); _spellGraphicSourceRect = new Rectangle(0, 0, _spellGraphic.Width / 2, _spellGraphic.Height); _spellLevelColor = new Texture2D(Game.GraphicsDevice, 1, 1); _spellLevelColor.SetData(new[] { Color.FromNonPremultiplied(0xc9, 0xb8, 0x9b, 0xff) }); OnLevelChanged(); _clickTime = DateTime.Now; }
public EmptySpellIcon(OldActiveSpells parent, int slot) : base(null, null, parent) { Slot = slot; _parentSpellContainer = parent; _highlightColor = new Texture2D(Game.GraphicsDevice, 1, 1); _highlightColor.SetData(new[] { Color.FromNonPremultiplied(200, 200, 200, 60) }); _setSize(ICON_AREA_WIDTH, ICON_AREA_HEIGHT); OldWorld.IgnoreDialogs(this); }