Documentation
ThermalComposterScreen
Thermal 堆肥机界面(DeviceComposterScreen 176×166):仅进度箭头 (87,35),无槽位与能量表。
堆肥机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalComposterScreen } from "./index";
/**
* ThermalComposterScreen 预览用例:堆肥机(composter)。
*/
export function ThermalComposterScreenDemo() {
return (
<ThermalComposterScreen
onSlotClick={() => {}}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.5}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-composter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.