diff --git a/lib/page.css b/lib/page.css index 0a63fcc..049a212 100644 --- a/lib/page.css +++ b/lib/page.css @@ -51,6 +51,10 @@ input[type="text"] { padding: 8px; } +summary { + cursor: pointer; +} + /** Stupid class we're using instead of
to avoid ValidateDOMNesting warnings. */ .thingy { margin-top: 10px; diff --git a/lib/pages/creature-page/core.tsx b/lib/pages/creature-page/core.tsx index 9d181bb..e1c9f86 100644 --- a/lib/pages/creature-page/core.tsx +++ b/lib/pages/creature-page/core.tsx @@ -263,6 +263,37 @@ export const CREATURE_DESIGN_DEFAULTS: CreatureDesign = { }, }; +function changeCreatureSymbol( + creature: CreatureSymbol, + data: SvgSymbolData +): CreatureSymbol { + return { + ...creature, + data, + }; +} + +const CreatureEditorWidget: React.FC<{ + creature: CreatureSymbol; + onChange: (symbol: CreatureSymbol) => void; +}> = ({ creature, onChange }) => { + return ( +