DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

8288db8ce81c868a19c60fad12780b2cf5fc8034 — Jonni Liljamo 1 year, 9 months ago 8af94e5
feat(client): clear connection screen data when switching views
1 files changed, 2 insertions(+), 0 deletions(-)

M client/src/plugins/menu/ui/connect.rs
M client/src/plugins/menu/ui/connect.rs => client/src/plugins/menu/ui/connect.rs +2 -0
@@ 61,6 61,7 @@ pub fn ui(mut egui_context: ResMut<EguiContext>, mut data: ResMut<ConnectScreenD
                    ui.vertical_centered(|ui| {
                        ui.label("I don't have an account:");
                        if ui.link("Register").clicked() {
                            *data = ConnectScreenData::default();
                            data.state = ConnectState::Register;
                        }
                    });


@@ 99,6 100,7 @@ pub fn ui(mut egui_context: ResMut<EguiContext>, mut data: ResMut<ConnectScreenD
                    ui.vertical_centered(|ui| {
                        ui.label("I have an account:");
                        if ui.link("Login").clicked() {
                            *data = ConnectScreenData::default();
                            data.state = ConnectState::Login;
                        }
                    });