-
- ${this.renderUnitItem(
- cityIcon,
- this._cities,
- UnitType.City,
- "city",
- this.keybinds["buildCity"]?.key ?? "1",
- )}
- ${this.renderUnitItem(
- factoryIcon,
- this._factories,
- UnitType.Factory,
- "factory",
- this.keybinds["buildFactory"]?.key ?? "2",
- )}
- ${this.renderUnitItem(
- portIcon,
- this._port,
- UnitType.Port,
- "port",
- this.keybinds["buildPort"]?.key ?? "3",
- )}
- ${this.renderUnitItem(
- defensePostIcon,
- this._defensePost,
- UnitType.DefensePost,
- "defense_post",
- this.keybinds["buildDefensePost"]?.key ?? "4",
- )}
- ${this.renderUnitItem(
- missileSiloIcon,
- this._missileSilo,
- UnitType.MissileSilo,
- "missile_silo",
- this.keybinds["buildMissileSilo"]?.key ?? "5",
- )}
- ${this.renderUnitItem(
- samLauncherIcon,
- this._samLauncher,
- UnitType.SAMLauncher,
- "sam_launcher",
- this.keybinds["buildSamLauncher"]?.key ?? "6",
- )}
-
-
-
- ${this.renderUnitItem(
- warshipIcon,
- this._warships,
- UnitType.Warship,
- "warship",
- this.keybinds["buildWarship"]?.key ?? "7",
- )}
- ${this.renderUnitItem(
- atomBombIcon,
- null,
- UnitType.AtomBomb,
- "atom_bomb",
- this.keybinds["buildAtomBomb"]?.key ?? "8",
- )}
- ${this.renderUnitItem(
- hydrogenBombIcon,
- null,
- UnitType.HydrogenBomb,
- "hydrogen_bomb",
- this.keybinds["buildHydrogenBomb"]?.key ?? "9",
- )}
- ${this.renderUnitItem(
- mirvIcon,
- null,
- UnitType.MIRV,
- "mirv",
- this.keybinds["buildMIRV"]?.key ?? "0",
- )}
-
+
+
+ ${this.renderUnitItem(
+ cityIcon,
+ this._cities,
+ UnitType.City,
+ "city",
+ this.keybinds["buildCity"]?.key ?? "1",
+ )}
+ ${this.renderUnitItem(
+ factoryIcon,
+ this._factories,
+ UnitType.Factory,
+ "factory",
+ this.keybinds["buildFactory"]?.key ?? "2",
+ )}
+ ${this.renderUnitItem(
+ portIcon,
+ this._port,
+ UnitType.Port,
+ "port",
+ this.keybinds["buildPort"]?.key ?? "3",
+ )}
+ ${this.renderUnitItem(
+ defensePostIcon,
+ this._defensePost,
+ UnitType.DefensePost,
+ "defense_post",
+ this.keybinds["buildDefensePost"]?.key ?? "4",
+ )}
+ ${this.renderUnitItem(
+ missileSiloIcon,
+ this._missileSilo,
+ UnitType.MissileSilo,
+ "missile_silo",
+ this.keybinds["buildMissileSilo"]?.key ?? "5",
+ )}
+ ${this.renderUnitItem(
+ samLauncherIcon,
+ this._samLauncher,
+ UnitType.SAMLauncher,
+ "sam_launcher",
+ this.keybinds["buildSamLauncher"]?.key ?? "6",
+ )}
+ ${this.renderUnitItem(
+ warshipIcon,
+ this._warships,
+ UnitType.Warship,
+ "warship",
+ this.keybinds["buildWarship"]?.key ?? "7",
+ )}
+ ${this.renderUnitItem(
+ atomBombIcon,
+ null,
+ UnitType.AtomBomb,
+ "atom_bomb",
+ this.keybinds["buildAtomBomb"]?.key ?? "8",
+ )}
+ ${this.renderUnitItem(
+ hydrogenBombIcon,
+ null,
+ UnitType.HydrogenBomb,
+ "hydrogen_bomb",
+ this.keybinds["buildHydrogenBomb"]?.key ?? "9",
+ )}
+ ${this.renderUnitItem(
+ mirvIcon,
+ null,
+ UnitType.MIRV,
+ "mirv",
+ this.keybinds["buildMIRV"]?.key ?? "0",
+ )}
`;
@@ -243,7 +237,7 @@ export class UnitDisplay extends LitElement implements Layer {
${hovered
? html`
${translateText(
@@ -265,7 +259,7 @@ export class UnitDisplay extends LitElement implements Layer {
{
@@ -299,12 +293,14 @@ export class UnitDisplay extends LitElement implements Layer {
@mouseleave=${() =>
this.eventBus?.emit(new ToggleStructureEvent(null))}
>
- ${html`
+ ${html`
${displayHotkey}
`}
-
-

- ${number !== null ? renderNumber(number) : null}
+
+

+ ${number !== null
+ ? html`
${renderNumber(number)}`
+ : null}