support aquiring server props and test dropping them
This commit is contained in:
parent
3e1afb82c8
commit
7852790a1e
9 changed files with 858 additions and 150 deletions
|
|
@ -58,24 +58,16 @@ capitalize() {
|
|||
}
|
||||
|
||||
# Function to determine tags based on filename
|
||||
# Tags complement default_layer/default_emotion - avoid redundant info
|
||||
# Tags complement default_layer - avoid redundant info
|
||||
get_tags() {
|
||||
local filename="$1"
|
||||
case "$filename" in
|
||||
face.svg)
|
||||
# Content layer prop - "skin" is already in default_layer
|
||||
# Base face prop - "skin" is already in default_layer
|
||||
echo '["base", "face"]'
|
||||
;;
|
||||
smile.svg | happy.svg | neutral.svg | sad.svg | angry.svg | surprised.svg | thinking.svg | laughing.svg | crying.svg | love.svg | confused.svg)
|
||||
# Emotion props - emotion is already in default_emotion
|
||||
echo '["face"]'
|
||||
;;
|
||||
sleeping.svg)
|
||||
# Emotion prop for sleeping
|
||||
echo '["face"]'
|
||||
;;
|
||||
wink.svg)
|
||||
# Emotion prop for wink
|
||||
neutral.svg | smile.svg | sad.svg | angry.svg | surprised.svg | thinking.svg | laughing.svg | crying.svg | love.svg | confused.svg | sleeping.svg | wink.svg)
|
||||
# Facial expression props - "emote" is already in default_layer
|
||||
echo '["face"]'
|
||||
;;
|
||||
*)
|
||||
|
|
@ -85,7 +77,7 @@ get_tags() {
|
|||
}
|
||||
|
||||
# Function to get positioning fields based on filename
|
||||
# Returns: "layer:<value>" for content layer props, "emotion:<value>" for emotion props, "none" for generic props
|
||||
# Returns: "layer:<value>" for content layer props, "none" for generic props
|
||||
get_positioning() {
|
||||
local filename="$1"
|
||||
case "$filename" in
|
||||
|
|
@ -93,41 +85,9 @@ get_positioning() {
|
|||
# Base face is a content layer prop (skin layer)
|
||||
echo "layer:skin"
|
||||
;;
|
||||
neutral.svg)
|
||||
echo "emotion:neutral"
|
||||
;;
|
||||
smile.svg)
|
||||
echo "emotion:happy"
|
||||
;;
|
||||
sad.svg)
|
||||
echo "emotion:sad"
|
||||
;;
|
||||
angry.svg)
|
||||
echo "emotion:angry"
|
||||
;;
|
||||
surprised.svg)
|
||||
echo "emotion:surprised"
|
||||
;;
|
||||
thinking.svg)
|
||||
echo "emotion:thinking"
|
||||
;;
|
||||
laughing.svg)
|
||||
echo "emotion:laughing"
|
||||
;;
|
||||
crying.svg)
|
||||
echo "emotion:crying"
|
||||
;;
|
||||
love.svg)
|
||||
echo "emotion:love"
|
||||
;;
|
||||
confused.svg)
|
||||
echo "emotion:confused"
|
||||
;;
|
||||
sleeping.svg)
|
||||
echo "emotion:sleeping"
|
||||
;;
|
||||
wink.svg)
|
||||
echo "emotion:wink"
|
||||
neutral.svg | smile.svg | sad.svg | angry.svg | surprised.svg | thinking.svg | laughing.svg | crying.svg | love.svg | confused.svg | sleeping.svg | wink.svg)
|
||||
# Facial expression props use the emote layer
|
||||
echo "layer:emote"
|
||||
;;
|
||||
*)
|
||||
echo "none"
|
||||
|
|
@ -159,13 +119,9 @@ for file in "$STOCKAVATAR_DIR"/*.svg; do
|
|||
|
||||
case "$positioning_type" in
|
||||
layer)
|
||||
# Content layer prop
|
||||
# Content layer prop (skin, clothes, accessories, emote)
|
||||
positioning_json="\"default_layer\": \"$positioning_value\", \"default_position\": 4"
|
||||
;;
|
||||
emotion)
|
||||
# Emotion layer prop
|
||||
positioning_json="\"default_emotion\": \"$positioning_value\", \"default_position\": 4"
|
||||
;;
|
||||
*)
|
||||
# Generic prop (no default positioning)
|
||||
positioning_json=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue