public GUIController(Simulator simulator)
        {
            Simulator = simulator;

            StartingPathMenu = new StartingPathMenu(Simulator, VisualPriorities.Default.StartingPathMenu);
            GameMenu = new Simulation.GameMenu(Simulator, new Vector3(450, -320, 0));
            MenuPowerUps = new PowerUpsMenu(Simulator, new Vector3(-550, 200, 0), VisualPriorities.Default.PowerUpsMenu);
            Players = new Dictionary<SimPlayer, GUIPlayer>();

            ContextualMenusCollisions = new ContextualMenusCollisions();

            HelpBar = new HelpBarPanel(simulator.Scene, VisualPriorities.Default.HelpBar)
            {
                Alpha = 0
            };

            GameBarPanel = new Simulation.GameBarPanel(Simulator, VisualPriorities.Default.GameBar);

            NextWavePreview = new NextWavePreview(simulator, VisualPriorities.Default.NextWavePreview);
        }
Beispiel #2
0
        public StoryScene(string name, string transiteTo, Cutscene cutscene) :
            base(name)
        {
            ClearColor = Color.White;
            WorldToTransiteTo = transiteTo;
            Cutscene = cutscene;

            Cutscene.Scene = this;

            Particles.Add(@"selectionCorpsCeleste");

            HelpBar = new HelpBarPanel(this, VisualPriorities.Cutscenes.HelpBar)
            {
                ShowOnForegroundLayer = true
            };
            HelpBar.ShowMessage(HelpBarMessage.HoldToSkip, InputType.Gamepad);
            InputType = InputType.Gamepad;

            Initialize();
        }