mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
antaognsist sleector
This commit is contained in:
14 files changed
+231
-143
No files matched your search
@@ -9,5 +9,21 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: black;
|
||||
|
||||
.corner-actions {
|
||||
display: flex;
|
||||
gap: var(--space-4);
|
||||
|
||||
position: absolute;
|
||||
right: var(--space-4);
|
||||
bottom: var(--space-4);
|
||||
|
||||
transition-duration: var(--duration-brief);
|
||||
transform: translateY(calc(100% + var(--space-4) + var(--space-1)));
|
||||
|
||||
&[data-visible="true"] {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ import { CanvasControl } from "../CanvasControl";
|
||||
import { InitialCameraAligner } from "../InitialCameraAligner";
|
||||
import { Lighting, transitionEvent } from "../Lighting";
|
||||
import { SceneProps } from "../SceneProps";
|
||||
import { ScreenshotButton } from "../ScreenshotButton";
|
||||
import { ShotCard } from "../ShotCard";
|
||||
import { SmartCanvas } from "../SmartCanvas";
|
||||
import { TankDynamicArmor } from "../TankDynamicArmor";
|
||||
@@ -52,8 +53,10 @@ function Sandbox({ id }: TankopediaSandboxProps) {
|
||||
Tankopedia.useInitialization(() => protagonistTank, import.meta.env.SSR);
|
||||
|
||||
const equalize = Tankopedia.use((state) => state.environment.equalize);
|
||||
const showControls = Tankopedia.use((state) => state.showControls);
|
||||
const mounted = useMounted();
|
||||
const wrapper = useRef<HTMLDivElement>(null);
|
||||
const canvas = useRef<HTMLCanvasElement>(null!);
|
||||
const hasImprovedVerticalStabilizer = useEquipment("protagonist", 122);
|
||||
const hasDownImprovedVerticalStabilizer = useEquipment("protagonist", 124);
|
||||
|
||||
@@ -191,6 +194,7 @@ function Sandbox({ id }: TankopediaSandboxProps) {
|
||||
<div className={styles.wrapper} ref={wrapper}>
|
||||
<div className={styles.cavity}>
|
||||
<SmartCanvas
|
||||
ref={canvas}
|
||||
resize={{ debounce: 0 }}
|
||||
gl={{
|
||||
clippingPlanes: [],
|
||||
@@ -215,7 +219,16 @@ function Sandbox({ id }: TankopediaSandboxProps) {
|
||||
<Thicknesses thicknessRange={thicknessRange} />
|
||||
<TankopediaAntagonistControl penetration={antagonistPenetration} />
|
||||
<TankopediaOptions />
|
||||
<TankopediaFullscreen target={wrapper} />
|
||||
|
||||
<div className={styles["corner-actions"]} data-visible={showControls}>
|
||||
<ScreenshotButton
|
||||
variant="ghost"
|
||||
highContrast
|
||||
canvas={canvas}
|
||||
name={protagonistTank.slug}
|
||||
/>
|
||||
<TankopediaFullscreen target={wrapper} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user