generated from tipragot/rust
Add the main menu #31
|
@ -22,9 +22,7 @@ impl Plugin for MenuPlugin {
|
||||||
/// The fonction that been called when the plugin is added to the app.
|
/// The fonction that been called when the plugin is added to the app.
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_plugins(EguiPlugin)
|
app.add_plugins(EguiPlugin)
|
||||||
// Add the resource
|
|
||||||
.init_resource::<Address>()
|
.init_resource::<Address>()
|
||||||
// Add systems for the UI.
|
|
||||||
.add_systems(Update, ui_connect_button)
|
.add_systems(Update, ui_connect_button)
|
||||||
.add_systems(Update, ui_host_button);
|
.add_systems(Update, ui_host_button);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue