fix menu labels not updating
This commit is contained in:
parent
1b7f422791
commit
9c148a5a7c
|
@ -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()));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue