@@ 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;
}
});