From bd3e9f385eae92ae92a153bff6385f92d3ea76b7 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 3 Dec 2026 06:43:27 +0400 Subject: fix(ui): show presented FPS in the game window title --- apps/fparkan-game/src/factory_menu.rs | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'apps/fparkan-game/src/factory_menu.rs') diff --git a/apps/fparkan-game/src/factory_menu.rs b/apps/fparkan-game/src/factory_menu.rs index d46b6a78..77b15f37 100644 --- a/apps/fparkan-game/src/factory_menu.rs +++ b/apps/fparkan-game/src/factory_menu.rs @@ -612,23 +612,6 @@ impl FactoryMenu { } } } - - pub(super) fn title(&self) -> String { - if self.strategy_plant.is_some() { - return "Конструктор варботов".into(); - } - let choice = self.selected(); - let factory = choice.factory.map_or_else( - || "Завод".to_owned(), - |factory| format!("Завод №{}", factory.slot + 1), - ); - format!( - "{factory} — {}/{} {} · ↑/↓ выбор · B или Enter заказ · Esc отмена", - self.selected + 1, - self.choices.len(), - choice.name, - ) - } } pub(super) struct FactoryProjectPanel { @@ -967,7 +950,6 @@ impl StaticVulkanApp { KeyCode::Enter | KeyCode::NumpadEnter => self.send_designer_project(), _ => {} } - self.update_mission_title(); return true; } match code { @@ -982,7 +964,6 @@ impl StaticVulkanApp { } _ => {} } - self.update_mission_title(); } true } @@ -1144,7 +1125,6 @@ impl StaticVulkanApp { } } } - self.update_mission_title(); } return true; } @@ -1153,7 +1133,6 @@ impl StaticVulkanApp { Some(FactoryProjectAction::Select(index)) => { menu.selected = slots.start + index; menu.pressed = Some(index); - self.update_mission_title(); } Some(FactoryProjectAction::Build) => self.player_build_pressed = true, Some(FactoryProjectAction::Designer) if designer_available => { -- cgit v1.2.3