fix menu labels not updating

This commit is contained in:
yuni 2024-05-13 23:50:53 +02:00
parent 1b7f422791
commit 9c148a5a7c
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ impl Plugin for GamePlugin {
fn build(&self, app: &mut App) {
app.add_systems(Update, handle_cheats.run_if(in_control));
app.add_systems(Update, debug);
app.add_systems(Update, handle_game_event);
app.add_systems(PostUpdate, handle_game_event);
app.add_systems(PreUpdate, handle_player_death);
app.add_systems(PostUpdate, update_id2pos);
app.insert_resource(Id2Pos(HashMap::new()));

View file

@ -22,7 +22,7 @@ impl Plugin for MenuPlugin {
app.add_systems(Startup, setup.after(hud::setup));
app.add_systems(PreUpdate, show_deathscreen.run_if(on_event::<DeathScreenEvent>()));
app.add_systems(Update, handle_deathscreen_input);
app.add_systems(PreUpdate, update_menu
app.add_systems(PostUpdate, update_menu
.after(game::handle_game_event)
.run_if(on_event::<UpdateMenuEvent>()));
app.add_systems(Update, handle_input.run_if(alive));