Ejemplo n.º 1
0
        public SMenu(IServiceProvider ServiceProvider)
        {
            content = new ContentManager(ServiceProvider);
            content.RootDirectory = "Data";

            current_pos = 0;
            custmapmenu = new CustMapMenu(ServiceProvider);
            menulists = new MenuList[4];
            cloudlayer = new Star.Game.Level.CloudLayer();
            string[] names;
            names = new string[5];
            names[0] = "Story";
            names[1] = "Custom Maps";
            names[2] = "Options";
            names[3] = "Credits";
            names[4] = "Quit";
            menulists[0] = new MenuList("Main Menu",names);
            menulists[0].ChangeButtonState(0, ButtonIndicator.Button_Hover);
            names = new string[3];
            names[0] = "Continue";
            names[1] = "Start New Story";
            names[2] = "Mission Selection";
            menulists[1] = new MenuList("Story", names);
            mainmenu = new MainMenu();
            optionsMenu = new OptionsMenu();
            pBackground = new PlayerBackground(ServiceProvider);
            oldMenuEffect = new TransitionEffect(Vector2.Zero, TransitionType.Translate);

            newMenueEffect = new TransitionEffect(Vector2.Zero, TransitionType.Translate);
        }
Ejemplo n.º 2
0
 public SLoadingScreen(IServiceProvider serviceProvider,Options options)
 {
     content = new ContentManager(serviceProvider, "Data");
     loadingrotation = new LoadingRotation(serviceProvider,options);
     loadingstrings = new List<LoadingString>();
     pBackground = new Menu.PlayerBackground(serviceProvider);
 }