generated from tipragot/rust
Add the main menu #31
|
@ -41,7 +41,7 @@ fn ui_connect_button(mut address: ResMut<Address>, mut egui_ctx: EguiContexts) {
|
||||||
.show(egui_ctx.ctx_mut(), |ui| {
|
.show(egui_ctx.ctx_mut(), |ui| {
|
||||||
// Create the text
|
// Create the text
|
||||||
ui.heading("Please enter the password of the game: ");
|
ui.heading("Please enter the password of the game: ");
|
||||||
|
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label("Address: ");
|
ui.label("Address: ");
|
||||||
|
|
||||||
|
@ -70,7 +70,6 @@ fn ui_host_button(mut egui_ctx: EguiContexts, mut address: ResMut<Address>) {
|
||||||
egui::Window::new("Host")
|
egui::Window::new("Host")
|
||||||
.default_width(400.0)
|
.default_width(400.0)
|
||||||
.show(egui_ctx.ctx_mut(), |ui| {
|
.show(egui_ctx.ctx_mut(), |ui| {
|
||||||
|
|
||||||
// Create the text
|
// Create the text
|
||||||
let button = ui.button("Create new game");
|
let button = ui.button("Create new game");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue