mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-30 22:19:50 +01:00
disable some more
This commit is contained in:
1 parent
1aa4e6c470
commit
b0af48f866
4 files changed
+6
-19
No files matched your search
@@ -1,5 +0,0 @@
|
|||||||
export function canSplash(
|
|
||||||
type: ShellDefinition["type"],
|
|
||||||
): type is ShellType.SHELL_TYPE_HE {
|
|
||||||
return type === ShellType.SHELL_TYPE_HE;
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
export * from "./blitzShellKindToBlitzkit";
|
export * from "./blitzShellKindToBlitzkit";
|
||||||
export * from "./canSplash";
|
|
||||||
export * from "./clans";
|
export * from "./clans";
|
||||||
export * from "./classes";
|
export * from "./classes";
|
||||||
export * from "./equipmentPrice";
|
export * from "./equipmentPrice";
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import {
|
import { isExplosive, resolvePenetrationCoefficient } from "@blitzkit/core";
|
||||||
canSplash,
|
import { ShellType } from "@blitzkit/protos";
|
||||||
isExplosive,
|
|
||||||
resolvePenetrationCoefficient,
|
|
||||||
} from "@blitzkit/core";
|
|
||||||
import { invalidate, useFrame } from "@react-three/fiber";
|
import { invalidate, useFrame } from "@react-three/fiber";
|
||||||
import type { QuicklimeEvent } from "quicklime";
|
import type { QuicklimeEvent } from "quicklime";
|
||||||
import { useEffect, useRef } from "react";
|
import { useEffect, useRef } from "react";
|
||||||
@@ -95,7 +92,8 @@ export function PrimaryArmorSceneComponent({
|
|||||||
shell.normalization ?? 0,
|
shell.normalization ?? 0,
|
||||||
);
|
);
|
||||||
material.current.uniforms.isExplosive.value = isExplosive(shell.type);
|
material.current.uniforms.isExplosive.value = isExplosive(shell.type);
|
||||||
material.current.uniforms.canSplash.value = canSplash(shell.type);
|
material.current.uniforms.canSplash.value =
|
||||||
|
shell.type === ShellType.SHELL_TYPE_HE;
|
||||||
material.current.uniforms.damage.value = shell.armor_damage;
|
material.current.uniforms.damage.value = shell.armor_damage;
|
||||||
material.current.uniforms.explosionRadius.value = shell.explosion_radius;
|
material.current.uniforms.explosionRadius.value = shell.explosion_radius;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import { uniqueGuns } from "@blitzkit/core";
|
import { uniqueGuns } from "@blitzkit/core";
|
||||||
import { Crosshair1Icon } from "@radix-ui/react-icons";
|
|
||||||
import { Dialog, Tabs } from "radix-ui";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { DuelModule, useDuel } from "../../hooks/useDuel";
|
import { DuelModule, useDuel } from "../../hooks/useDuel";
|
||||||
import { useEquipment } from "../../hooks/useEquipment";
|
import { useEquipment } from "../../hooks/useEquipment";
|
||||||
@@ -11,10 +9,7 @@ import { useUnwrapper } from "../../hooks/useUnwrapper";
|
|||||||
import { Tankopedia } from "../../stores/tankopedia";
|
import { Tankopedia } from "../../stores/tankopedia";
|
||||||
import { TankopediaPersistent } from "../../stores/tankopediaPersistent";
|
import { TankopediaPersistent } from "../../stores/tankopediaPersistent";
|
||||||
import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants";
|
import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants";
|
||||||
import { Button } from "../Button";
|
|
||||||
import { SegmentedControl } from "../SegmentedControl";
|
import { SegmentedControl } from "../SegmentedControl";
|
||||||
import { SmallTankIcon } from "../SmallTankIcon";
|
|
||||||
import { TankSearch } from "../TankSearch";
|
|
||||||
import styles from "./index.module.css";
|
import styles from "./index.module.css";
|
||||||
|
|
||||||
export function TankopediaOptions() {
|
export function TankopediaOptions() {
|
||||||
@@ -210,7 +205,7 @@ export function TankopediaOptions() {
|
|||||||
</SegmentedControl.Item>
|
</SegmentedControl.Item>
|
||||||
</SegmentedControl.Root> */}
|
</SegmentedControl.Root> */}
|
||||||
|
|
||||||
{requestedDisplay === TankopediaDisplay.DynamicArmor && (
|
{/* {requestedDisplay === TankopediaDisplay.DynamicArmor && (
|
||||||
<Dialog.Root
|
<Dialog.Root
|
||||||
open={antagonistSelectorOpen}
|
open={antagonistSelectorOpen}
|
||||||
onOpenChange={setAntagonistSelectorOpen}
|
onOpenChange={setAntagonistSelectorOpen}
|
||||||
@@ -250,7 +245,7 @@ export function TankopediaOptions() {
|
|||||||
</Tabs.Root>
|
</Tabs.Root>
|
||||||
</Dialog.Content>
|
</Dialog.Content>
|
||||||
</Dialog.Root>
|
</Dialog.Root>
|
||||||
)}
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user