diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 17:50:37 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 17:50:37 +0300 |
| commit | 3b5a8aa4e6465ca56763cb96b4100bb1ff1c0ccf (patch) | |
| tree | 7ccd3b6b20a2211d3c2f72f0707f2d28f9faaf2c /apps/fparkan-game/src/strategic_toolbar_hud.rs | |
| parent | bd7811533a348e56d2be9c7281d0533fc8c46024 (diff) | |
| download | fparkan-3b5a8aa4e6465ca56763cb96b4100bb1ff1c0ccf.tar.xz fparkan-3b5a8aa4e6465ca56763cb96b4100bb1ff1c0ccf.zip | |
feat(ui): link the other buildings panel to the satellite map
Use the installed compound controls, font, and class glyphs for live clan buildings and their durability. Compare the stock Two Fortresses list order, first selection, two-way map selection, and close behavior in the original and in FParkan with Vulkan validation.
Diffstat (limited to 'apps/fparkan-game/src/strategic_toolbar_hud.rs')
| -rw-r--r-- | apps/fparkan-game/src/strategic_toolbar_hud.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/strategic_toolbar_hud.rs b/apps/fparkan-game/src/strategic_toolbar_hud.rs index 7bd71cfe..2ad93a59 100644 --- a/apps/fparkan-game/src/strategic_toolbar_hud.rs +++ b/apps/fparkan-game/src/strategic_toolbar_hud.rs @@ -69,6 +69,9 @@ impl StrategicToolbarHud { if frame.factories_open && frame.sections[4] { visuals[5] = ButtonVisual::Lit; } + if frame.other_buildings_open && frame.sections[7] { + visuals[8] = ButtonVisual::Lit; + } // The chat button is disabled in a local mission. visuals[9] = ButtonVisual::Disabled; if frame.map_open { @@ -98,6 +101,7 @@ pub(super) struct ToolbarFrame { pub sections: [bool; 8], pub warbots_open: bool, pub factories_open: bool, + pub other_buildings_open: bool, pub map_open: bool, pub pointer: Option<[f32; 2]>, pub now_ms: u32, |
