feat: 前端改为通过签名地址读取生成资源
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
import { buildDefaultCustomWorldNpcVisual } from './customWorldNpcVisualDefaults';
|
||||
import { HostileNpcAnimator } from './HostileNpcAnimator';
|
||||
import { MedievalNpcAnimator } from './MedievalNpcAnimator';
|
||||
import { ResolvedAssetImage } from './ResolvedAssetImage';
|
||||
|
||||
type EditableNpcSource = Pick<
|
||||
CustomWorldNpc,
|
||||
@@ -333,7 +334,7 @@ export function CustomWorldNpcPortrait({
|
||||
className={`relative flex h-full items-center justify-center ${contentClassName}`}
|
||||
>
|
||||
{preferredImageSrc ? (
|
||||
<img
|
||||
<ResolvedAssetImage
|
||||
src={preferredImageSrc}
|
||||
alt={npc.name}
|
||||
className="h-full w-full object-contain drop-shadow-[0_12px_18px_rgba(0,0,0,0.38)]"
|
||||
|
||||
Reference in New Issue
Block a user