文档目录
Ender IO 界面基座
Ender IO 机器基座:176 px 宽背景 + 可选居中标题 / 背包标签 + 玩家背包。
import { EIO_MACHINES } from "../eio-machine-layout";
import { EioMachineScreen } from "./index";
export function EioMachineScreenDemo() {
const layout = EIO_MACHINES.stirlingGenerator;
return (
<EioMachineScreen
background={layout.background}
backgroundHeight={layout.backgroundHeight}
height={layout.height}
machine="stirlingGenerator"
player={layout.player}
width={layout.width}
/>
);
}
安装
$pnpm add @tennantite/enderionpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/enderio/src/eio-machine-screen/index.tsxnpm 包保留源码目录,可直接复制改造。