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 StatsPanel(INativeGraphicsManager nativeGraphicsManager, ICharacterProvider characterProvider, ICharacterInventoryProvider characterInventoryProvider, IExperienceTableProvider experienceTableProvider, IEOMessageBoxFactory messageBoxFactory, ITrainingController trainingController) { _characterProvider = characterProvider; _characterInventoryProvider = characterInventoryProvider; _experienceTableProvider = experienceTableProvider; _messageBoxFactory = messageBoxFactory; _trainingController = trainingController; BackgroundImage = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 34); DrawArea = new Rectangle(102, 330, BackgroundImage.Width, BackgroundImage.Height); _basicStats = new IXNALabel[6]; _arrowButtons = new IXNAButton[6]; _characterStats = new IXNALabel[6]; _characterInfo = new IXNALabel[3]; _otherInfo = new IXNALabel[8]; var buttonTexture = nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 27, true); var outTextureArea = new Rectangle(215, 386, 19, 15); var overTextureArea = new Rectangle(234, 386, 19, 15); for (int i = 0; i < _basicStats.Length; ++i) { _basicStats[i] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = new Rectangle(50, 8 + i * 18, 73, 13) }; _arrowButtons[i] = new XNAButton(buttonTexture, new Vector2(106, 7 + i * 18), outTextureArea, overTextureArea) { Visible = false, FlashSpeed = 500 }; } for (int i = 0; i < _characterStats.Length; ++i) { _characterStats[i] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = new Rectangle(158, 8 + i * 18, 73, 13) }; } for (int i = 0; i < _otherInfo.Length; ++i) { var drawArea = i < 4 ? new Rectangle(280, 44 + i % 4 * 18, 60, 13) : new Rectangle(379, 44 + i % 4 * 18, 94, 13); _otherInfo[i] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = drawArea }; } _characterInfo[NAME] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = new Rectangle(280, 8, 144, 13) }; _characterInfo[GUILD] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = new Rectangle(280, 26, 193, 13) }; _characterInfo[LEVEL] = new XNALabel(Constants.FontSize08pt5) { ForeColor = ColorConstants.LightGrayText, AutoSize = false, Text = "", DrawArea = new Rectangle(453, 8, 20, 13) }; }
public UnlockDoorValidator(ICharacterInventoryProvider characterInventoryProvider, IEIFFileProvider eifFileProvider) { _characterInventoryProvider = characterInventoryProvider; _eifFileProvider = eifFileProvider; }