List of all possible avatar option variants per type.
I see that generator uses quite complicated logic with context to get list of all possible variants for each avatar prop. Is there any reason behind that? Is it possible to get simple object of all possible variants per prop? something like:
{
'facialHairType': ['MoustacheFancy', 'MoustacheMagnum', ...],
'facialHairColor': ['Auburn', 'Black', ...],
...
}
It will simplify creation of custom generators. I can make a PR with hardcoded object if there is not better way to do it.
+1
This would be enormously helpful. @nosovsh did you ever get to developing the hardcoded object?
yes, I've implemented it. will make a pr today
There you go:
{
topType: [
'NoHair',
'Eyepatch',
'Hat',
'Hijab',
'Turban',
'WinterHat1',
'WinterHat2',
'WinterHat3',
'WinterHat4',
'LongHairBigHair',
'LongHairBob',
'LongHairBun',
'LongHairCurly',
'LongHairCurvy',
'LongHairDreads',
'LongHairFrida',
'LongHairFro',
'LongHairFroBand',
'LongHairNotTooLong',
'LongHairShavedSides',
'LongHairMiaWallace',
'LongHairStraight',
'LongHairStraight2',
'LongHairStraightStrand',
'ShortHairDreads01',
'ShortHairDreads02'
],
accessoriesType: [
'Blank',
'Kurt',
'Prescription01',
'Prescription02',
'Round',
'Sunglasses',
'Wayfarers'
],
hatColor: [
'Black',
'Blue01',
'Blue02',
'Blue03',
'Gray01',
'Gray02',
'Heather',
'PastelBlue',
'PastelGreen',
'PastelOrange',
'PastelRed',
'PastelYellow',
'Pink',
'Red',
'White'
],
hairColor: [
'Auburn',
'Black',
'Blonde',
'BlondeGolden',
'Brown',
'BrownDark',
'PastelPink',
'Platinum',
'Red',
'SilverGray'
],
facialHairType: [
'Blank',
'BeardMedium',
'BeardLight',
'BeardMajestic',
'MoustacheFancy',
'MoustacheMagnum'
],
facialHairColor: [
'Auburn',
'Black',
'Blonde',
'BlondeGolden',
'Brown',
'BrownDark',
'Platinum',
'Red'
],
clotheType: [
'BlazerShirt',
'BlazerSweater',
'CollarSweater',
'GraphicShirt',
'Hoodie',
'Overall',
'ShirtCrewNeck',
'ShirtScoopNeck',
'ShirtVNeck'
],
clotheColor: [
'Black',
'Blue01',
'Blue02',
'Blue03',
'Gray01',
'Gray02',
'Heather',
'PastelBlue',
'PastelGreen',
'PastelOrange',
'PastelRed',
'PastelYellow',
'Pink',
'Red',
'White'
],
graphicType: [
'Bat',
'Cumbia',
'Deer',
'Diamond',
'Hola',
'Pizza',
'Resist',
'Selena',
'Bear',
'SkullOutline',
'Skull'
],
eyeType: [
'Close',
'Cry',
'Default',
'Dizzy',
'EyeRoll',
'Happy',
'Hearts',
'Side',
'Squint',
'Surprised',
'Wink',
'WinkWacky'
],
eyebrowType: [
'Angry',
'AngryNatural',
'Default',
'DefaultNatural',
'FlatNatural',
'RaisedExcited',
'RaisedExcitedNatural',
'SadConcerned',
'SadConcernedNatural',
'UnibrowNatural',
'UpDown',
'UpDownNatural'
],
mouthType: [
'Concerned',
'Default',
'Disbelief',
'Eating',
'Grimace',
'Sad',
'ScreamOpen',
'Serious',
'Smile',
'Tongue',
'Twinkle',
'Vomit'
],
skinColor: [
'Tanned',
'Yellow',
'Pale',
'Light',
'Brown',
'DarkBrown',
'Black'
]
}
That above comment is incomplete, here's one that includes the short hair options:
{
topType: [
"NoHair",
"Eyepatch",
"Hat",
"Hijab",
"Turban",
"WinterHat1",
"WinterHat2",
"WinterHat3",
"WinterHat4",
"LongHairBigHair",
"LongHairBob",
"LongHairBun",
"LongHairCurly",
"LongHairCurvy",
"LongHairDreads",
"LongHairFrida",
"LongHairFro",
"LongHairFroBand",
"LongHairNotTooLong",
"LongHairShavedSides",
"LongHairMiaWallace",
"LongHairStraight",
"LongHairStraight2",
"LongHairStraightStrand",
"ShortHairDreads01",
"ShortHairDreads02",
"ShortHairFrizzle",
"ShortHairShaggyMullet",
"ShortHairShortCurly",
"ShortHairShortFlat",
"ShortHairShortRound",
"ShortHairShortWaved",
"ShortHairSides",
"ShortHairTheCaesar",
"ShortHairTheCaesarSidePart"
],
accessoriesType: [
"Blank",
"Kurt",
"Prescription01",
"Prescription02",
"Round",
"Sunglasses",
"Wayfarers"
],
hatColor: [
"Black",
"Blue01",
"Blue02",
"Blue03",
"Gray01",
"Gray02",
"Heather",
"PastelBlue",
"PastelGreen",
"PastelOrange",
"PastelRed",
"PastelYellow",
"Pink",
"Red",
"White"
],
hairColor: [
"Auburn",
"Black",
"Blonde",
"BlondeGolden",
"Brown",
"BrownDark",
"PastelPink",
"Platinum",
"Red",
"SilverGray"
],
facialHairType: [
"Blank",
"BeardMedium",
"BeardLight",
"BeardMajestic",
"MoustacheFancy",
"MoustacheMagnum"
],
facialHairColor: [
"Auburn",
"Black",
"Blonde",
"BlondeGolden",
"Brown",
"BrownDark",
"Platinum",
"Red"
],
clotheType: [
"BlazerShirt",
"BlazerSweater",
"CollarSweater",
"GraphicShirt",
"Hoodie",
"Overall",
"ShirtCrewNeck",
"ShirtScoopNeck",
"ShirtVNeck"
],
clotheColor: [
"Black",
"Blue01",
"Blue02",
"Blue03",
"Gray01",
"Gray02",
"Heather",
"PastelBlue",
"PastelGreen",
"PastelOrange",
"PastelRed",
"PastelYellow",
"Pink",
"Red",
"White"
],
graphicType: [
"Bat",
"Cumbia",
"Deer",
"Diamond",
"Hola",
"Pizza",
"Resist",
"Selena",
"Bear",
"SkullOutline",
"Skull"
],
eyeType: [
"Close",
"Cry",
"Default",
"Dizzy",
"EyeRoll",
"Happy",
"Hearts",
"Side",
"Squint",
"Surprised",
"Wink",
"WinkWacky"
],
eyebrowType: [
"Angry",
"AngryNatural",
"Default",
"DefaultNatural",
"FlatNatural",
"RaisedExcited",
"RaisedExcitedNatural",
"SadConcerned",
"SadConcernedNatural",
"UnibrowNatural",
"UpDown",
"UpDownNatural"
],
mouthType: [
"Concerned",
"Default",
"Disbelief",
"Eating",
"Grimace",
"Sad",
"ScreamOpen",
"Serious",
"Smile",
"Tongue",
"Twinkle",
"Vomit"
],
skinColor: [
"Tanned",
"Yellow",
"Pale",
"Light",
"Brown",
"DarkBrown",
"Black"
]
}