From 161235248bbc848b7f27005088dbed3faa721d45 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 6 Oct 2024 11:42:32 +0200 Subject: [PATCH] show constellation event --- src/main.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7033908..d399077 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,17 +89,19 @@ fn main() { .add_systems(Startup, star_setup) .add_systems(Startup, cons_setup) .add_systems(Startup, ui_setup) - .add_systems(Startup, spawn_line) .add_systems(Update, player_rotate) .add_systems(Update, button_system) .run(); } -fn spawn_line( +fn spawn_cons_lines( mut commands: Commands, mut meshes: ResMut>, mut materials: ResMut>, + sky: Res, + constellation_name: String, ) { + info!("show : {}", constellation_name); // Create a material for the line let line_material = materials.add(StandardMaterial { emissive: LinearRgba::rgb(1.0, 0.5, 0.5), // Red color for the line @@ -315,7 +317,7 @@ fn player_rotate( mut text_query: Query<&mut Text, With>, mut button_query: Query<(&mut BackgroundColor, &mut BorderColor), With