文档目录
IF 界面基座
IF 机器基座:227×184 根容器(176×184 Titanium 背景 + 右升级 / 流体面板 + 左捐赠徽标),48 条预设布局。
溶解成型机
import { IfMachineScreen } from "./index";
interface IfMachineScreenDemoProps {
energy?: { max: number; value: number };
progress?: Record<string, number>;
}
export function IfMachineScreenDemo({
energy = { max: 1000, value: 620 },
progress = { bar: 0.45 },
}: IfMachineScreenDemoProps = {}) {
return (
<IfMachineScreen
energy={energy}
fluids={{
input_fluid: { max: 1000, tint: "#41CD34", value: 480 },
output_fluid: { max: 1000, tint: "#B24CD8", value: 260 },
}}
machine="dissolutionChamber"
progress={progress}
/>
);
}
安装
$pnpm add @tennantite/industrialforegoingnpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/industrialforegoing/src/if-machine-screen/index.tsxnpm 包保留源码目录,可直接复制改造。