mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
feat: base instructions off of male mii
This commit is contained in:
parent
79e6adff64
commit
5b498430c8
2 changed files with 50 additions and 46 deletions
|
|
@ -228,21 +228,21 @@ export async function POST(request: NextRequest) {
|
||||||
eyebrows: {
|
eyebrows: {
|
||||||
type: miiData.eyebrowType,
|
type: miiData.eyebrowType,
|
||||||
color: miiData.eyebrowColor,
|
color: miiData.eyebrowColor,
|
||||||
height: miiData.eyebrowY,
|
height: miiData.eyebrowY - 10,
|
||||||
distance: miiData.eyebrowX,
|
distance: miiData.eyebrowX - 4,
|
||||||
rotation: miiData.eyebrowRotate,
|
rotation: miiData.eyebrowRotate - 6,
|
||||||
size: miiData.eyebrowScale,
|
size: miiData.eyebrowScale - 4,
|
||||||
stretch: miiData.eyebrowAspect,
|
stretch: miiData.eyebrowAspect - 3,
|
||||||
},
|
},
|
||||||
eyes: {
|
eyes: {
|
||||||
main: {
|
main: {
|
||||||
type: miiData.eyeType,
|
type: miiData.eyeType,
|
||||||
color: miiData.eyeColor,
|
color: miiData.eyeColor,
|
||||||
height: miiData.eyeY,
|
height: miiData.eyeY - 12,
|
||||||
distance: miiData.eyeX,
|
distance: miiData.eyeX - 2,
|
||||||
rotation: miiData.eyeRotate,
|
rotation: miiData.eyeRotate - 4,
|
||||||
size: miiData.eyeScale,
|
size: miiData.eyeScale - 4,
|
||||||
stretch: miiData.eyeAspect,
|
stretch: miiData.eyeAspect - 3,
|
||||||
},
|
},
|
||||||
eyelashesTop: {
|
eyelashesTop: {
|
||||||
type: miiData.eyelashUpperType,
|
type: miiData.eyelashUpperType,
|
||||||
|
|
@ -291,47 +291,47 @@ export async function POST(request: NextRequest) {
|
||||||
},
|
},
|
||||||
nose: {
|
nose: {
|
||||||
type: miiData.noseType,
|
type: miiData.noseType,
|
||||||
height: miiData.noseY,
|
height: miiData.noseY - 9,
|
||||||
size: miiData.noseScale,
|
size: miiData.noseScale - 4,
|
||||||
},
|
},
|
||||||
lips: {
|
lips: {
|
||||||
type: miiData.mouthType,
|
type: miiData.mouthType,
|
||||||
color: miiData.mouthColor,
|
color: miiData.mouthColor,
|
||||||
height: miiData.mouthY,
|
height: miiData.mouthY - 13,
|
||||||
rotation: miiData.mouthRotate,
|
rotation: miiData.mouthRotate,
|
||||||
size: miiData.mouthScale,
|
size: miiData.mouthScale - 4,
|
||||||
stretch: miiData.mouthAspect,
|
stretch: miiData.mouthAspect - 3,
|
||||||
// uh oh, no lipstick
|
// uh oh, no lipstick
|
||||||
hasLipstick: false,
|
hasLipstick: false,
|
||||||
},
|
},
|
||||||
ears: {
|
ears: {
|
||||||
type: miiData.earType,
|
type: miiData.earType,
|
||||||
height: miiData.earY,
|
height: miiData.earY - 4,
|
||||||
size: miiData.earScale,
|
size: miiData.earScale - 2,
|
||||||
},
|
},
|
||||||
glasses: {
|
glasses: {
|
||||||
type: miiData.glassType1,
|
type: miiData.glassType1,
|
||||||
type2: miiData.glassType2,
|
type2: miiData.glassType2,
|
||||||
ringColor: miiData.glassColor1,
|
ringColor: miiData.glassColor1,
|
||||||
shadesColor: miiData.glassColor2,
|
shadesColor: miiData.glassColor2,
|
||||||
height: miiData.glassY,
|
height: miiData.glassY - 11,
|
||||||
size: miiData.glassScale,
|
size: miiData.glassScale - 4,
|
||||||
stretch: miiData.glassAspect,
|
stretch: miiData.glassAspect - 3,
|
||||||
},
|
},
|
||||||
other: {
|
other: {
|
||||||
wrinkles1: {
|
wrinkles1: {
|
||||||
type: miiData.wrinkleLowerType,
|
type: miiData.wrinkleLowerType,
|
||||||
height: miiData.wrinkleLowerY,
|
height: miiData.wrinkleLowerY - 15,
|
||||||
distance: miiData.wrinkleLowerX,
|
distance: miiData.wrinkleLowerX - 2,
|
||||||
size: miiData.wrinkleLowerScale,
|
size: miiData.wrinkleLowerScale - 6,
|
||||||
stretch: miiData.wrinkleLowerAspect,
|
stretch: miiData.wrinkleLowerAspect - 3,
|
||||||
},
|
},
|
||||||
wrinkles2: {
|
wrinkles2: {
|
||||||
type: miiData.wrinkleUpperType,
|
type: miiData.wrinkleUpperType,
|
||||||
height: miiData.wrinkleUpperY,
|
height: miiData.wrinkleUpperY - 23,
|
||||||
distance: miiData.wrinkleUpperX,
|
distance: miiData.wrinkleUpperX - 7,
|
||||||
size: miiData.wrinkleUpperScale,
|
size: miiData.wrinkleUpperScale - 6,
|
||||||
stretch: miiData.wrinkleUpperAspect,
|
stretch: miiData.wrinkleUpperAspect - 3,
|
||||||
},
|
},
|
||||||
beard: {
|
beard: {
|
||||||
type: miiData.beardType,
|
type: miiData.beardType,
|
||||||
|
|
@ -340,11 +340,11 @@ export async function POST(request: NextRequest) {
|
||||||
moustache: {
|
moustache: {
|
||||||
type: miiData.mustacheType,
|
type: miiData.mustacheType,
|
||||||
color: miiData.mustacheColor,
|
color: miiData.mustacheColor,
|
||||||
height: miiData.mustacheY,
|
height: miiData.mustacheY - 10,
|
||||||
// uh oh, no flipped
|
// uh oh, no flipped
|
||||||
isFlipped: false,
|
isFlipped: false,
|
||||||
size: miiData.mustacheScale,
|
size: miiData.mustacheScale - 4,
|
||||||
stretch: miiData.mustacheAspect,
|
stretch: miiData.mustacheAspect - 3,
|
||||||
},
|
},
|
||||||
goatee: {
|
goatee: {
|
||||||
type: miiData.beardShortType,
|
type: miiData.beardShortType,
|
||||||
|
|
@ -352,25 +352,25 @@ export async function POST(request: NextRequest) {
|
||||||
},
|
},
|
||||||
mole: {
|
mole: {
|
||||||
type: miiData.moleX != 0,
|
type: miiData.moleX != 0,
|
||||||
height: miiData.moleY,
|
height: miiData.moleY - 20,
|
||||||
distance: miiData.moleX,
|
distance: miiData.moleX - 2,
|
||||||
size: miiData.moleScale,
|
size: miiData.moleScale - 4,
|
||||||
},
|
},
|
||||||
eyeShadow: {
|
eyeShadow: {
|
||||||
type: miiData.makeup0,
|
type: miiData.makeup0,
|
||||||
color: miiData.makeup0Color,
|
color: miiData.makeup0Color,
|
||||||
height: miiData.makeup0Y,
|
height: miiData.makeup0Y - 12,
|
||||||
distance: miiData.makeup0X,
|
distance: miiData.makeup0X - 1,
|
||||||
size: miiData.makeup0Scale,
|
size: miiData.makeup0Scale - 6,
|
||||||
stretch: miiData.makeup0Aspect,
|
stretch: miiData.makeup0Aspect - 3,
|
||||||
},
|
},
|
||||||
blush: {
|
blush: {
|
||||||
type: miiData.makeup1,
|
type: miiData.makeup1,
|
||||||
color: miiData.makeup1Color,
|
color: miiData.makeup1Color,
|
||||||
height: miiData.makeup1Y,
|
height: miiData.makeup1Y - 19,
|
||||||
distance: miiData.makeup1X,
|
distance: miiData.makeup1X - 6,
|
||||||
size: miiData.makeup1Scale,
|
size: miiData.makeup1Scale - 5,
|
||||||
stretch: miiData.makeup1Aspect,
|
stretch: miiData.makeup1Aspect - 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
height: miiData.height,
|
height: miiData.height,
|
||||||
|
|
|
||||||
|
|
@ -385,10 +385,14 @@ export default async function MiiPage({ params }: Props) {
|
||||||
{/* Instructions */}
|
{/* Instructions */}
|
||||||
{mii.platform === "SWITCH" && (
|
{mii.platform === "SWITCH" && (
|
||||||
<div className="bg-amber-50 border-2 border-amber-500 rounded-2xl shadow-lg p-4 flex flex-col gap-3 max-h-96 overflow-y-auto">
|
<div className="bg-amber-50 border-2 border-amber-500 rounded-2xl shadow-lg p-4 flex flex-col gap-3 max-h-96 overflow-y-auto">
|
||||||
<h2 className="text-xl font-semibold text-amber-700 flex items-center gap-2">
|
<div>
|
||||||
<Icon icon="fa7-solid:list" />
|
<h2 className="text-xl font-semibold text-amber-700 flex items-center gap-2">
|
||||||
Instructions
|
<Icon icon="fa7-solid:list" />
|
||||||
</h2>
|
Instructions
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p className="text-xs text-amber-800">All instructions are based off of the default Male Mii.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
{mii.youtubeId && (
|
{mii.youtubeId && (
|
||||||
<iframe
|
<iframe
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue