mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-28 11:13:16 +00:00
fix: increase number inputs range and generalize tab names in instructions
This commit is contained in:
parent
85aea08007
commit
cd6f4b948d
3 changed files with 26 additions and 26 deletions
|
|
@ -150,13 +150,13 @@ export default function MiiInstructions({ instructions }: Props) {
|
||||||
{eyebrows && <Section name="Eyebrows" instructions={eyebrows}></Section>}
|
{eyebrows && <Section name="Eyebrows" instructions={eyebrows}></Section>}
|
||||||
{eyes && (
|
{eyes && (
|
||||||
<Section name="Eyes" instructions={eyes}>
|
<Section name="Eyes" instructions={eyes}>
|
||||||
<Section isSubSection name="Main" instructions={eyes.main} />
|
<Section isSubSection name="Tab 1" instructions={eyes.main} />
|
||||||
<Section isSubSection name="Eyelashes Top" instructions={eyes.eyelashesTop} />
|
<Section isSubSection name="Tab 2" instructions={eyes.eyelashesTop} />
|
||||||
<Section isSubSection name="Eyelashes Bottom" instructions={eyes.eyelashesBottom} />
|
<Section isSubSection name="Tab 3" instructions={eyes.eyelashesBottom} />
|
||||||
<Section isSubSection name="Eyelid Top" instructions={eyes.eyelidTop} />
|
<Section isSubSection name="Tab 4" instructions={eyes.eyelidTop} />
|
||||||
<Section isSubSection name="Eyelid Bottom" instructions={eyes.eyelidBottom} />
|
<Section isSubSection name="Tab 5" instructions={eyes.eyelidBottom} />
|
||||||
<Section isSubSection name="Eyeliner" instructions={eyes.eyeliner} />
|
<Section isSubSection name="Tab 6" instructions={eyes.eyeliner} />
|
||||||
<Section isSubSection name="Pupil" instructions={eyes.pupil} />
|
<Section isSubSection name="Tab 7" instructions={eyes.pupil} />
|
||||||
</Section>
|
</Section>
|
||||||
)}
|
)}
|
||||||
{nose && <Section name="Nose" instructions={nose}></Section>}
|
{nose && <Section name="Nose" instructions={nose}></Section>}
|
||||||
|
|
@ -182,16 +182,16 @@ export default function MiiInstructions({ instructions }: Props) {
|
||||||
)}
|
)}
|
||||||
{other && (
|
{other && (
|
||||||
<Section name="Other" instructions={other}>
|
<Section name="Other" instructions={other}>
|
||||||
<Section isSubSection name="Wrinkles 1" instructions={other.wrinkles1} />
|
<Section isSubSection name="Tab 1" instructions={other.wrinkles1} />
|
||||||
<Section isSubSection name="Wrinkles 2" instructions={other.wrinkles2} />
|
<Section isSubSection name="Tab 2" instructions={other.wrinkles2} />
|
||||||
<Section isSubSection name="Beard" instructions={other.beard} />
|
<Section isSubSection name="Tab 3" instructions={other.beard} />
|
||||||
<Section isSubSection name="Moustache" instructions={other.moustache}>
|
<Section isSubSection name="Tab 4" instructions={other.moustache}>
|
||||||
{other.moustache && other.moustache.isFlipped && <TableCell label="Flipped">{other.moustache.isFlipped ? "Yes" : "No"}</TableCell>}
|
{other.moustache && other.moustache.isFlipped && <TableCell label="Flipped">{other.moustache.isFlipped ? "Yes" : "No"}</TableCell>}
|
||||||
</Section>
|
</Section>
|
||||||
<Section isSubSection name="Goatee" instructions={other.goatee} />
|
<Section isSubSection name="Tab 5" instructions={other.goatee} />
|
||||||
<Section isSubSection name="Mole" instructions={other.mole} />
|
<Section isSubSection name="Tab 6" instructions={other.mole} />
|
||||||
<Section isSubSection name="Eye Shadow" instructions={other.eyeShadow} />
|
<Section isSubSection name="Tab 7" instructions={other.eyeShadow} />
|
||||||
<Section isSubSection name="Blush" instructions={other.blush} />
|
<Section isSubSection name="Tab 8" instructions={other.blush} />
|
||||||
</Section>
|
</Section>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ export default function NumberInputs({ target }: Props) {
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="height"
|
id="height"
|
||||||
min={-5}
|
min={-15}
|
||||||
max={5}
|
max={15}
|
||||||
value={height}
|
value={height}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = Number(e.target.value);
|
const value = Number(e.target.value);
|
||||||
|
|
@ -44,8 +44,8 @@ export default function NumberInputs({ target }: Props) {
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="distance"
|
id="distance"
|
||||||
min={-5}
|
min={-15}
|
||||||
max={5}
|
max={15}
|
||||||
value={distance}
|
value={distance}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = Number(e.target.value);
|
const value = Number(e.target.value);
|
||||||
|
|
@ -65,8 +65,8 @@ export default function NumberInputs({ target }: Props) {
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="rotation"
|
id="rotation"
|
||||||
min={-5}
|
min={-15}
|
||||||
max={5}
|
max={15}
|
||||||
value={rotation}
|
value={rotation}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = Number(e.target.value);
|
const value = Number(e.target.value);
|
||||||
|
|
@ -86,8 +86,8 @@ export default function NumberInputs({ target }: Props) {
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="size"
|
id="size"
|
||||||
min={-5}
|
min={-15}
|
||||||
max={5}
|
max={15}
|
||||||
value={size}
|
value={size}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = Number(e.target.value);
|
const value = Number(e.target.value);
|
||||||
|
|
@ -107,8 +107,8 @@ export default function NumberInputs({ target }: Props) {
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="stretch"
|
id="stretch"
|
||||||
min={-5}
|
min={-15}
|
||||||
max={5}
|
max={15}
|
||||||
value={stretch}
|
value={stretch}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = Number(e.target.value);
|
const value = Number(e.target.value);
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ export const userNameSchema = z
|
||||||
});
|
});
|
||||||
|
|
||||||
const colorSchema = z.number().int().min(0).max(152).optional();
|
const colorSchema = z.number().int().min(0).max(152).optional();
|
||||||
const geometrySchema = z.number().int().min(-10).max(10).optional();
|
const geometrySchema = z.number().int().min(-15).max(15).optional();
|
||||||
|
|
||||||
export const switchMiiInstructionsSchema = z
|
export const switchMiiInstructionsSchema = z
|
||||||
.object({
|
.object({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue