mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
names
This commit is contained in:
1 parent
22b77398ad
commit
06832e156f
5 files changed
+59
-3
No files matched your search
@@ -208,6 +208,52 @@
|
|||||||
"firepower": "Firepower",
|
"firepower": "Firepower",
|
||||||
"maneuverability": "Maneuverability",
|
"maneuverability": "Maneuverability",
|
||||||
"survivability": "Survivability"
|
"survivability": "Survivability"
|
||||||
|
},
|
||||||
|
|
||||||
|
"items": {
|
||||||
|
"name": "Name",
|
||||||
|
"class": "Class",
|
||||||
|
"type": "Type",
|
||||||
|
"nation": "Nation",
|
||||||
|
"tier": "Tier",
|
||||||
|
"compensation": "Compensation",
|
||||||
|
"id": "ID",
|
||||||
|
"slug": "Slug",
|
||||||
|
"gun_type": "Gun type",
|
||||||
|
"dpm": "Damage per minute",
|
||||||
|
"reload": "Reload",
|
||||||
|
"reloads": "Reloads",
|
||||||
|
"damage": "Damage",
|
||||||
|
"module_damage": "Module damage",
|
||||||
|
"clip_size": "Clip size",
|
||||||
|
"intra_clip": "Intra-clip",
|
||||||
|
"penetration": "Penetration",
|
||||||
|
"caliber": "Caliber",
|
||||||
|
"normalization": "Normalization",
|
||||||
|
"ricochet": "Ricochet",
|
||||||
|
"shell_velocity": "Shell velocity",
|
||||||
|
"shell_range": "Shell range",
|
||||||
|
"shell_capacity": "Shell capacity",
|
||||||
|
"aim_time": "Aim time",
|
||||||
|
"dispersion": "Dispersion",
|
||||||
|
"gun_depression": "Gun depression",
|
||||||
|
"gun_elevation": "Gun elevation",
|
||||||
|
"speed_forward": "Speed forward",
|
||||||
|
"speed_backward": "Speed backward",
|
||||||
|
"engine_power": "Engine power",
|
||||||
|
"weight": "Weight",
|
||||||
|
"terrain_coefficient": "Terrain coefficient",
|
||||||
|
"power_to_weight": "Power to weight",
|
||||||
|
"hull_traverse_speed": "Hull traverse speed",
|
||||||
|
"turret_traverse_speed": "Turret traverse speed",
|
||||||
|
"health": "Health",
|
||||||
|
"fire_chance": "Fire chance",
|
||||||
|
"view_range": "View range",
|
||||||
|
"camouflage": "Camouflage",
|
||||||
|
"width": "Width",
|
||||||
|
"height": "Height",
|
||||||
|
"length": "Length",
|
||||||
|
"volume": "Volume"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export class ClientAPI extends AbstractAPI {
|
|||||||
return fetchPB("/api/sets.pb", Sets);
|
return fetchPB("/api/sets.pb", Sets);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Cache()
|
@Cache(true)
|
||||||
async strings(locale: string) {
|
async strings(locale: string) {
|
||||||
const response = await fetch(`/api/strings/${locale}.json`);
|
const response = await fetch(`/api/strings/${locale}.json`);
|
||||||
const json = (await response.json()) as Strings;
|
const json = (await response.json()) as Strings;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
gap: var(--space-2);
|
gap: var(--space-2);
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
|
|||||||
@@ -55,10 +55,18 @@ interface ToyProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Item({ name }: CharacteristicRenderConfig) {
|
function Item({ name }: CharacteristicRenderConfig) {
|
||||||
|
const strings = useStrings();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className={styles.item}>
|
<span className={styles.item}>
|
||||||
<div className={styles.value}>
|
<div className={styles.value}>
|
||||||
<Text lowContrast>{name}</Text>
|
<Text lowContrast>
|
||||||
|
{
|
||||||
|
(strings.tanks.characteristics.items as Record<string, string>)[
|
||||||
|
name
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</Text>
|
||||||
<Text>123</Text>
|
<Text>123</Text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
{ toy: "flexibility" },
|
{ toy: "flexibility" },
|
||||||
{ name: "gun_depression", decimals: 0, units: "deg" },
|
{ name: "gun_depression", decimals: 0, units: "deg" },
|
||||||
{ name: "gun_elevation", decimals: 0, units: "deg" },
|
{ name: "gun_elevation", decimals: 0, units: "deg" },
|
||||||
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -150,6 +149,8 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
{ name: "view_range", units: "m" },
|
{ name: "view_range", units: "m" },
|
||||||
{ name: "camouflage", decimals: 0, units: "%" },
|
{ name: "camouflage", decimals: 0, units: "%" },
|
||||||
|
|
||||||
|
// TODO: implement width
|
||||||
|
// { name: "width", units: "m" },
|
||||||
{ name: "height", units: "m" },
|
{ name: "height", units: "m" },
|
||||||
{ name: "length", units: "m" },
|
{ name: "length", units: "m" },
|
||||||
{ name: "volume", units: "m" },
|
{ name: "volume", units: "m" },
|
||||||
|
|||||||
Reference in new issue
Block a user