Documentation
FdComfortOverlay
FD comfort overlay: the heart-row sheen (two frames per ticks % 50) shown while hurt with no saturation.
import { FdComfortOverlay } from "./index";
export function FdComfortOverlayDemo() {
return (
<div className="relative size-24 bg-mc-panel-overlay">
<FdComfortOverlay maxHealth={20} sheenFrame={0} x={0} y={0} />
<FdComfortOverlay maxHealth={20} sheenFrame={1} x={0} y={16} />
<FdComfortOverlay maxHealth={20} sheenFrame={2} x={0} y={32} />
</div>
);
}
Install
$pnpm add @tennantite/farmersdelightnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/farmersdelight/src/fd-comfort-overlay/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.