mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
names
This commit is contained in:
1 parent
22b77398ad
commit
06832e156f
5 files changed
+59
-3
No files matched your search
@@ -77,7 +77,7 @@ export class ClientAPI extends AbstractAPI {
|
||||
return fetchPB("/api/sets.pb", Sets);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
@Cache(true)
|
||||
async strings(locale: string) {
|
||||
const response = await fetch(`/api/strings/${locale}.json`);
|
||||
const json = (await response.json()) as Strings;
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
|
||||
.value {
|
||||
|
||||
@@ -55,10 +55,18 @@ interface ToyProps {
|
||||
}
|
||||
|
||||
function Item({ name }: CharacteristicRenderConfig) {
|
||||
const strings = useStrings();
|
||||
|
||||
return (
|
||||
<span className={styles.item}>
|
||||
<div className={styles.value}>
|
||||
<Text lowContrast>{name}</Text>
|
||||
<Text lowContrast>
|
||||
{
|
||||
(strings.tanks.characteristics.items as Record<string, string>)[
|
||||
name
|
||||
]
|
||||
}
|
||||
</Text>
|
||||
<Text>123</Text>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -121,7 +121,6 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
||||
{ toy: "flexibility" },
|
||||
{ name: "gun_depression", 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: "camouflage", decimals: 0, units: "%" },
|
||||
|
||||
// TODO: implement width
|
||||
// { name: "width", units: "m" },
|
||||
{ name: "height", units: "m" },
|
||||
{ name: "length", units: "m" },
|
||||
{ name: "volume", units: "m" },
|
||||
|
||||
Reference in new issue
Block a user