Load stickers from config file.

This commit is contained in:
N-Pex 2021-09-25 14:35:38 +02:00
parent 3bd15adc29
commit 46a4268245
7 changed files with 78 additions and 38 deletions

View file

@ -44,7 +44,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
## Theming
# Sticker short codes - To enable sticker short codes, follow there steps:
* set "useShortCodeStickers" to true in config.json.
* Add your sticker pack folders (containing stickers) to /src/assets/stickers/
* Create file /src/assets/stickers/order.txt that lists the folders names in order, one folder name per line.
# Sticker short codes - To enable sticker short codes, follow these steps:
* Run the "create sticker config" script using "npm run create-sticker-config <path-to-sticker-packs>"
* Insert the resulting config blob into the "shortCodeStickers" value of the config file (assets/config.json)
* Rearrange order of sticker packs by editing the config blob above.