// Combat HUD (research 06 §11.3/§11.7, research 09 §3.1 / §6.3): DP counter at the right edge and the bottom-centre // pills. // Client-side combat (`client` prop, DESIGN §14 — the official behaviour): // * own normal battle over: "⌛ 作战结束,等待队友完成作战" with each teammate's live progress (kills / total, ✓); // * observing a teammate (team row → 前往查看): "👁 name" + 返回战场; // * 联防 / 最终攻势: the ‹ › pill switches the camera LEFT half / 全景 / RIGHT half ("你自己" / name / "全景"); it // replaces the observing pill on such a field watched with 前往查看 (a 联防 leaker, an eliminated spectator — the // official non-helper pill "‹ 👁 helper# ›"), with 返回战场 beside the arrows (DESIGN §20.15); // * there is NO view switcher during normal combat. // Server-run combat (legacy streaming mode): the ‹ 自己 › switcher cycling the live fields of m.public.fields. import { html, Icon } from './components.js'; import { DpCounter } from './hud.js'; import { GIcon } from './gameComponents.js'; import { switcherLabel, cycleField } from './gameLogic.js'; import { t } from '../../../shared/i18n.js'; const cx = (...p) => p.flat().filter(Boolean).join(' '); /** Teammates' progress under the waiting pill (css/screens/game.css .chud__progress / .chud__prog). */ function ProgressList({ list }) { if (!Array.isArray(list) || !list.length) return null; return html`