Skip to content

Commit

Permalink
remove unfinished settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
thombruce committed Nov 6, 2023
1 parent fec8e52 commit 2246b34
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- New start menu with "New Game", "Settings", "Credits" and "Quit" buttons
- New start menu with "New Game", "Credits" and "Quit" buttons

### Changed

Expand Down
2 changes: 0 additions & 2 deletions src/inputs/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use leafwing_input_manager::prelude::*;
pub enum MenuAction {
Select,
Start,
Settings,
Credits,
Quit,
}
Expand All @@ -16,7 +15,6 @@ pub fn menu_input_map() -> InputMap<MenuAction> {
(KeyCode::Return, MenuAction::Select),
// Hotkeys
(KeyCode::N, MenuAction::Start),
(KeyCode::S, MenuAction::Settings),
(KeyCode::C, MenuAction::Credits),
(KeyCode::Q, MenuAction::Quit),
]);
Expand Down
5 changes: 0 additions & 5 deletions src/ui/menus/start_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ impl Plugin for MenuPlugin {
#[derive(Component)]
pub enum MenuButton {
NewGame,
Settings,
Credits,
Quit,
}
Expand Down Expand Up @@ -99,7 +98,6 @@ pub(crate) fn spawn_start_menu(mut commands: Commands, ui: Res<UiAssets>, i18n:

for (string, marker) in [
("new-game", MenuButton::NewGame),
("settings", MenuButton::Settings),
("credits", MenuButton::Credits),
("quit", MenuButton::Quit),
] {
Expand Down Expand Up @@ -143,9 +141,6 @@ pub(crate) fn menu_input_system(
MenuButton::NewGame => {
next_state.set(GameState::GameCreate);
}
MenuButton::Settings => {
// start the game
}
MenuButton::Credits => {
next_state.set(GameState::Credits);
}
Expand Down

0 comments on commit 2246b34

Please sign in to comment.