public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");

            _background = new StaticObject("sphereInv.bin", "starsBackground");

            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                   {
                                                                                       YND.Speech.ClearAll();
                                                                                       YND.StageManager.ChangeStage("AboutMenu");
                                                                                   });
        }
        public override void LoadContent()
        {
            _descriptionPanel = YND.ContentManager.Load<Texture2D>("HUD/encyclopediaBG");
            _scientistPhoto = YND.ContentManager.Load<Texture2D>("Images/" + _scientist);
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _fontBig = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronBig");

            _background = new StaticObject("sphereInv.bin", "starsBackground");
            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                                       {
                                                                                                           YND.Speech.ClearAll();
                                                                                                           YND.StageManager.ChangeStage("EncyclopediaMenuScientists");
                                                                                                       });
        }
Exemplo n.º 3
0
        public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");

            _background = new StaticObject("sphereInv.bin", "starsBackground");
            _button1 = new HoldButton("circle", _fontSmall, "Episodes", new Vector2(250, 150), 200, () => YND.StageManager.ChangeStage("SessionsMenu"));
            _button2 = new HoldButton("circle", _fontSmall, "Encyclopedia", new Vector2(1000, 140), 170, () => YND.StageManager.ChangeStage("EncyclopediaMenu"));
            _button3 = new HoldButton("circle", _fontSmall, "About", new Vector2(1150, 300), 200, () => YND.StageManager.ChangeStage("AboutMenu"));
            _buttonExit = new HoldButton("circle", _fontSmall, "Exit", new Vector2(250, 550), 160, YND.ExitGame);

            _nebulas.Add(CelestialGenerator.MakeNebula(Vector3.Zero, 400, 400, 200, 0.015f));

            MakeNebulaBackground(7000, 2000, 400, 0.14f);
        }
Exemplo n.º 4
0
        public override void LoadContent()
        {
            _font = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _background = new StaticObject("sphereInv.bin", "starsBackground");
            _logo = YND.ContentManager.Load<Texture2D>("HUD/LogoPlanetarySystems");

            pictures = new Texture2D[]
                           {
                               YND.ContentManager.Load<Texture2D>("Textures/Encyclopedia/Neb0"),
                               YND.ContentManager.Load<Texture2D>("Textures/Encyclopedia/Neb1"),
                               YND.ContentManager.Load<Texture2D>("Textures/Encyclopedia/Neb2"),
                               YND.ContentManager.Load<Texture2D>("Textures/Encyclopedia/Neb3"),
                               YND.ContentManager.Load<Texture2D>("Textures/Encyclopedia/Neb4")
                           };
        }
        public override void LoadContent()
        {
            _font = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _background = new StaticObject("sphereInv.bin", "starsBackground");
            _logo = YND.ContentManager.Load<Texture2D>("HUD/LogoPlanetarySystems");

            pictures = new List<Texture2D>();

            for (int i = 0; i < 31; i++)
            {
                String name = String.Format("Textures/Scale/{0}", i.ToString("00"));
                pictures.Add(YND.ContentManager.Load<Texture2D>(name));
            }

            _backButton = new HoldButton("circle", _font, "Back", new Vector2(250, 550), 160, () =>
            {
                YND.Speech.ClearAll();
                YND.StageManager.ChangeStage("EncyclopediaMenu");
            });
        }
