mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat(account): web item giver with colour pickers, den variants, tints and previews
/account/items, linked from the account page and using its sign-in, gives items to the account signed in: - clothing: the item's own colours, or four colours of your own as a picker, #RRGGBB, or AJ's numbers (palette places, or the whole item's colour id signed or unsigned), converted as you type; hex colours not in the palette become an exact custom colour - den items: the variants their art has (lib/den-variants.json, made by tools/den-variants.sh) and a whole-item tint with a strength, kept in the item's version above the variant and drawn by DenItemHelper (build 83) - a preview of each: clothing icons coloured on the page as the game colours them, den items played by Ruffle in a sandboxed frame through public/item-preview.swf (tools/preview-host) a give with a custom colour id that does not exist is refused.
This commit is contained in:
1 parent
44af83f1c5
commit
7cfef493fa
18 files changed
+1958
-7
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# rebuilds lib/den-variants.json: every den item's art fetched (into cache/
|
||||
# too), decompiled by JPEXS (tools/ffdec, needs Java) and read for its
|
||||
# variants. see tools/den-variants.js.
|
||||
#
|
||||
# tools/den-variants.sh [work folder] (default: a new temporary one)
|
||||
set -e
|
||||
cd "$(dirname "$(readlink -f "$0")")/.."
|
||||
work=${1:-$(mktemp -d)}
|
||||
node tools/den-variants.js fetch "$work"
|
||||
java -jar tools/ffdec/ffdec-cli.jar -export script "$work/out" "$work/swf" > "$work/ffdec.log" 2>&1
|
||||
node tools/den-variants.js index "$work"
|
||||
Reference in new issue
Block a user