public ControlsMenu(Screen parent, ScreenManager manager) : base(parent, manager) { options = new ScreenOption[] { new ScreenOption("BACK", "Go back to the previous menu", parent), }; title = "Controls"; }
public ControlsMenu(Screen parent, ScreenManager manager) : base(parent, manager) { options = new ScreenOption[] { new ScreenOption("BACK", "Go back to the previous menu", parent), }; title = "Controls"; }
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"; }
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"; }
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"; }
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"; }
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"; }
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"; }
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"; }
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"; }