diff --git a/lib/pages/creature-page/core.tsx b/lib/pages/creature-page/core.tsx index 45cb710..e6fc841 100644 --- a/lib/pages/creature-page/core.tsx +++ b/lib/pages/creature-page/core.tsx @@ -265,6 +265,29 @@ export const CREATURE_DESIGN_DEFAULTS: CreatureDesign = { }, }; +const AttachmentIndicesWidget: React.FC<{ + type: AttachmentPointType; + creature: CreatureSymbol; + attachment: AttachedCreatureSymbol; + onChange: (attachments: AttachedCreatureSymbol) => void; + idPrefix: string; +}> = (props) => { + const id = `${props.idPrefix}_indices`; + const typeCap = capitalize(props.type); + + return ( +
+ + +
+ ); +}; + const CreaturePartEditor: React.FC<{ creature: CreatureSymbol; onChange: (symbol: CreatureSymbol) => void; @@ -351,6 +374,7 @@ const CreaturePartEditor: React.FC<{ {creatureAttachments.map((attach, i) => { const atIdPrefix = `${idPrefix}_${type}_${i}_`; + return (
-
- - -
+ + onChange({ ...creature, ...attachments }) + } + />