Documentation
ThermalInsolatorScreen
Thermal 光合增幅机界面(MachineInsolatorScreen 176×166):上/下输入槽、4×18 产物槽、medium 流体罐 (34,22)、流体进度箭头 (84,35)、scale_sun 速度元素。
光合增幅机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalInsolatorScreen } from "./index";
/**
* ThermalInsolatorScreen 预览用例:小麦种子 → 2 小麦(光合增幅机 insolator)。
*/
export function ThermalInsolatorScreenDemo() {
return (
<ThermalInsolatorScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 2700, capacity: 4000, tint: "#3c64c8" }}
input={{ count: 1, icon: "wheat-seeds", tooltip: "小麦种子" }}
inputs={[null]}
onSlotClick={() => {}}
output={{ count: 2, icon: "wheat", tooltip: "小麦 ×2" }}
outputs={[null, null]}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.5}
speed={0.8}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-insolator-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.