feat: Added indicator for "operate as" units

This commit is contained in:
Davide Passoni
2025-01-23 12:01:38 +01:00
parent 20db9647bd
commit b711872d6c
4 changed files with 19 additions and 4 deletions

View File

@@ -995,7 +995,9 @@ export function UnitControlMenu(props: { open: boolean; onClose: () => void }) {
{/* ============== Shots intensity END ============== */}
</div>
{/* ============== Operate as toggle START ============== */}
<div className="flex content-center justify-between">
{selectedUnits.every((unit) => unit.getCoalition() === 'neutral') && <div className={`
flex content-center justify-between
`}>
<span
className={`
my-auto font-normal
@@ -1016,7 +1018,7 @@ export function UnitControlMenu(props: { open: boolean; onClose: () => void }) {
});
}}
/>
</div>
</div>}
{/* ============== Operate as toggle END ============== */}
</div>
{/* ============== Follow roads toggle START ============== */}