mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-28 11:10:44 +01:00
feat: add mode selection screen
This commit is contained in:
@@ -45,7 +45,7 @@ pub async fn draw_main_menu(state: &mut GuiState) {
|
||||
menu_builder.label(ui, "Main menu");
|
||||
|
||||
if menu_builder.button(ui, "Play") {
|
||||
*state = GuiState::Game;
|
||||
*state = GuiState::ModeSelection;
|
||||
}
|
||||
|
||||
if menu_builder.button(ui, "Settings") {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
pub mod main_menu;
|
||||
pub mod mode_selection;
|
||||
mod menu_builder;
|
||||
|
||||
Reference in New Issue
Block a user