Documentation
EioSprite
Ender IO sprite renderer: crops the 26.3 GUI atlases / single images by source rect, 1 source px = 1 GUI px.
import { EioSprite } from "./index";
export function EioSpriteDemo() {
return (
<EioSprite
crop={{ height: 208, width: 176, x: 0, y: 0 }}
height={208}
name="screen/alloy_smelter_auto"
width={176}
/>
);
}
Install
$pnpm add @tennantite/enderionpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/enderio/src/eio-sprite/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.