Documentation
MekanismSecurityDeskScreen
Mekanism 安全台屏(176×230,GuiSecurityDesk):信任玩家滚动列表 + 移除按钮 + 添加输入框(对勾确认)+ 公开/私有/受信任三模式按钮 + 右列频率展示槽、安全灯与公开/私有图标 + 强制覆盖开关。
安全台玩家所有者:Steve
import { MekanismSecurityDeskScreen } from "../index";
export function MekanismSecurityDeskScreenDemo() {
return (
<MekanismSecurityDeskScreen
bottomItem={{ count: 1, icon: "iron-ingot", tooltip: "展示物品" }}
owner="Steve"
security="private"
securityLight="enabled"
topItem={{ count: 1, icon: "gold-ingot", tooltip: "展示物品" }}
trusted={[
{ icon: "item/upgrade/filter", id: "alice", label: "Alice" },
{ id: "bob", label: "Bob" },
{ id: "carol", label: "Carol" },
{ id: "dave", label: "Dave" },
{ id: "erin", label: "Erin" },
]}
/>
);
}
Install
$pnpm add @tennantite/mekanismnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/mekanism/src/mekanism-security-desk-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.