Esempio n. 1
0
        public FullLevelMenu(LevelManager Parent, Level Target, InputController Input, ContentManager CM, Dictionary<String, Player> Players, int x, int y, int xprime, int yprime)
        {
            parent = Parent;
            font = parent.font;
            current_index = 0;
            x_position = x;
            y_position = y;
            y_spacing = yprime;
            x_spacing = xprime;
            image = CM.Load<Texture2D>("Main Menu");
            cursor_image = CM.Load<Texture2D>("laser");
            addMenuItem(new Level_Button(parent, Target));
            wallType = new ToggleWallsButton(Target);
            wallType.addOption("Full Reflective", Level.WallType.FullReflect);
            wallType.addOption("Full Absorb", Level.WallType.FullAbsorb);
            wallType.addOption("H", Level.WallType.SideReflect);
            wallType.addOption("I", Level.WallType.UpDownReflect);
            wallType.addOption("X", Level.WallType.DiagonalReflectingOctagon);
            wallType.execute();
            addMenuItem(wallType);
            reflectiveAllowance = new ToggleLimitsButton(Target, Surface.SurfaceType.Reflective);
            addMenuItem(reflectiveAllowance);

            absorbantAllowance = new ToggleLimitsButton(Target, Surface.SurfaceType.Absorbant);
            addMenuItem(absorbantAllowance);

            refractiveAllowance = new ToggleLimitsButton(Target, Surface.SurfaceType.Refractive);
            addMenuItem(refractiveAllowance);

            player1Start = new FlashText(font, "Player 1 Press Start", 500f, 100, 660, Color.Red);

            player2Start = new FlashText(font, "Player 2 Press Start", 500f, 750, 660, Color.Blue);

            players = Players;
        }
Esempio n. 2
0
        public FullMenu(LevelManager Parent, Dictionary<String, Player> Players, ContentManager CM, String assetName, int x, int y, int xprime, int yprime)
        {
            parent = Parent;
            font = parent.font;
            current_index = 0;
            x_position = x;
            y_position = y;
            y_spacing = yprime;
            x_spacing = xprime;
            image = CM.Load<Texture2D>(assetName);
            player1Start = new FlashText(font, "Player 1 Press Start", 500f, 100, 660, Color.Red);

            player2Start = new FlashText(font, "Player 2 Press Start", 500f, 750, 660, Color.Blue);

            cursor_image = CM.Load<Texture2D>("laser");
            players = Players;
        }