Documentation
IeDrillScreen
电钻:钻头槽 + 三个钻头部件槽(1.12.2 贴图,无上游 GUI 类,坐标像素测量重建),176×166
电钻物品栏
import { IeDrillScreen } from "./index";
/**
* IeDrillScreen 预览用例:装有钻头与三个钻头部件。
*/
export function IeDrillScreenDemo() {
return (
<IeDrillScreen
cores={[{ icon: "iron-ingot", tooltip: "铁质钻头部件" }, { icon: "iron-ingot", tooltip: "钢质钻头部件" }, null]}
head={{ icon: "iron-ingot", tooltip: "钻头" }}
onSlotClick={() => {}}
/>
);
}
Install
$pnpm add @tennantite/ienpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ie/src/ie-drill-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.