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
@@ -12,6 +12,7 @@ import { Select } from "../Select";
|
||||
import { Slider } from "../Slider";
|
||||
import { Text } from "../Text";
|
||||
import { TextField } from "../TextField";
|
||||
import { Tooltip } from "../Tooltip";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface NumberFieldProps {
|
||||
@@ -90,17 +91,19 @@ export function CustomShellButton() {
|
||||
});
|
||||
}}
|
||||
>
|
||||
<Popover.Trigger asChild>
|
||||
<IconButton
|
||||
listChild="vertical"
|
||||
color={customShell ? undefined : "gray"}
|
||||
variant={customShell ? "solid" : "soft"}
|
||||
highContrast={customShell !== undefined}
|
||||
size="major"
|
||||
>
|
||||
<img alt="custom shell" src="/assets/images/icons/custom-shell.png" />
|
||||
</IconButton>
|
||||
</Popover.Trigger>
|
||||
<Tooltip tooltip={strings.tanks.custom_shell.title} side="left">
|
||||
<Popover.Trigger asChild>
|
||||
<IconButton
|
||||
listChild="vertical"
|
||||
color={customShell ? undefined : "gray"}
|
||||
variant={customShell ? "solid" : "soft"}
|
||||
highContrast={customShell !== undefined}
|
||||
size="major"
|
||||
>
|
||||
<img alt="custom shell" src="/assets/images/icons/custom-shell.png" />
|
||||
</IconButton>
|
||||
</Popover.Trigger>
|
||||
</Tooltip>
|
||||
|
||||
<Popover.Portal>
|
||||
<Popover.Content side="left" align="center">
|
||||
@@ -265,7 +268,7 @@ export function CustomShellButton() {
|
||||
|
||||
{customShell.type === ShellType.SHELL_TYPE_HE && (
|
||||
<div className={styles.row}>
|
||||
<Text>Explosion radius</Text>
|
||||
<Text>{strings.tanks.custom_shell.explosion_radius}</Text>
|
||||
<NumberField
|
||||
value={customShell.explosion_radius ?? 0}
|
||||
suffix="m"
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
.Thumb {
|
||||
display: block;
|
||||
width: var(--space-5);
|
||||
height: var(--space-5);
|
||||
width: var(--space-4);
|
||||
height: var(--space-4);
|
||||
|
||||
border-radius: var(--max-size);
|
||||
background-color: var(--gray-12);
|
||||
|
||||
@@ -127,7 +127,7 @@ export function TankopediaAntagonistControl({
|
||||
</div>
|
||||
|
||||
<div className={styles.group}>
|
||||
<Tooltip tooltip="Calibrated Shells" side="left">
|
||||
<Tooltip tooltip={strings.tanks.antagonist_control.calibrated_shells} side="left">
|
||||
<IconButton
|
||||
parentListChild="vertical"
|
||||
color={hasCalibratedShells ? undefined : "gray"}
|
||||
@@ -147,13 +147,13 @@ export function TankopediaAntagonistControl({
|
||||
}}
|
||||
>
|
||||
<img
|
||||
alt="Calibrated Shells"
|
||||
alt={strings.tanks.antagonist_control.calibrated_shells}
|
||||
src={alias("api", "/icons/equipment/103.webp")}
|
||||
/>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip tooltip="Enhanced Armor" side="left">
|
||||
<Tooltip tooltip={strings.tanks.antagonist_control.enhanced_armor} side="left">
|
||||
<IconButton
|
||||
parentListChild="vertical"
|
||||
color={hasEnhancedArmor ? undefined : "gray"}
|
||||
@@ -173,14 +173,14 @@ export function TankopediaAntagonistControl({
|
||||
}}
|
||||
>
|
||||
<img
|
||||
alt="Enhanced Armor"
|
||||
alt={strings.tanks.antagonist_control.enhanced_armor}
|
||||
src={alias("api", "/icons/equipment/110.webp")}
|
||||
/>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
<Tooltip tooltip="Equalize" side="left">
|
||||
<Tooltip tooltip={strings.tanks.antagonist_control.equalize} side="left">
|
||||
<IconButton
|
||||
color={equalize ? undefined : "gray"}
|
||||
variant={equalize ? "solid" : "soft"}
|
||||
|
||||
Reference in new issue
Block a user