mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-28 19:23:15 +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>}
|
||||
{eyes && (
|
||||
<Section name="Eyes" instructions={eyes}>
|
||||
<Section isSubSection name="Main" instructions={eyes.main} />
|
||||
<Section isSubSection name="Eyelashes Top" instructions={eyes.eyelashesTop} />
|
||||
<Section isSubSection name="Eyelashes Bottom" instructions={eyes.eyelashesBottom} />
|
||||
<Section isSubSection name="Eyelid Top" instructions={eyes.eyelidTop} />
|
||||
<Section isSubSection name="Eyelid Bottom" instructions={eyes.eyelidBottom} />
|
||||
<Section isSubSection name="Eyeliner" instructions={eyes.eyeliner} />
|
||||
<Section isSubSection name="Pupil" instructions={eyes.pupil} />
|
||||
<Section isSubSection name="Tab 1" instructions={eyes.main} />
|
||||
<Section isSubSection name="Tab 2" instructions={eyes.eyelashesTop} />
|
||||
<Section isSubSection name="Tab 3" instructions={eyes.eyelashesBottom} />
|
||||
<Section isSubSection name="Tab 4" instructions={eyes.eyelidTop} />
|
||||
<Section isSubSection name="Tab 5" instructions={eyes.eyelidBottom} />
|
||||
<Section isSubSection name="Tab 6" instructions={eyes.eyeliner} />
|
||||
<Section isSubSection name="Tab 7" instructions={eyes.pupil} />
|
||||
</Section>
|
||||
)}
|
||||
{nose && <Section name="Nose" instructions={nose}></Section>}
|
||||
|
|
@ -182,16 +182,16 @@ export default function MiiInstructions({ instructions }: Props) {
|
|||
)}
|
||||
{other && (
|
||||
<Section name="Other" instructions={other}>
|
||||
<Section isSubSection name="Wrinkles 1" instructions={other.wrinkles1} />
|
||||
<Section isSubSection name="Wrinkles 2" instructions={other.wrinkles2} />
|
||||
<Section isSubSection name="Beard" instructions={other.beard} />
|
||||
<Section isSubSection name="Moustache" instructions={other.moustache}>
|
||||
<Section isSubSection name="Tab 1" instructions={other.wrinkles1} />
|
||||
<Section isSubSection name="Tab 2" instructions={other.wrinkles2} />
|
||||
<Section isSubSection name="Tab 3" instructions={other.beard} />
|
||||
<Section isSubSection name="Tab 4" instructions={other.moustache}>
|
||||
{other.moustache && other.moustache.isFlipped && <TableCell label="Flipped">{other.moustache.isFlipped ? "Yes" : "No"}</TableCell>}
|
||||
</Section>
|
||||
<Section isSubSection name="Goatee" instructions={other.goatee} />
|
||||
<Section isSubSection name="Mole" instructions={other.mole} />
|
||||
<Section isSubSection name="Eye Shadow" instructions={other.eyeShadow} />
|
||||
<Section isSubSection name="Blush" instructions={other.blush} />
|
||||
<Section isSubSection name="Tab 5" instructions={other.goatee} />
|
||||
<Section isSubSection name="Tab 6" instructions={other.mole} />
|
||||
<Section isSubSection name="Tab 7" instructions={other.eyeShadow} />
|
||||
<Section isSubSection name="Tab 8" instructions={other.blush} />
|
||||
</Section>
|
||||
)}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ export default function NumberInputs({ target }: Props) {
|
|||
<input
|
||||
type="number"
|
||||
id="height"
|
||||
min={-5}
|
||||
max={5}
|
||||
min={-15}
|
||||
max={15}
|
||||
value={height}
|
||||
onChange={(e) => {
|
||||
const value = Number(e.target.value);
|
||||
|
|
@ -44,8 +44,8 @@ export default function NumberInputs({ target }: Props) {
|
|||
<input
|
||||
type="number"
|
||||
id="distance"
|
||||
min={-5}
|
||||
max={5}
|
||||
min={-15}
|
||||
max={15}
|
||||
value={distance}
|
||||
onChange={(e) => {
|
||||
const value = Number(e.target.value);
|
||||
|
|
@ -65,8 +65,8 @@ export default function NumberInputs({ target }: Props) {
|
|||
<input
|
||||
type="number"
|
||||
id="rotation"
|
||||
min={-5}
|
||||
max={5}
|
||||
min={-15}
|
||||
max={15}
|
||||
value={rotation}
|
||||
onChange={(e) => {
|
||||
const value = Number(e.target.value);
|
||||
|
|
@ -86,8 +86,8 @@ export default function NumberInputs({ target }: Props) {
|
|||
<input
|
||||
type="number"
|
||||
id="size"
|
||||
min={-5}
|
||||
max={5}
|
||||
min={-15}
|
||||
max={15}
|
||||
value={size}
|
||||
onChange={(e) => {
|
||||
const value = Number(e.target.value);
|
||||
|
|
@ -107,8 +107,8 @@ export default function NumberInputs({ target }: Props) {
|
|||
<input
|
||||
type="number"
|
||||
id="stretch"
|
||||
min={-5}
|
||||
max={5}
|
||||
min={-15}
|
||||
max={15}
|
||||
value={stretch}
|
||||
onChange={(e) => {
|
||||
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 geometrySchema = z.number().int().min(-10).max(10).optional();
|
||||
const geometrySchema = z.number().int().min(-15).max(15).optional();
|
||||
|
||||
export const switchMiiInstructionsSchema = z
|
||||
.object({
|
||||
|
|
|
|||
Loading…
Reference in a new issue