diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 05:43:27 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 05:43:27 +0300 |
| commit | bd3e9f385eae92ae92a153bff6385f92d3ea76b7 (patch) | |
| tree | 618c780aceb24e4b70a7325ecf4984565d63531b /apps/fparkan-game/src/factory_menu.rs | |
| parent | 882105f571231acd562aa403fc4767585f70ac54 (diff) | |
| download | fparkan-bd3e9f385eae92ae92a153bff6385f92d3ea76b7.tar.xz fparkan-bd3e9f385eae92ae92a153bff6385f92d3ea76b7.zip | |
fix(ui): show presented FPS in the game window title
Diffstat (limited to 'apps/fparkan-game/src/factory_menu.rs')
| -rw-r--r-- | apps/fparkan-game/src/factory_menu.rs | 21 |
1 files changed, 0 insertions, 21 deletions
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 => { |
