private EffectRenderer(EOGame game, DrawableGameComponent target, Action cleanupAction) : base(game) { _target = target; _cleanupAction = cleanupAction; _effectSpriteManager = new EffectSpriteManager(game.GFXManager); _sb = new SpriteBatch(game.GraphicsDevice); SetEffectInfoTypeAndID(EffectType.Invalid, -1); }
public OldMouseCursorRenderer(EOGame game, OldMapRenderer parentMapRenderer) { _game = game; _parentMapRenderer = parentMapRenderer; _contextMenu = new EOMapContextMenu(_game.API); _mainCharacter = OldWorld.Instance.MainPlayer.ActiveCharacter; }
public PlayerStatusIconRenderer(EOGame game) : base(game) { _statusIcons = EOGame.Instance.GFXManager.TextureFromResource(GFXTypes.PostLoginUI, 46, true); _widthDelta = _statusIcons.Width / 4; _heightDelta = _statusIcons.Height / 2; _renderColor = Color.FromNonPremultiplied(0x9e, 0x9f, 0x9e, 0xff); _sb = new SpriteBatch(game.GraphicsDevice); }
public MouseCursorRenderer(EOGame game, OldMapRenderer parentMapRenderer) { _game = game; _parentMapRenderer = parentMapRenderer; _mouseCursor = game.GFXManager.TextureFromResource(GFXTypes.PostLoginUI, 24, true); _itemHoverName = new XNALabel(new Rectangle(1, 1, 1, 1), Constants.FontSize08pt75) { Visible = true, Text = "", ForeColor = Color.White, DrawOrder = (int)ControlDrawLayer.BaseLayer + 3, AutoSize = false }; _cursorSourceRect = new Rectangle(0, 0, _mouseCursor.Width / 5, _mouseCursor.Height); _contextMenu = new EOMapContextMenu(_game.API); _mainCharacter = OldWorld.Instance.MainPlayer.ActiveCharacter; }
public EffectRenderer(EOGame game, CharacterRenderer character, Action cleanupAction) : this(game, (DrawableGameComponent)character, cleanupAction) { }
public EffectRenderer(EOGame game, NPC npc, Action cleanupAction) : this(game, (DrawableGameComponent)npc, cleanupAction) { }