diff --git a/cspell.json b/cspell.json
index 16b4ea7f5..ba729b144 100644
--- a/cspell.json
+++ b/cspell.json
@@ -4,6 +4,8 @@
"amogos",
"Tankopedia",
"uasset",
- "oodle"
+ "oodle",
+ "blitzkit",
+ "webp"
]
}
\ No newline at end of file
diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json
index 3607af087..efc5aae71 100644
--- a/packages/i18n/strings/en.json
+++ b/packages/i18n/strings/en.json
@@ -198,12 +198,8 @@
},
"tanks": {
- "characteristics": {
- "title": "Characteristics"
- },
-
"loadout": {
- "title": "Loadout",
+ "consumables": "Consumables",
"modules": "Modules",
"equipment": "Equipment",
"alternative": "Alt"
diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.module.css b/packages/website-ue/src/components/TankopediaLoadout/index.module.css
index cbcb5f749..336a2e674 100644
--- a/packages/website-ue/src/components/TankopediaLoadout/index.module.css
+++ b/packages/website-ue/src/components/TankopediaLoadout/index.module.css
@@ -13,6 +13,36 @@
}
}
+ .consumables {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: var(--space-3);
+
+ .consumable {
+ font-size: var(--space-5);
+
+ img {
+ width: 1em;
+ height: 1em;
+ }
+
+ .info {
+ display: flex;
+ flex-direction: column;
+
+ .entry {
+ display: flex;
+ gap: var(--space-2);
+
+ svg {
+ width: 1em;
+ height: 1em;
+ }
+ }
+ }
+ }
+ }
+
.equipment {
display: flex;
flex-direction: column;
diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.tsx b/packages/website-ue/src/components/TankopediaLoadout/index.tsx
index c5b0384f3..cc316fa9c 100644
--- a/packages/website-ue/src/components/TankopediaLoadout/index.tsx
+++ b/packages/website-ue/src/components/TankopediaLoadout/index.tsx
@@ -5,9 +5,11 @@ import { StandardPrice } from "@protos/blitz_static_standard_price";
import type { UpgradeLine } from "@protos/blitz_static_tank_upgrade_line";
import type { StageParameters } from "@protos/blitz_static_tank_upgrade_single_stage";
import {
+ ClockIcon,
CornerBottomLeftIcon,
DoubleArrowLeftIcon,
DoubleArrowRightIcon,
+ ResetIcon,
TrashIcon,
} from "@radix-ui/react-icons";
import { chunk } from "lodash-es";
@@ -26,7 +28,7 @@ import { useProtagonist } from "../../hooks/useProtagonist";
import { useStrings } from "../../hooks/useStrings";
import { useTierPrices } from "../../hooks/useTierPrices";
import { useUpgradePreset } from "../../hooks/useUpgradePreset";
-import { Tankopedia } from "../../stores/tankopedia";
+import { Tankopedia, TankopediaCompare } from "../../stores/tankopedia";
import { Button } from "../Button";
import { Heading } from "../Heading";
import { IconButton } from "../IconButton";
@@ -38,13 +40,15 @@ import type { ComputedCharacteristics } from "../../tankopedia/computeCharacteri
import { Tooltip } from "../Tooltip";
import { useGameStrings } from "../../hooks/useGameStrings";
import { TankopediaCollapsible } from "../TankopediaCollapsible";
+import type { ConsumableComponent } from "@protos/blitz_static_consumable_component";
+import { Tank } from "@protos/tank";
+import { select } from "three/src/nodes/math/ConditionalNode.js";
interface TankopediaLoadoutProps {
characteristics: ComputedCharacteristics;
}
export function TankopediaLoadout({ characteristics }: TankopediaLoadoutProps) {
- const strings = useStrings();
const tank = useProtagonist();
const showModules = tank.tank!.upgrade_lines.some(
@@ -53,15 +57,9 @@ export function TankopediaLoadout({ characteristics }: TankopediaLoadoutProps) {
return (
<>
-