Implement damage UI, damage and stale moves. #45

Merged
EIREXE merged 6 commits from damage_ui into master 2026-09-19 15:40:44 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 6c1e5beeec - Show all commits
+6
View File
@@ -49,3 +49,9 @@ pub fn spawn_battle_ui(mut commands: Commands, request: Res<PendingMatch>, fight
Ok(())
}
pub fn cleanup_battle_ui(mut commands: Commands, battle_ui: Query<Entity, With<BattleUI>>) {
for entity in battle_ui {
commands.entity(entity).despawn();
}
}
+1
View File
@@ -12,6 +12,7 @@ pub struct InGameUIPlugin;
impl Plugin for InGameUIPlugin {
fn build(&self, app: &mut App) {
app.add_systems(OnEnter(AppState::InMatch), battle_ui::spawn_battle_ui)
.add_systems(OnExit(AppState::InMatch), battle_ui::cleanup_battle_ui)
.add_systems(PostUpdate, fighter_info::update_fighter_info_damage);
}
}