Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

auriafoxgirl/figura_avatar_api

Repository files navigation

figura_avatar_api

A simple figura api extention that allow you to change your avatar, or upload it with script.

to use custom api add it to your mods folder

using api in script:

all apis are stored in one table like all other figura apis, that table is named "avatar"

reload avatar:

avatar.reload()

returns: nil

check if avatar is local (not uploaded to backend):

avatar.isLocal()

returns: boolean ( true if its local and false if its from backend )

load avatar from backend:

avatar.loadFromBackend()

returns: nil

upload your avatar to backend (there is 2.5 seconds delay until you will be able to upload it again):

avatar.uploadToBackend()

returns: boolean ()

set local avatar:

avatar.set( avatar_dir )

requires: string that is: path to folder or zip of figura avatar (ex. "myAvatar.zip")

returns: nil

template used to make this mod: https://github.com/Kingdom-of-Moon/Figura-Entrypoint-Example

About

A simple figura api extention that allow you to change your avatar, or upload it with script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages