Register a new portrait part type.
Register a new portrait part type.
1 table data
the data.
-- register a face type portrait.register({ id = "face_1_1", part = portrait.APPEARANCE_PARTS.FACE, quad = "portrait_face_1_1", faceID = 1 }) -- register a hair type portrait.register({ id = "hair_1_1", part = portrait.APPEARANCE_PARTS.HAIRCUT, quad = "portrait_hair_1_1", offset = {1, 1}, faceID = 1 }) -- register eye type portrait.register({ id = "eye_1_1", part = portrait.APPEARANCE_PARTS.EYE, quad = "portrait_eyes_inner_1_1", quadOuter = "portrait_eyes_outer_1_1", faceID = 1 }) -- register an eyebrow type portrait.register({ id = "eyebrows_1_1", part = portrait.APPEARANCE_PARTS.EYEBROWS, quad = "portrait_eyebrows_1_1", faceID = 1, }) -- register a shirt type portrait.register({ id = "shirt_1_1", part = portrait.APPEARANCE_PARTS.SHIRT, quad = "portrait_shirt_variant_1_1" }) -- register a beard type portrait.register({ id = "beard_1_1", part = portrait.APPEARANCE_PARTS.BEARD, quad = "portrait_beard_1_1", faceRequirement = {face_1_1 = true, face_1_2 = true, face_1_3 = true, face_1_4 = true, face_1_6 = true, face_1_8 = true, face_1_9 = true}, offset = {-5, -3}, faceID = 1 }) -- register glasses portrait.register({ id = "glasses_1_1", part = portrait.APPEARANCE_PARTS.GLASSES, quad = "portrait_glasses_1_1", faceID = 1 }) -- register a skin color portrait.register({ id = "skin_color_white", part = portrait.APPEARANCE_PARTS.SKINCOLOR, color = color(255, 163, 127, 255), backgrounds = {"germanic", "slavic", "finnish"} }) -- register eye colors portrait.register({ id = "eye_blue", part = portrait.APPEARANCE_PARTS.EYECOLOR, skinColor = {"skin_color_white", "skin_color_white_pale"}, color = color(0, 178, 255, 255), }) -- register a hair color portrait.register({ id = "hair_color_blonde", skinColor = {"skin_color_white", "skin_color_white_pale"}, part = portrait.APPEARANCE_PARTS.HAIRCOLOR, color = color(255, 239, 137, 255) })