It connects to the chuni v2 endpoints in the AQUA_HOST server in order to fetch the data about the user's current userbox, the item's labels and the items unlocked by the user.
Getting the aimeId was required for having access to this data, this is done using the endpoint getByAccessCode.
I also added a new variable in config.ts with name HAS_USERBOX_ASSETS that should be turned off if the server does not have the images of the userbox items ready. If this variable is set as false, the selects will still work but the user wont be able to preview what it chooses.
Requirements for assets to be shown
The assets must be placed in the same folder than the music and 00 folders that are currently being used for song artworks and the file all-music.json (this is /d/chu3/).
The names of the folders need to be:
systemVoice for the images that show the character voices.
namePlate for the nameplates.
mapIcon for the map icons.
avatarAccessory for all the accessories related with the avatar (skin, front, back, etc...)
frame for all the frames
The trophies must be placed at the same level than these folders, the contents of this json must be an Object in which the keys are the different ids of the trophies in the game and the value is the text itself.
Ex.
{
"1":"This is my trophy",
"927":"Should be easy to access"
}
The files of the assets must be in png format and its name must be the id without any preceding zeros
Fixes #41
It connects to the chuni v2 endpoints in the AQUA_HOST server in order to fetch the data about the user's current userbox, the item's labels and the items unlocked by the user.
Getting the aimeId was required for having access to this data, this is done using the endpoint getByAccessCode.
I also added a new variable in config.ts with name HAS_USERBOX_ASSETS that should be turned off if the server does not have the images of the userbox items ready. If this variable is set as false, the selects will still work but the user wont be able to preview what it chooses.
Requirements for assets to be shown
Ex.
Ex.
This is how the assets folder should look like
Things that can be improved