feat: close popups with escape key

This commit is contained in:
demenik
2025-12-08 14:52:58 +01:00
parent 4f41d89f63
commit 881300e0a6
9 changed files with 108 additions and 4 deletions

View File

@@ -18,5 +18,9 @@ impl Plugin for PomUiPlugin {
Update,
context_menu::buttons.run_if(in_state(AppState::GameScreen)),
);
app.add_systems(
Update,
context_menu::close_context_menu.run_if(in_state(AppState::GameScreen)),
);
}
}