mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-10 11:16:10 +01:00
localize
This commit is contained in:
4 files changed
+30
-19
No files matched your search
@@ -40,12 +40,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"tanks": {
|
"tanks": {
|
||||||
|
"antagonist_control": {
|
||||||
|
"calibrated_shells": "Calibrated shells",
|
||||||
|
"enhanced_armor": "Enhanced armor",
|
||||||
|
"equalize": "Equalize"
|
||||||
|
},
|
||||||
|
|
||||||
"custom_shell": {
|
"custom_shell": {
|
||||||
|
"title": "Custom shell",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"caliber": "Caliber",
|
"caliber": "Caliber",
|
||||||
"penetration": "Penetration",
|
"penetration": "Penetration",
|
||||||
"normalization": "Normalization",
|
"normalization": "Normalization",
|
||||||
"ricochet": "Ricochet",
|
"ricochet": "Ricochet",
|
||||||
|
"explosion_radius": "Explosion radius",
|
||||||
"exit": "Exit",
|
"exit": "Exit",
|
||||||
"reset": "Reset"
|
"reset": "Reset"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { Select } from "../Select";
|
|||||||
import { Slider } from "../Slider";
|
import { Slider } from "../Slider";
|
||||||
import { Text } from "../Text";
|
import { Text } from "../Text";
|
||||||
import { TextField } from "../TextField";
|
import { TextField } from "../TextField";
|
||||||
|
import { Tooltip } from "../Tooltip";
|
||||||
import styles from "./index.module.css";
|
import styles from "./index.module.css";
|
||||||
|
|
||||||
interface NumberFieldProps {
|
interface NumberFieldProps {
|
||||||
@@ -90,17 +91,19 @@ export function CustomShellButton() {
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Popover.Trigger asChild>
|
<Tooltip tooltip={strings.tanks.custom_shell.title} side="left">
|
||||||
<IconButton
|
<Popover.Trigger asChild>
|
||||||
listChild="vertical"
|
<IconButton
|
||||||
color={customShell ? undefined : "gray"}
|
listChild="vertical"
|
||||||
variant={customShell ? "solid" : "soft"}
|
color={customShell ? undefined : "gray"}
|
||||||
highContrast={customShell !== undefined}
|
variant={customShell ? "solid" : "soft"}
|
||||||
size="major"
|
highContrast={customShell !== undefined}
|
||||||
>
|
size="major"
|
||||||
<img alt="custom shell" src="/assets/images/icons/custom-shell.png" />
|
>
|
||||||
</IconButton>
|
<img alt="custom shell" src="/assets/images/icons/custom-shell.png" />
|
||||||
</Popover.Trigger>
|
</IconButton>
|
||||||
|
</Popover.Trigger>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
<Popover.Portal>
|
<Popover.Portal>
|
||||||
<Popover.Content side="left" align="center">
|
<Popover.Content side="left" align="center">
|
||||||
@@ -265,7 +268,7 @@ export function CustomShellButton() {
|
|||||||
|
|
||||||
{customShell.type === ShellType.SHELL_TYPE_HE && (
|
{customShell.type === ShellType.SHELL_TYPE_HE && (
|
||||||
<div className={styles.row}>
|
<div className={styles.row}>
|
||||||
<Text>Explosion radius</Text>
|
<Text>{strings.tanks.custom_shell.explosion_radius}</Text>
|
||||||
<NumberField
|
<NumberField
|
||||||
value={customShell.explosion_radius ?? 0}
|
value={customShell.explosion_radius ?? 0}
|
||||||
suffix="m"
|
suffix="m"
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
.Thumb {
|
.Thumb {
|
||||||
display: block;
|
display: block;
|
||||||
width: var(--space-5);
|
width: var(--space-4);
|
||||||
height: var(--space-5);
|
height: var(--space-4);
|
||||||
|
|
||||||
border-radius: var(--max-size);
|
border-radius: var(--max-size);
|
||||||
background-color: var(--gray-12);
|
background-color: var(--gray-12);
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export function TankopediaAntagonistControl({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.group}>
|
<div className={styles.group}>
|
||||||
<Tooltip tooltip="Calibrated Shells" side="left">
|
<Tooltip tooltip={strings.tanks.antagonist_control.calibrated_shells} side="left">
|
||||||
<IconButton
|
<IconButton
|
||||||
parentListChild="vertical"
|
parentListChild="vertical"
|
||||||
color={hasCalibratedShells ? undefined : "gray"}
|
color={hasCalibratedShells ? undefined : "gray"}
|
||||||
@@ -147,13 +147,13 @@ export function TankopediaAntagonistControl({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="Calibrated Shells"
|
alt={strings.tanks.antagonist_control.calibrated_shells}
|
||||||
src={alias("api", "/icons/equipment/103.webp")}
|
src={alias("api", "/icons/equipment/103.webp")}
|
||||||
/>
|
/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<Tooltip tooltip="Enhanced Armor" side="left">
|
<Tooltip tooltip={strings.tanks.antagonist_control.enhanced_armor} side="left">
|
||||||
<IconButton
|
<IconButton
|
||||||
parentListChild="vertical"
|
parentListChild="vertical"
|
||||||
color={hasEnhancedArmor ? undefined : "gray"}
|
color={hasEnhancedArmor ? undefined : "gray"}
|
||||||
@@ -173,14 +173,14 @@ export function TankopediaAntagonistControl({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="Enhanced Armor"
|
alt={strings.tanks.antagonist_control.enhanced_armor}
|
||||||
src={alias("api", "/icons/equipment/110.webp")}
|
src={alias("api", "/icons/equipment/110.webp")}
|
||||||
/>
|
/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Tooltip tooltip="Equalize" side="left">
|
<Tooltip tooltip={strings.tanks.antagonist_control.equalize} side="left">
|
||||||
<IconButton
|
<IconButton
|
||||||
color={equalize ? undefined : "gray"}
|
color={equalize ? undefined : "gray"}
|
||||||
variant={equalize ? "solid" : "soft"}
|
variant={equalize ? "solid" : "soft"}
|
||||||
|
|||||||
Reference in new issue
Block a user