文档目录
离心机界面
Thermal 离心机界面(MachineCentrifugeScreen 176×166):输入槽、4×18 产物槽、medium 流体罐 (151,22)、流体进度箭头 (72,35)、scale_spin 速度元素。
离心机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalCentrifugeScreen } from "./index";
/**
* ThermalCentrifugeScreen 预览用例:蜜脾 → 100mB 蜂蜜(离心机 centrifuge)。
*/
export function ThermalCentrifugeScreenDemo() {
return (
<ThermalCentrifugeScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 100, capacity: 4000, tint: "#f5c542" }}
input={{ count: 1, icon: "honeycomb", tooltip: "蜜脾" }}
onSlotClick={() => {}}
output={undefined}
outputs={[null, null, null]}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.55}
speed={0.7}
/>
);
}
安装
$pnpm add @tennantite/thermalnpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/thermal/src/thermal-centrifuge-screen/index.tsxnpm 包保留源码目录,可直接复制改造。