Beispiel #1
0
        public void LoadContent(ContentManager content, GraphicsDevice graphicsDevice)
        {
            txtBoxWaves = new GuiTextBox(new Vector2(Game1.ViewPortWidth - 147, Game1.ViewPortHeight - 39), 137, 29, 1, Color.Black * 0.39f, new Color(98, 0, 0), "Waves: " + SpawnManager.WaveCount, @"Fonts\HUDFont");
            boxLifeBars = new GuiBox(new Vector2(10, Game1.ViewPortHeight - 54), 162, 44, 1, Color.Black * 0.39f, new Color(98, 0, 0), graphicsDevice);
            lfbHealthBar = new GuiLifeBar(new Vector2(28, Game1.ViewPortHeight - 45), playerRef.myShip.Health, @"Sprites\GUI\Health-Bar");
            lfbShieldBar = new GuiLifeBar(new Vector2(28, Game1.ViewPortHeight - 29), playerRef.myShip.Shield, @"Sprites\GUI\Shield-Bar");

            guiSystem.Add(txtBoxScore);
            guiSystem.Add(txtBoxFlamoca);
            guiSystem.Add(txtBoxWaves);
            guiSystem.Add(boxLifeBars);
            guiSystem.Add(lfbHealthBar);
            guiSystem.Add(lfbShieldBar);

            guiSystem.LoadContent(content, graphicsDevice);
        }
Beispiel #2
0
 public void Add(GuiTextBox guiTextBox)
 {
     GuiTextBoxList.Add(guiTextBox);
 }
Beispiel #3
0
 public void Initialize()
 {
     guiSystem.Initialize();
     txtBoxScore = new GuiTextBox(new Vector2(10, 10), 137, 29, 1, Color.Black * 0.39f, new Color(98, 0, 0), "Score: " + Player.Score, @"Fonts\HUDFont");
     txtBoxFlamoca = new GuiTextBox(new Vector2(10, 49), 137, 29, 1, Color.Black * 0.39f, new Color(98, 0, 0), "Flamoca: " + Player.Flamoca, @"Fonts\HUDFont");
 }
Beispiel #4
0
 public void Add(GuiTextBox guiTextBox)
 {
     GuiTextBoxList.Add(guiTextBox);
 }