diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 18:05:52 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 18:05:52 +0300 |
| commit | 9f442fa339371869dda44a32a9e0ec2f763d830c (patch) | |
| tree | bec91edfe30d42a278502561af155c11a32de764 /crates/fparkan-assets/src/strategy_toolbar.rs | |
| parent | 3b5a8aa4e6465ca56763cb96b4100bb1ff1c0ccf (diff) | |
| download | fparkan-9f442fa339371869dda44a32a9e0ec2f763d830c.tar.xz fparkan-9f442fa339371869dda44a32a9e0ec2f763d830c.zip | |
feat(ui): connect the bunker list to the strategic camera
Show clan bunkers with the original compound controls and map selection. The strategic command button switches the camera anchor and preserves a view already bound to that bunker. Check the stock Two Fortresses window with Vulkan validation and exercise retargeting and the ownership guard with the licensed runtime test.
Diffstat (limited to 'crates/fparkan-assets/src/strategy_toolbar.rs')
| -rw-r--r-- | crates/fparkan-assets/src/strategy_toolbar.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/fparkan-assets/src/strategy_toolbar.rs b/crates/fparkan-assets/src/strategy_toolbar.rs index 29737335..e7c5ca11 100644 --- a/crates/fparkan-assets/src/strategy_toolbar.rs +++ b/crates/fparkan-assets/src/strategy_toolbar.rs @@ -31,6 +31,8 @@ pub enum ToolbarAction { Warbots, /// Toggle the clan's factory panel. Factories, + /// Toggle the clan's bunkers. + Bunkers, /// Toggle the clan's other buildings. OtherBuildings, /// Toggle the satellite map. @@ -44,6 +46,7 @@ pub fn command_button_at([x, y]: [f32; 2]) -> Option<ToolbarAction> { 0 => Some(ToolbarAction::Hero), 1 => Some(ToolbarAction::Warbots), 5 => Some(ToolbarAction::Factories), + 7 => Some(ToolbarAction::Bunkers), 8 => Some(ToolbarAction::OtherBuildings), 10 => Some(ToolbarAction::Map), _ => None, |
