mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-28 11:13:16 +00:00
fix: there's a parts viewer...
This commit is contained in:
parent
0f038bf348
commit
79040a126d
5 changed files with 18 additions and 10 deletions
|
|
@ -159,7 +159,6 @@ export async function POST(request: NextRequest) {
|
|||
qrBytesRaw,
|
||||
gender,
|
||||
miiPortraitImage,
|
||||
instructions,
|
||||
image1,
|
||||
image2,
|
||||
image3,
|
||||
|
|
|
|||
|
|
@ -25,8 +25,17 @@ export default function PersonalityViewer({ data, onClick }: Props) {
|
|||
<span className="text-sm font-semibold w-24 shrink-0">{label}</span>
|
||||
<span className="text-sm text-zinc-500 w-14 text-right">{left}</span>
|
||||
<div className="flex gap-0.5">
|
||||
{Array.from({ length: 6 }).map((_, i) => {
|
||||
const colors = ["bg-green-400", "bg-green-300", "bg-teal-200", "bg-orange-200", "bg-orange-300", "bg-orange-400"];
|
||||
{Array.from({ length: 8 }).map((_, i) => {
|
||||
const colors = [
|
||||
"bg-green-400",
|
||||
"bg-green-300",
|
||||
"bg-emerald-200",
|
||||
"bg-teal-200",
|
||||
"bg-orange-200",
|
||||
"bg-orange-300",
|
||||
"bg-orange-400",
|
||||
"bg-orange-500",
|
||||
];
|
||||
return (
|
||||
<button
|
||||
key={i}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export default function EyebrowsTab({ instructions }: Props) {
|
|||
<div className="flex justify-center h-74 mt-auto">
|
||||
<TypeSelector
|
||||
hasNoneOption
|
||||
length={43}
|
||||
length={48}
|
||||
type={type}
|
||||
setType={(i) => {
|
||||
setType(i);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ interface Props {
|
|||
}
|
||||
|
||||
const TABS: { name: keyof SwitchMiiInstructions["eyes"]; length: number; colorsDisabled?: boolean }[] = [
|
||||
{ name: "main", length: 121 },
|
||||
{ name: "main", length: 76 },
|
||||
{ name: "eyelashesTop", length: 6, colorsDisabled: true },
|
||||
{ name: "eyelashesBottom", length: 2, colorsDisabled: true },
|
||||
{ name: "eyelidTop", length: 3, colorsDisabled: true },
|
||||
|
|
|
|||
|
|
@ -315,11 +315,11 @@ export const switchMiiInstructionsSchema = z
|
|||
.optional(),
|
||||
personality: z
|
||||
.object({
|
||||
movement: z.number().int().min(0).max(5).optional(),
|
||||
speech: z.number().int().min(0).max(5).optional(),
|
||||
energy: z.number().int().min(0).max(5).optional(),
|
||||
thinking: z.number().int().min(0).max(5).optional(),
|
||||
overall: z.number().int().min(0).max(5).optional(),
|
||||
movement: z.number().int().min(0).max(7).optional(),
|
||||
speech: z.number().int().min(0).max(7).optional(),
|
||||
energy: z.number().int().min(0).max(7).optional(),
|
||||
thinking: z.number().int().min(0).max(7).optional(),
|
||||
overall: z.number().int().min(0).max(7).optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue