//top left - 334, 36 + ndx*124 protected CharacterInfoPanel(int characterIndex, INativeGraphicsManager gfxManager, IEODialogButtonService dialogButtonService) { _gfxManager = gfxManager; DrawPosition = new Vector2(334, 36 + characterIndex * 124); _loginButton = new XNAButton(dialogButtonService.SmallButtonSheet, new Vector2(161, 57), dialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Login), dialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Login)); _loginButton.OnClick += async(o, e) => await LoginButtonClick(); _loginButton.SetParentControl(this); _deleteButton = new XNAButton(dialogButtonService.SmallButtonSheet, new Vector2(161, 85), dialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Delete), dialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Delete)); _deleteButton.OnClick += async(o, e) => await DeleteButtonClick(); _deleteButton.SetParentControl(this); _backgroundImage = _gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 11); }
public ActiveSpellsPanel(INativeGraphicsManager nativeGraphicsManager) { _nativeGraphicsManager = nativeGraphicsManager; BackgroundImage = _nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 62); DrawArea = new Rectangle(102, 330, BackgroundImage.Width, BackgroundImage.Height); }
public virtual void InitializeResources(INativeGraphicsManager gfxManager, ContentManager xnaContentManager) { if (_resourcesInitialized) { throw new InvalidOperationException("Error initializing resources: resources have already been initialized"); } _mainButtonTexture = gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 13, true); _secondaryButtonTexture = gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 14, true); _smallButtonSheet = gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 15, true); _textBoxBackground = xnaContentManager.Load <Texture2D>("tbBack"); _textBoxLeft = xnaContentManager.Load <Texture2D>("tbLeft"); _textBoxRight = xnaContentManager.Load <Texture2D>("tbRight"); _textBoxCursor = xnaContentManager.Load <Texture2D>("cursor"); _backgroundImages = new Texture2D[7]; for (int i = 0; i < _backgroundImages.Length; ++i) { _backgroundImages[i] = gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 30 + i); } _resourcesInitialized = true; }
public NewsPanel(INativeGraphicsManager nativeGraphicsManager, IChatRenderableGenerator chatRenderableGenerator, INewsProvider newsProvider, SpriteFont chatFont) { _nativeGraphicsManager = nativeGraphicsManager; _chatRenderableGenerator = chatRenderableGenerator; _newsProvider = newsProvider; //abs coordiantes: 568 331 _scrollBar = new ScrollBar(new Vector2(467, 20), new Vector2(16, 97), ScrollBarColors.LightOnMed, _nativeGraphicsManager) { LinesToRender = 7, Visible = true }; _scrollBar.SetParentControl(this); _chatRenderables = new List <IChatRenderable>(); _chatFont = chatFont; _cachedNewsStrings = new List <string>(); _cachedScrollOffset = -1; _cachedLinesToRender = -1; BackgroundImage = _nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 48); DrawArea = new Rectangle(102, 330, BackgroundImage.Width, BackgroundImage.Height); }
public ScrollingMessageDialog(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IEODialogButtonService eoDialogButtonService) : base(gameStateProvider) { _font = Game.Content.Load <SpriteFont>(Constants.FontSize08); _textSplitter = new TextSplitter("", _font) { LineLength = 275 }; BackgroundTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PreLoginUI, 40); var smallButtonSheet = eoDialogButtonService.SmallButtonSheet; _ok = new XNAButton(smallButtonSheet, new Vector2(138, 197), eoDialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Ok), eoDialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Ok)); _ok.OnClick += (sender, e) => Close(XNADialogResult.OK); _ok.SetParentControl(this); _scrollBar = new ScrollBar(new Vector2(320, 66), new Vector2(16, 119), ScrollBarColors.LightOnMed, nativeGraphicsManager); _scrollBar.SetParentControl(this); MessageText = ""; CenterInGameView(); }
public TPStatusBar(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider) : base(nativeGraphicsManager, characterProvider) { DrawArea = new Rectangle(210, 0, _sourceRectangleArea.Width, _sourceRectangleArea.Height); _sourceRectangleArea.Offset(_sourceRectangleArea.Width, 0); }
public void Render(SpriteBatch spriteBatch, SpriteFont chatFont, INativeGraphicsManager nativeGraphicsManager) { spriteBatch.Begin(); var pos = TOP_LEFT + new Vector2(0, DisplayIndex * 13); spriteBatch.Draw(nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 32, true), new Vector2(pos.X + ICON_GRAPHIC_X_OFF, pos.Y + HeaderYOffset), GetChatIconRectangle(_data.Icon), Color.White); string strToDraw; if (string.IsNullOrEmpty(_data.Who)) { strToDraw = _partialMessage; } else { strToDraw = _data.Who + " " + _partialMessage; } spriteBatch.DrawString(chatFont, strToDraw, new Vector2(pos.X + CHAT_MESSAGE_X_OFF, pos.Y + HeaderYOffset), _data.ChatColor.ToColor()); spriteBatch.End(); }
public MouseCursorRenderer(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider, IRenderOffsetCalculator renderOffsetCalculator, IMapCellStateProvider mapCellStateProvider, IItemStringService itemStringService, IEIFFileProvider eifFileProvider, ICurrentMapProvider currentMapProvider, IGraphicsDeviceProvider graphicsDeviceProvider, IMapInteractionController mapInteractionController) { _mouseCursorTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 24, true); _characterProvider = characterProvider; _renderOffsetCalculator = renderOffsetCalculator; _mapCellStateProvider = mapCellStateProvider; _itemStringService = itemStringService; _eifFileProvider = eifFileProvider; _currentMapProvider = currentMapProvider; _mapInteractionController = mapInteractionController; SingleCursorFrameArea = new Rectangle(0, 0, _mouseCursorTexture.Width / (int)CursorIndex.NumberOfFramesInSheet, _mouseCursorTexture.Height); _drawArea = SingleCursorFrameArea; _mapItemText = new XNALabel(Constants.FontSize08pt75) { Visible = false, Text = string.Empty, ForeColor = Color.White, AutoSize = false, DrawOrder = 10 //todo: make a better provider for draw orders (see also HudControlsFactory) }; _spriteBatch = new SpriteBatch(graphicsDeviceProvider.GraphicsDevice); }
public CreateAccountWarningDialogFactory( INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IEODialogButtonService eoDialogButtonService) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _eoDialogButtonService = eoDialogButtonService; }
public override void InitializeResources(INativeGraphicsManager gfxManager, ContentManager xnaContentManager) { base.InitializeResources(gfxManager, xnaContentManager); for (int i = 0; i < _personSet2.Length; ++i) { _personSet2[i] = gfxManager.TextureFromResource(GFXTypes.PreLoginUI, 61 + i, true); } }
public OverlayLayerRenderer(INativeGraphicsManager nativeGraphicsManager, ICurrentMapProvider currentMapProvider, ICharacterProvider characterProvider, IRenderOffsetCalculator renderOffsetCalculator) : base(characterProvider, renderOffsetCalculator) { _nativeGraphicsManager = nativeGraphicsManager; _currentMapProvider = currentMapProvider; }
public CreateAccountProgressDialogFactory(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, ILocalizedStringFinder localizedStringFinder, IEODialogButtonService eoDialogButtonService) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _localizedStringFinder = localizedStringFinder; _eoDialogButtonService = eoDialogButtonService; }
public GameLoadingDialogFactory(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IClientWindowSizeProvider clientWindowSizeProvider, ILocalizedStringFinder localizedStringFinder) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _clientWindowSizeProvider = clientWindowSizeProvider; _localizedStringFinder = localizedStringFinder; }
public EOMessageBoxFactory(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IEODialogButtonService eoDialogButtonService, ILocalizedStringFinder localizedStringFinder) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _eoDialogButtonService = eoDialogButtonService; _localizedStringFinder = localizedStringFinder; }
public ShadowLayerRenderer(INativeGraphicsManager nativeGraphicsManager, ICurrentMapProvider currentMapProvider, ICharacterProvider characterProvider, IRenderOffsetCalculator renderOffsetCalculator, IConfigurationProvider configurationProvider) : base(characterProvider, renderOffsetCalculator) { _nativeGraphicsManager = nativeGraphicsManager; _currentMapProvider = currentMapProvider; _configurationProvider = configurationProvider; }
private EffectRenderer(INativeGraphicsManager gfxManager, DrawableGameComponent target, Action cleanupAction) { _target = target; _cleanupAction = cleanupAction; _effectSpriteManager = new EffectSpriteManager(gfxManager); _effectSoundManager = new EffectSoundManager(new SoundManager()); SetEffectInfoTypeAndID(EffectType.Invalid, -1); }
public CharacterInfoPanelFactory(ICharacterSelectorProvider characterProvider, INativeGraphicsManager nativeGraphicsManager, ICharacterRendererFactory characterRendererFactory, IRendererRepositoryResetter rendererRepositoryResetter, IEODialogButtonService eoDialogButtonService) { _characterProvider = characterProvider; _nativeGraphicsManager = nativeGraphicsManager; _characterRendererFactory = characterRendererFactory; _rendererRepositoryResetter = rendererRepositoryResetter; _eoDialogButtonService = eoDialogButtonService; }
public ChangePasswordDialog(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IContentManagerProvider contentManagerProvider, IEOMessageBoxFactory eoMessageBoxFactory, IKeyboardDispatcherProvider keyboardDispatcherProvider, IPlayerInfoProvider playerInfoProvider, IEODialogButtonService dialogButtonService) : base(gameStateProvider) { _eoMessageBoxFactory = eoMessageBoxFactory; _playerInfoProvider = playerInfoProvider; var dispatcher = keyboardDispatcherProvider.Dispatcher; BackgroundTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PreLoginUI, 21); var cursorTexture = contentManagerProvider.Content.Load <Texture2D>("Cursor"); _inputBoxes = new IXNATextBox[4]; for (int i = 0; i < _inputBoxes.Length; ++i) { var tb = new XNATextBox(new Rectangle(198, 60 + i * 30, 137, 19), Constants.FontSize08, caretTexture: cursorTexture) { LeftPadding = 5, DefaultText = " ", MaxChars = i == 0 ? 16 : 12, PasswordBox = i > 1, TextColor = ColorConstants.LightBeigeText }; _inputBoxes[i] = tb; } _clickEventHandler = new TextBoxClickEventHandler(dispatcher, _inputBoxes); _tabEventHandler = new TextBoxTabEventHandler(dispatcher, _inputBoxes); dispatcher.Subscriber = _inputBoxes[0]; _ok = new XNAButton( dialogButtonService.SmallButtonSheet, new Vector2(157, 195), dialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Ok), dialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Ok)); _ok.OnClick += OnButtonPressed; _cancel = new XNAButton( dialogButtonService.SmallButtonSheet, new Vector2(250, 195), dialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Cancel), dialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Cancel)); _cancel.OnClick += (s, e) => Close(XNADialogResult.Cancel); CenterInGameView(); }
public TNLStatusBar(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider, IExperienceTableProvider experienceTableProvider) : base(nativeGraphicsManager, characterProvider) { _experienceTableProvider = experienceTableProvider; DrawArea = new Rectangle(430, 0, _sourceRectangleArea.Width, _sourceRectangleArea.Height); _sourceRectangleArea = new Rectangle(_sourceRectangleArea.Width * 3 - 1, 0, _sourceRectangleArea.Width + 1, _sourceRectangleArea.Height); }
public ScrollBar(Vector2 locationRelativeToParent, Vector2 size, ScrollBarColors palette, INativeGraphicsManager nativeGraphicsManager) { scrollArea = new Rectangle(0, 15, 0, (int)size.Y - 15); DrawPosition = locationRelativeToParent; SetSize((int)size.X, (int)size.Y); ScrollOffset = 0; var scrollSpriteSheet = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 29); var upArrows = new Rectangle[2]; var downArrows = new Rectangle[2]; int vertOff; switch (palette) { case ScrollBarColors.LightOnLight: vertOff = 0; break; case ScrollBarColors.LightOnMed: vertOff = 105; break; case ScrollBarColors.LightOnDark: vertOff = 180; break; case ScrollBarColors.DarkOnDark: vertOff = 255; break; default: throw new ArgumentOutOfRangeException(nameof(palette)); } //regions based on verticle offset (which is based on the chosen palette) upArrows[0] = new Rectangle(0, vertOff + 15 * 3, 16, 15); upArrows[1] = new Rectangle(0, vertOff + 15 * 4, 16, 15); downArrows[0] = new Rectangle(0, vertOff + 15, 16, 15); downArrows[1] = new Rectangle(0, vertOff + 15 * 2, 16, 15); var scrollBox = new Rectangle(0, vertOff, 16, 15); _upButton = new XNAButton(scrollSpriteSheet, Vector2.Zero, upArrows[0], upArrows[1]); _upButton.OnClick += arrowClicked; _upButton.SetParentControl(this); _downButton = new XNAButton(scrollSpriteSheet, new Vector2(0, size.Y - 15), downArrows[0], downArrows[1]); _downButton.OnClick += arrowClicked; _downButton.SetParentControl(this); _scrollButton = new XNAButton(scrollSpriteSheet, new Vector2(0, 15), scrollBox, scrollBox); _scrollButton.OnClickDrag += OnScrollButtonDragged; _scrollButton.OnMouseEnter += (o, e) => { SuppressParentClickDragEvent(true); }; _scrollButton.OnMouseLeave += (o, e) => { SuppressParentClickDragEvent(false); }; _scrollButton.SetParentControl(this); _totalHeight = DrawAreaWithParentOffset.Height; }
public ProgressDialog(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IEODialogButtonService eoDialogButtonService, string messageText, string captionText) : base(gameStateProvider) { BackgroundTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PreLoginUI, 18); _messageLabel = new XNALabel(Constants.FontSize10) { AutoSize = true, ForeColor = ColorConstants.LightYellowText, Text = messageText, TextWidth = 254, DrawPosition = new Vector2(18, 57) }; _messageLabel.SetParentControl(this); _captionLabel = new XNALabel(Constants.FontSize10) { AutoSize = true, ForeColor = ColorConstants.LightYellowText, Text = captionText, DrawPosition = new Vector2(59, 23) }; _captionLabel.SetParentControl(this); _cancelButton = new XNAButton(eoDialogButtonService.SmallButtonSheet, new Vector2(181, 113), eoDialogButtonService.GetSmallDialogButtonOutSource(SmallButton.Cancel), eoDialogButtonService.GetSmallDialogButtonOverSource(SmallButton.Cancel)); _cancelButton.OnClick += DoCancel; _cancelButton.SetParentControl(this); _pbBackgroundTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PreLoginUI, 19); _pbForegroundTexture = new Texture2D(Game.GraphicsDevice, 1, _pbBackgroundTexture.Height - 2); //foreground texture is just a fill var pbForeFill = new Color[_pbForegroundTexture.Width * _pbForegroundTexture.Height]; for (int i = 0; i < pbForeFill.Length; ++i) { pbForeFill[i] = Color.FromNonPremultiplied(0xb4, 0xdc, 0xe6, 0xff); } _pbForegroundTexture.SetData(pbForeFill); CenterInGameView(); }
public ControlSetFactory(INativeGraphicsManager nativeGraphicsManager, IEOMessageBoxFactory messageBoxFactory, IHudControlsFactory hudControlsFactory, IContentManagerProvider contentManagerProvider, IKeyboardDispatcherProvider keyboardDispatcherProvider, IConfigurationProvider configProvider, ICharacterInfoPanelFactory characterInfoPanelFactory) { _nativeGraphicsManager = nativeGraphicsManager; _messageBoxFactory = messageBoxFactory; _hudControlsFactory = hudControlsFactory; _contentManagerProvider = contentManagerProvider; _keyboardDispatcherProvider = keyboardDispatcherProvider; _configProvider = configProvider; _characterInfoPanelFactory = characterInfoPanelFactory; }
public ChangePasswordDialogFactory(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IContentManagerProvider contentManagerProvider, IEOMessageBoxFactory eoMessageBoxFactory, IKeyboardDispatcherProvider keyboardDispatcherProvider, IPlayerInfoProvider playerInfoProvider, IEODialogButtonService eoDialogButtonService) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _contentManagerProvider = contentManagerProvider; _eoMessageBoxFactory = eoMessageBoxFactory; _keyboardDispatcherProvider = keyboardDispatcherProvider; _playerInfoProvider = playerInfoProvider; _eoDialogButtonService = eoDialogButtonService; }
public CreateCharacterDialogFactory(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, ICharacterRendererFactory characterRendererFactory, IContentManagerProvider contentManagerProvider, IKeyboardDispatcherProvider keyboardDispatcherProvider, IEOMessageBoxFactory eoMessageBoxFactory, IEODialogButtonService dialogButtonService) { _nativeGraphicsManager = nativeGraphicsManager; _gameStateProvider = gameStateProvider; _characterRendererFactory = characterRendererFactory; _contentManagerProvider = contentManagerProvider; _keyboardDispatcherProvider = keyboardDispatcherProvider; _eoMessageBoxFactory = eoMessageBoxFactory; _dialogButtonService = dialogButtonService; }
protected StatusBarBase(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider) { _characterProvider = characterProvider; _texture = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 58, true); _label = new XNALabel(Constants.FontSize08) { AutoSize = false, BackColor = Color.Transparent, DrawPosition = new Vector2(3, 15), ForeColor = ColorConstants.LightGrayText, Visible = false }; _label.SetParentControl(this); _sourceRectangleArea = new Rectangle(0, 0, 110, 14); }
public MouseCursorRendererFactory(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider, IRenderOffsetCalculator renderOffsetCalculator, IMapCellStateProvider mapCellStateProvider, IItemStringService itemStringService, IEIFFileProvider eifFileProvider, ICurrentMapProvider currentMapProvider, IGraphicsDeviceProvider graphicsDeviceProvider, IMapInteractionController mapInteractionController) { _nativeGraphicsManager = nativeGraphicsManager; _characterProvider = characterProvider; _renderOffsetCalculator = renderOffsetCalculator; _mapCellStateProvider = mapCellStateProvider; _itemStringService = itemStringService; _eifFileProvider = eifFileProvider; _currentMapProvider = currentMapProvider; _graphicsDeviceProvider = graphicsDeviceProvider; _mapInteractionController = mapInteractionController; }
public CharacterInfoPanel(int characterIndex, ICharacter character, INativeGraphicsManager gfxManager, IEODialogButtonService dialogButtonService, ILoginController loginController, ICharacterManagementController characterManagementController, ICharacterRendererFactory rendererFactory, IRendererRepositoryResetter rendererRepositoryResetter) : this(characterIndex, gfxManager, dialogButtonService) { _character = character; _loginController = loginController; _characterManagementController = characterManagementController; _rendererRepositoryResetter = rendererRepositoryResetter; _characterControl = new CharacterControl(character.RenderProperties, rendererFactory) { DrawPosition = new Vector2(68, 28) }; _characterControl.SetParentControl(this); _nameLabel = new XNALabel(Constants.FontSize08pt5) { DrawArea = GetNameLabelLocation(), ForeColor = ColorConstants.BeigeText, Text = CapitalizeName(character.Name), TextAlign = LabelAlignment.MiddleCenter, AutoSize = false }; _nameLabel.SetParentControl(this); _levelLabel = new XNALabel(Constants.FontSize08pt75) { DrawArea = GetLevelLabelLocation(), ForeColor = ColorConstants.BeigeText, Text = character.Stats.Stats[CharacterStat.Level].ToString() }; _levelLabel.SetParentControl(this); _adminGraphic = CreateAdminGraphic(character.AdminLevel); }
public GameLoadingDialog(INativeGraphicsManager nativeGraphicsManager, IGameStateProvider gameStateProvider, IClientWindowSizeProvider clientWindowSizeProvider, ILocalizedStringFinder localizedStringFinder) : base(gameStateProvider) { _localizedStringFinder = localizedStringFinder; _backgroundSprite = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 33); DrawPosition = new Vector2(clientWindowSizeProvider.Width - _backgroundSprite.Width / 4 - 10, clientWindowSizeProvider.Height - _backgroundSprite.Height - 10); SetSize(_backgroundSprite.Width / 4, _backgroundSprite.Height); _bgSrcIndex = 0; _lastBackgroundUpdate = DateTime.Now; _caption = new XNALabel(Constants.FontSize10) { AutoSize = true, Text = _localizedStringFinder.GetString(EOResourceID.LOADING_GAME_PLEASE_WAIT), ForeColor = ColorConstants.LightYellowText, DrawPosition = new Vector2(12, 9) }; _caption.SetParentControl(this); var gen = new Random(); var messageTextID = (EOResourceID)gen.Next((int)EOResourceID.LOADING_GAME_HINT_FIRST, (int)EOResourceID.LOADING_GAME_HINT_LAST); var localizedMessage = _localizedStringFinder.GetString(messageTextID); _message = new XNALabel(Constants.FontSize08) { AutoSize = true, TextWidth = 175, ForeColor = ColorConstants.MediumGrayText, Text = localizedMessage, DrawPosition = new Vector2(18, 61) }; _message.SetParentControl(this); }
public HudPanelFactory(INativeGraphicsManager nativeGraphicsManager, IContentManagerProvider contentManagerProvider, IHudControlProvider hudControlProvider, INewsProvider newsProvider, IChatProvider chatProvider, ICharacterProvider characterProvider, ICharacterInventoryProvider characterInventoryProvider, IExperienceTableProvider experienceTableProvider, IEOMessageBoxFactory messageBoxFactory, ITrainingController trainingController) { _nativeGraphicsManager = nativeGraphicsManager; _contentManagerProvider = contentManagerProvider; _hudControlProvider = hudControlProvider; _newsProvider = newsProvider; _chatProvider = chatProvider; _characterProvider = characterProvider; _characterInventoryProvider = characterInventoryProvider; _experienceTableProvider = experienceTableProvider; _messageBoxFactory = messageBoxFactory; _trainingController = trainingController; }
public HudControlsFactory(IHudButtonController hudButtonController, IHudPanelFactory hudPanelFactory, IMapRendererFactory mapRendererFactory, IUserInputHandlerFactory userInputHandlerFactory, INativeGraphicsManager nativeGraphicsManager, IGraphicsDeviceProvider graphicsDeviceProvider, IClientWindowSizeProvider clientWindowSizeProvider, IEndlessGameProvider endlessGameProvider, ICharacterRepository characterRepository, ICurrentMapStateRepository currentMapStateRepository, IKeyStateRepository keyStateRepository, IStatusLabelSetter statusLabelSetter, IStatusLabelTextProvider statusLabelTextProvider, IContentManagerProvider contentManagerProvider, IHudControlProvider hudControlProvider, IChatModeCalculator chatModeCalculator, IExperienceTableProvider experienceTableProvider) { _hudButtonController = hudButtonController; _hudPanelFactory = hudPanelFactory; _mapRendererFactory = mapRendererFactory; _userInputHandlerFactory = userInputHandlerFactory; _nativeGraphicsManager = nativeGraphicsManager; _graphicsDeviceProvider = graphicsDeviceProvider; _clientWindowSizeProvider = clientWindowSizeProvider; _endlessGameProvider = endlessGameProvider; _characterRepository = characterRepository; _currentMapStateRepository = currentMapStateRepository; _keyStateRepository = keyStateRepository; _statusLabelSetter = statusLabelSetter; _statusLabelTextProvider = statusLabelTextProvider; _contentManagerProvider = contentManagerProvider; _hudControlProvider = hudControlProvider; _chatModeCalculator = chatModeCalculator; _experienceTableProvider = experienceTableProvider; }
private bool InitializeGFXManager() { try { #if MONO _gfxLoader = new GFXLoader(); #else _gfxLoader = new EOCLI.GFXLoaderCLI(); #endif GFXManager = new GFXManager(_gfxLoader, GraphicsDevice); } catch (LibraryLoadException lle) { MessageBox.Show( string.Format( "There was an error loading GFX{0:000}.EGF : {1}. Place all .GFX files in .\\gfx\\. The error message is:\n\n\"{2}\"", (int)lle.WhichGFX, lle.WhichGFX, lle.Message), "GFX Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Exit(); return false; } catch (ArgumentNullException ex) { MessageBox.Show("Error initializing GFXManager: " + ex.Message, "Error"); Exit(); return false; } return true; }
public EOSpriteSheet(INativeGraphicsManager gfxManager, Character charToWatch) { _gfxManager = gfxManager; _charRef = charToWatch; }
public EONPCSpriteSheet(INativeGraphicsManager gfxManager, NPCRenderer npcToWatch) { _gfxManager = gfxManager; _npcRenderer = npcToWatch; }
public EffectSpriteManager(INativeGraphicsManager graphicsManager) { _graphicsManager = graphicsManager; }
public EffectSpriteManager(INativeGraphicsManager graphicsManager) { _graphicsManager = graphicsManager; CreatePotionEffectDictionary(); CreateSpellEffectDictionary(); }
public EffectRenderer(INativeGraphicsManager gfxManager, CharacterRenderer character, Action cleanupAction = null) : this(gfxManager, (DrawableGameComponent)character, cleanupAction) { }
public EffectRenderer(INativeGraphicsManager gfxManager, NPCRenderer npc, Action cleanupAction = null) : this(gfxManager, (DrawableGameComponent)npc, cleanupAction) { }