public PopUp(RenderWindow window, Font font) { _window = window; _font = font; MessageBus.RegisterEvent(this); Sprite sprite = new Sprite(new Texture("Pictures/controls.png")); sprite.Color = new Color(255, 255, 255, 10); _controls = new TextureGui(new Vector2D(Program.windowSize.X / 2 - sprite.Texture.Size.X / 2, Program.windowSize.Y / 2 - sprite.Texture.Size.Y / 2), Vector2D.Zero(), _font, sprite, true); }
public PlayerGui(HealthBar healthBar, SimpleText souls, TextureGui helmet, TextureGui estus, GuiElement background, SimpleText estusCount) { _dataManager = DataManager.GetInstance(); _healthBar = healthBar; _souls = souls; _helmet = helmet; _estus = estus; _background = background; _estusCount = estusCount; _guiElements.Add(background); _guiElements.Add(healthBar); _guiElements.Add(souls); _guiElements.Add(helmet); _guiElements.Add(estus); _guiElements.Add(estusCount); }