Documentation
ThermalPotionDiffuserScreen
Thermal 药水扩散器界面(DevicePotionDiffuserScreen 176×166):medium 流体罐 (116,22) 与 scale_alchemy 时长元素 (80,35)。
药水扩散器玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalPotionDiffuserScreen } from "./index";
/**
* ThermalPotionDiffuserScreen 预览用例:药水扩散器(potion_diffuser)。
*/
export function ThermalPotionDiffuserScreenDemo() {
return (
<ThermalPotionDiffuserScreen
fluid={{ amount: 2700, capacity: 4000, tint: "#7a3ce0" }}
onSlotClick={() => {}}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
speed={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-potion-diffuser-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.