feat: Add placeholder interact menu (#25)

This commit is contained in:
demenik
2025-12-01 17:49:38 +01:00
parent 15ea976442
commit a048d9e84c
6 changed files with 156 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
use crate::prelude::*;
pub mod context_menu;
pub struct PomUiPlugin;
impl Plugin for PomUiPlugin {
fn build(&self, app: &mut App) {
app.add_systems(
Update,
context_menu::spawn_context_menu.run_if(in_state(AppState::GameScreen)),
);
app.add_systems(
Update,
context_menu::click_outside_context_menu.run_if(in_state(AppState::GameScreen)),
);
app.add_systems(
Update,
context_menu::buttons.run_if(in_state(AppState::GameScreen)),
);
}
}