Fix fmt
All checks were successful
Rust Checks / checks (push) Successful in 1m2s
Rust Checks / checks (pull_request) Successful in 1m3s

This commit is contained in:
CoCo_Sol 2024-02-10 00:32:48 +01:00
parent 4fa8e44ae4
commit 73acfaddd2

View file

@ -17,7 +17,11 @@ impl Plugin for MenuPlugin {
}
}
/// Display the UI of the menu to host a game or join one.
fn menu_ui(mut ctx: EguiContexts, mut connection_string: Local<String>, mut next_state: ResMut<NextState<GameState>>) {
fn menu_ui(
mut ctx: EguiContexts,
mut connection_string: Local<String>,
mut next_state: ResMut<NextState<GameState>>,
) {
egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| {
ui.heading("Border Wars");
@ -37,7 +41,6 @@ fn menu_ui(mut ctx: EguiContexts, mut connection_string: Local<String>, mut next
if ui.button("Create new game").clicked() {
next_state.set(GameState::Lobby);
}
});
}