Move complexity, invert symbols into randomizer widget.
rodzic
ebd8ad0493
commit
ed23d0ac3b
|
@ -314,26 +314,6 @@ export const CreaturePageWithDefaults: React.FC<
|
||||||
<Page title="Creature!">
|
<Page title="Creature!">
|
||||||
<div className="sidebar">
|
<div className="sidebar">
|
||||||
<CompositionContextWidget ctx={compCtx} onChange={setCompCtx} />
|
<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
|
<RandomizerWidget
|
||||||
onColorsChange={(colors) => setCompCtx({ ...compCtx, ...colors })}
|
onColorsChange={(colors) => setCompCtx({ ...compCtx, ...colors })}
|
||||||
onSymbolsChange={newRandomCreature}
|
onSymbolsChange={newRandomCreature}
|
||||||
|
@ -346,6 +326,23 @@ export const CreaturePageWithDefaults: React.FC<
|
||||||
choices={SvgVocabularyWithBlank}
|
choices={SvgVocabularyWithBlank}
|
||||||
/>
|
/>
|
||||||
</div>
|
</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>
|
</RandomizerWidget>
|
||||||
<div className="thingy">
|
<div className="thingy">
|
||||||
<ExportWidget
|
<ExportWidget
|
||||||
|
|
Ładowanie…
Reference in New Issue