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: {
|
||||
type: miiData.eyebrowType,
|
||||
color: miiData.eyebrowColor,
|
||||
height: miiData.eyebrowY,
|
||||
distance: miiData.eyebrowX,
|
||||
rotation: miiData.eyebrowRotate,
|
||||
size: miiData.eyebrowScale,
|
||||
stretch: miiData.eyebrowAspect,
|
||||
height: miiData.eyebrowY - 10,
|
||||
distance: miiData.eyebrowX - 4,
|
||||
rotation: miiData.eyebrowRotate - 6,
|
||||
size: miiData.eyebrowScale - 4,
|
||||
stretch: miiData.eyebrowAspect - 3,
|
||||
},
|
||||
eyes: {
|
||||
main: {
|
||||
type: miiData.eyeType,
|
||||
color: miiData.eyeColor,
|
||||
height: miiData.eyeY,
|
||||
distance: miiData.eyeX,
|
||||
rotation: miiData.eyeRotate,
|
||||
size: miiData.eyeScale,
|
||||
stretch: miiData.eyeAspect,
|
||||
height: miiData.eyeY - 12,
|
||||
distance: miiData.eyeX - 2,
|
||||
rotation: miiData.eyeRotate - 4,
|
||||
size: miiData.eyeScale - 4,
|
||||
stretch: miiData.eyeAspect - 3,
|
||||
},
|
||||
eyelashesTop: {
|
||||
type: miiData.eyelashUpperType,
|
||||
|
|
@ -291,47 +291,47 @@ export async function POST(request: NextRequest) {
|
|||
},
|
||||
nose: {
|
||||
type: miiData.noseType,
|
||||
height: miiData.noseY,
|
||||
size: miiData.noseScale,
|
||||
height: miiData.noseY - 9,
|
||||
size: miiData.noseScale - 4,
|
||||
},
|
||||
lips: {
|
||||
type: miiData.mouthType,
|
||||
color: miiData.mouthColor,
|
||||
height: miiData.mouthY,
|
||||
height: miiData.mouthY - 13,
|
||||
rotation: miiData.mouthRotate,
|
||||
size: miiData.mouthScale,
|
||||
stretch: miiData.mouthAspect,
|
||||
size: miiData.mouthScale - 4,
|
||||
stretch: miiData.mouthAspect - 3,
|
||||
// uh oh, no lipstick
|
||||
hasLipstick: false,
|
||||
},
|
||||
ears: {
|
||||
type: miiData.earType,
|
||||
height: miiData.earY,
|
||||
size: miiData.earScale,
|
||||
height: miiData.earY - 4,
|
||||
size: miiData.earScale - 2,
|
||||
},
|
||||
glasses: {
|
||||
type: miiData.glassType1,
|
||||
type2: miiData.glassType2,
|
||||
ringColor: miiData.glassColor1,
|
||||
shadesColor: miiData.glassColor2,
|
||||
height: miiData.glassY,
|
||||
size: miiData.glassScale,
|
||||
stretch: miiData.glassAspect,
|
||||
height: miiData.glassY - 11,
|
||||
size: miiData.glassScale - 4,
|
||||
stretch: miiData.glassAspect - 3,
|
||||
},
|
||||
other: {
|
||||
wrinkles1: {
|
||||
type: miiData.wrinkleLowerType,
|
||||
height: miiData.wrinkleLowerY,
|
||||
distance: miiData.wrinkleLowerX,
|
||||
size: miiData.wrinkleLowerScale,
|
||||
stretch: miiData.wrinkleLowerAspect,
|
||||
height: miiData.wrinkleLowerY - 15,
|
||||
distance: miiData.wrinkleLowerX - 2,
|
||||
size: miiData.wrinkleLowerScale - 6,
|
||||
stretch: miiData.wrinkleLowerAspect - 3,
|
||||
},
|
||||
wrinkles2: {
|
||||
type: miiData.wrinkleUpperType,
|
||||
height: miiData.wrinkleUpperY,
|
||||
distance: miiData.wrinkleUpperX,
|
||||
size: miiData.wrinkleUpperScale,
|
||||
stretch: miiData.wrinkleUpperAspect,
|
||||
height: miiData.wrinkleUpperY - 23,
|
||||
distance: miiData.wrinkleUpperX - 7,
|
||||
size: miiData.wrinkleUpperScale - 6,
|
||||
stretch: miiData.wrinkleUpperAspect - 3,
|
||||
},
|
||||
beard: {
|
||||
type: miiData.beardType,
|
||||
|
|
@ -340,11 +340,11 @@ export async function POST(request: NextRequest) {
|
|||
moustache: {
|
||||
type: miiData.mustacheType,
|
||||
color: miiData.mustacheColor,
|
||||
height: miiData.mustacheY,
|
||||
height: miiData.mustacheY - 10,
|
||||
// uh oh, no flipped
|
||||
isFlipped: false,
|
||||
size: miiData.mustacheScale,
|
||||
stretch: miiData.mustacheAspect,
|
||||
size: miiData.mustacheScale - 4,
|
||||
stretch: miiData.mustacheAspect - 3,
|
||||
},
|
||||
goatee: {
|
||||
type: miiData.beardShortType,
|
||||
|
|
@ -352,25 +352,25 @@ export async function POST(request: NextRequest) {
|
|||
},
|
||||
mole: {
|
||||
type: miiData.moleX != 0,
|
||||
height: miiData.moleY,
|
||||
distance: miiData.moleX,
|
||||
size: miiData.moleScale,
|
||||
height: miiData.moleY - 20,
|
||||
distance: miiData.moleX - 2,
|
||||
size: miiData.moleScale - 4,
|
||||
},
|
||||
eyeShadow: {
|
||||
type: miiData.makeup0,
|
||||
color: miiData.makeup0Color,
|
||||
height: miiData.makeup0Y,
|
||||
distance: miiData.makeup0X,
|
||||
size: miiData.makeup0Scale,
|
||||
stretch: miiData.makeup0Aspect,
|
||||
height: miiData.makeup0Y - 12,
|
||||
distance: miiData.makeup0X - 1,
|
||||
size: miiData.makeup0Scale - 6,
|
||||
stretch: miiData.makeup0Aspect - 3,
|
||||
},
|
||||
blush: {
|
||||
type: miiData.makeup1,
|
||||
color: miiData.makeup1Color,
|
||||
height: miiData.makeup1Y,
|
||||
distance: miiData.makeup1X,
|
||||
size: miiData.makeup1Scale,
|
||||
stretch: miiData.makeup1Aspect,
|
||||
height: miiData.makeup1Y - 19,
|
||||
distance: miiData.makeup1X - 6,
|
||||
size: miiData.makeup1Scale - 5,
|
||||
stretch: miiData.makeup1Aspect - 3,
|
||||
},
|
||||
},
|
||||
height: miiData.height,
|
||||
|
|
|
|||
|
|
@ -385,10 +385,14 @@ export default async function MiiPage({ params }: Props) {
|
|||
{/* Instructions */}
|
||||
{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">
|
||||
<h2 className="text-xl font-semibold text-amber-700 flex items-center gap-2">
|
||||
<Icon icon="fa7-solid:list" />
|
||||
Instructions
|
||||
</h2>
|
||||
<div>
|
||||
<h2 className="text-xl font-semibold text-amber-700 flex items-center gap-2">
|
||||
<Icon icon="fa7-solid:list" />
|
||||
Instructions
|
||||
</h2>
|
||||
|
||||
<p className="text-xs text-amber-800">All instructions are based off of the default Male Mii.</p>
|
||||
</div>
|
||||
|
||||
{mii.youtubeId && (
|
||||
<iframe
|
||||
|
|
|
|||
Loading…
Reference in a new issue