Exemplo n.º 1
0
        public ControlsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("BACK", "Go back to the previous menu", parent),
            };

            title = "Controls";
        }
Exemplo n.º 2
0
        public ControlsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("BACK", "Go back to the previous menu", parent),
            };

            title = "Controls";
        }
Exemplo n.º 3
0
        public MainMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("Resume", "Resume playing the game", parent),
                new ScreenOption("Controls", "View the game controls", new ControlsMenu(this, manager)),
                new ScreenOption("Options", "View and change the game options", new OptionsMenu(this, manager)),
                new ScreenOption("Exit Game", "Exit the game", null),
            };

            title = "Main Menu";
        }
Exemplo n.º 4
0
        public MainMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("Resume", "Resume playing the game", parent),
                new ScreenOption("Controls", "View the game controls", new ControlsMenu(this, manager)),
                new ScreenOption("Options", "View and change the game options", new OptionsMenu(this, manager)),
                new ScreenOption("Exit Game", "Exit the game", null),
            };

            title = "Main Menu";
        }
Exemplo n.º 5
0
        public EditorMainMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("Resume", "Resume editing", parent),
                new ScreenOption("Options", "Load a level", new EditorOptionsMenu(this, manager)),
                new ScreenOption("Save", "Save the level", null),
                new ScreenOption("Load", "Load a level", null),
                new ScreenOption("Exit", "Exit the editor", null),
            };

            title = "Edit Menu";
        }
Exemplo n.º 6
0
        public EditorMainMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            options = new ScreenOption[]
            {
                new ScreenOption("Resume", "Resume editing", parent),
                new ScreenOption("Options", "Load a level", new EditorOptionsMenu(this, manager)),
                new ScreenOption("Save", "Save the level", null),
                new ScreenOption("Load", "Load a level", null),
                new ScreenOption("Exit", "Exit the editor", null),
            };

            title = "Edit Menu";
        }
Exemplo n.º 7
0
        public EditorOptionsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            Editor editor = Editor.GetInstance();

            camera_switch = new Switch(this, 1, default_free_camera, editor.SetCamera);
            debug_switch = new Switch(this, 2, default_debug_view, editor.SetDebugView);

            options = new ScreenOption[]
            {
                new ScreenOption("Reset to Default", "Reset the volume and brightness to default values", null),
                new ScreenOption("Free Camera", "Change the camera type", null),
                new ScreenOption("Debug View", "Toggle debug view", null),
                new ScreenOption("Back", "Go back to the previous menu", parent)
            };

            title = "Options";
        }
Exemplo n.º 8
0
        public EditorOptionsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            Editor editor = Editor.GetInstance();

            camera_switch = new Switch(this, 1, default_free_camera, editor.SetCamera);
            debug_switch  = new Switch(this, 2, default_debug_view, editor.SetDebugView);

            options = new ScreenOption[]
            {
                new ScreenOption("Reset to Default", "Reset the volume and brightness to default values", null),
                new ScreenOption("Free Camera", "Change the camera type", null),
                new ScreenOption("Debug View", "Toggle debug view", null),
                new ScreenOption("Back", "Go back to the previous menu", parent)
            };

            title = "Options";
        }
Exemplo n.º 9
0
        public OptionsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            Hyades game = Hyades.GetInstance();

            volume_slider = new Slider(this, 1, default_volume, Application.GetInstance().SetVolume);
            brightness_slider = new Slider(this, 2, default_brightness, Application.GetInstance().SetBrightness);
            debug_switch = new Switch(this, 3, default_debug, game.SetDebugView);

            options = new ScreenOption[]
            {
                new ScreenOption("Reset to Default", "Reset the volume and brightness to default values", null),
                new ScreenOption("Volume", "Change the game music and sound effect volume", null),
                new ScreenOption("Brightness", "Change the game brightness", null),
                new ScreenOption("Debug", "Show debug view", null),
                new ScreenOption("Back", "Go back to the previous menu", parent)
            };

            title = "Options";
        }
Exemplo n.º 10
0
        public OptionsMenu(Screen parent, ScreenManager manager)
            : base(parent, manager)
        {
            Hyades game = Hyades.GetInstance();

            volume_slider     = new Slider(this, 1, default_volume, Application.GetInstance().SetVolume);
            brightness_slider = new Slider(this, 2, default_brightness, Application.GetInstance().SetBrightness);
            debug_switch      = new Switch(this, 3, default_debug, game.SetDebugView);

            options = new ScreenOption[]
            {
                new ScreenOption("Reset to Default", "Reset the volume and brightness to default values", null),
                new ScreenOption("Volume", "Change the game music and sound effect volume", null),
                new ScreenOption("Brightness", "Change the game brightness", null),
                new ScreenOption("Debug", "Show debug view", null),
                new ScreenOption("Back", "Go back to the previous menu", parent)
            };

            title = "Options";
        }