Exemplo n.º 6
0
        public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _fontBig = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronBig");

            _background = new StaticObject("sphereInv.bin", "starsBackground");

            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                   {
                                                                                       YND.Speech.ClearAll();
                                                                                       YND.StageManager.ChangeStage("MainMenu");
                                                                                   });

            _buttons.Clear();
            for (int i = 6; i < _spaceModel.Planets.Count; i++)
            {
                if (i == 6) _buttons.Add(new HoldButton("circle", _fontSmall, " Planetary\nSystems", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("Session1Controller")));
                else _buttons.Add(new HoldButton("circle", _fontSmall, "?", _spaceModel.Planets[i], 150, () => { }));
            }
        }
        public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _fontBig = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronBig");

            _background = new StaticObject("sphereInv.bin", "starsBackground");

            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                   {
                                                                                       YND.Speech.ClearAll();
                                                                                       YND.StageManager.ChangeStage("MainMenu");
                                                                                   });

            _buttons.Clear();
            for (int i = 6; i < _spaceModel.Planets.Count; i++)
            {
                if (i == 6) _buttons.Add(new HoldButton("circle", _fontSmall, "Celestials", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaMenuCelestials")));
                else if (i == 7) _buttons.Add(new HoldButton("circle", _fontSmall, "Scientists", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaMenuScientists")));
                else if (i == 9) _buttons.Add(new HoldButton("circle", _fontSmall, "  Scale of\nthe Universe", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaScale")));
            }
        }
        public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _fontBig = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronBig");

            _background = new StaticObject("sphereInv.bin", "starsBackground");

            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                   {
                                                                                       YND.Speech.ClearAll();
                                                                                       YND.StageManager.ChangeStage("EncyclopediaMenu");
                                                                                   });

            _buttons.Clear();
            for (int i = 6; i < _spaceModel.Planets.Count; i++)
            {
                if (i == 6) _buttons.Add(new HoldButton("circle", _fontSmall, "Nicolaus Copernicus", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaCopernicus")));
                else if (i == 7) _buttons.Add(new HoldButton("circle", _fontSmall, "Galileo Galilei", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaGalileo")));
                else if (i == 8) _buttons.Add(new HoldButton("circle", _fontSmall, "Isaac Newton", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaNewton")));
                else if (i == 9) _buttons.Add(new HoldButton("circle", _fontSmall, "Albert Einstein", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaEinstein")));
                else if (i == 10) _buttons.Add(new HoldButton("circle", _fontSmall, "Edwin Hubble", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaHubble")));
            }
        }
        public override void LoadContent()
        {
            _fontSmall = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronSmall");
            _fontBig = YND.ContentManager.Load<SpriteFont>("Fonts/OrbitronBig");

            _background = new StaticObject("sphereInv.bin", "starsBackground");

            _backButton = new HoldButton("circle", _fontSmall, "Back", new Vector2(250, 550), 160, () =>
                                                                                   {
                                                                                       YND.Speech.ClearAll();
                                                                                       YND.StageManager.ChangeStage("EncyclopediaMenu");
                                                                                   });

            _buttons.Clear();
            for (int i = 6; i < _spaceModel.Planets.Count; i++)
            {
                if (i == 6) _buttons.Add(new HoldButton("circle", _fontSmall, "Nebulas", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaNebula")));
                else if (i == 7) _buttons.Add(new HoldButton("circle", _fontSmall, "Stars", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaStar")));
                else if (i == 8) _buttons.Add(new HoldButton("circle", _fontSmall, "Galaxy", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaGalaxy")));
                else if (i == 9) _buttons.Add(new HoldButton("circle", _fontSmall, "Planetary\n Systems", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("SolarSystem")));
                else if (i == 10) _buttons.Add(new HoldButton("circle", _fontSmall, "Planets", _spaceModel.Planets[i], 150, () => YND.StageManager.ChangeStage("EncyclopediaPlanet")));
            }
        }
Exemplo n.º 10
0
 public override void LoadContent()
 {
     _background = new StaticObject("sphereInv.bin", "starsBackground");
 }
Exemplo n.º 11
0
 public override void LoadContent()
 {
     _background = new StaticObject("sphereInv.bin", "starsBackground");
     _nebulas.Add(CelestialGenerator.MakeNebula(Vector3.Zero, 400, 400, 200, 0.015f));
     MakeNebulaBackground(7000, 2000, 400, 0.14f);
 }
Exemplo n.º 12
0
 public override void LoadContent()
 {
     _background = new StaticObject("sphereInv.bin", "starsBackground");
     _logo = YND.ContentManager.Load<Texture2D>("HUD/LogoPlanetarySystems");
 }