Move complexity, invert symbols into randomizer widget.

pull/215/head
Atul Varma 2021-08-15 15:49:28 -04:00
rodzic ebd8ad0493
commit ed23d0ac3b
1 zmienionych plików z 17 dodań i 20 usunięć

Wyświetl plik

@ -314,26 +314,6 @@ export const CreaturePageWithDefaults: React.FC<
<Page title="Creature!">
<div className="sidebar">
<CompositionContextWidget ctx={compCtx} onChange={setCompCtx} />
<div className="thingy">
<NumericSlider
label="Random creature complexity"
min={0}
max={MAX_COMPLEXITY_LEVEL}
step={1}
value={complexity}
onChange={(value) => {
setComplexity(value);
newRandomCreature();
}}
/>
</div>
<div className="thingy">
<Checkbox
label="Randomly invert symbols"
value={randomlyInvert}
onChange={setRandomlyInvert}
/>
</div>
<RandomizerWidget
onColorsChange={(colors) => setCompCtx({ ...compCtx, ...colors })}
onSymbolsChange={newRandomCreature}
@ -346,6 +326,23 @@ export const CreaturePageWithDefaults: React.FC<
choices={SvgVocabularyWithBlank}
/>
</div>
<div className="thingy">
<NumericSlider
label="Random creature complexity"
min={0}
max={MAX_COMPLEXITY_LEVEL}
step={1}
value={complexity}
onChange={setComplexity}
/>
</div>
<div className="thingy">
<Checkbox
label="Randomly invert symbols"
value={randomlyInvert}
onChange={setRandomlyInvert}
/>
</div>
</RandomizerWidget>
<div className="thingy">
<ExportWidget