文档目录
冷冻机界面
Thermal 冷冻机界面(MachineChillerScreen 176×166):输入槽、26×26 产物槽 (120,30)、medium 流体罐 (34,22)、流体进度箭头 (87,35)、scale_snowflake 速度元素。
冷冻机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalChillerScreen } from "./index";
/**
* ThermalChillerScreen 预览用例:1000mB 水 → 冰(冷冻机 chiller)。
*/
export function ThermalChillerScreenDemo() {
return (
<ThermalChillerScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 1000, capacity: 4000, tint: "#3c64c8" }}
input={undefined}
onSlotClick={() => {}}
output={{ count: 1, icon: "ice", tooltip: "冰" }}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.35}
speed={0.6}
/>
);
}
安装
$pnpm add @tennantite/thermalnpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/thermal/src/thermal-chiller-screen/index.tsxnpm 包保留源码目录,可直接复制改造。