文档目录
合金冶炼炉界面
合金炉:双输入 + 燃料 + 输出槽,火焰与箭头进度(箭头 x=84),176×166
合金炉物品栏
import { IeAlloySmelterScreen } from "./index";
/**
* IeAlloySmelterScreen 预览用例:铜 + 镍 → 2 康铜锭,进度 58%。
*/
export function IeAlloySmelterScreenDemo() {
return (
<IeAlloySmelterScreen
burn={0.5}
fuel={{ count: 1, icon: "charcoal", tooltip: "煤炭" }}
inputs={[{ count: 1, icon: "copper-ingot", tooltip: "铜锭" }, { count: 1, icon: "iron-ingot", tooltip: "镍锭" }]}
onSlotClick={() => {}}
output={{ count: 2, icon: "iron-ingot", tooltip: "康铜锭 ×2" }}
process={0.58}
/>
);
}
安装
$pnpm add @tennantite/ienpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/ie/src/ie-alloy-smelter-screen/index.tsxnpm 包保留源码目录,可直接复制改造。