You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.7 KiB
30 lines
1.7 KiB
|
3 years ago
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
if [[ $# -eq 0 ]]; then
|
||
|
|
>&2 echo "Usage: tools/update_bundled_assets.sh [path-to-devilutionx-assets-repo-dir]"
|
||
|
|
exit 64
|
||
|
|
fi
|
||
|
|
|
||
|
|
ASSETS_REPO_DIR="$1"
|
||
|
|
OUTPUT_DIR="${PWD}/Packaging/resources/assets"
|
||
|
|
|
||
|
|
set -x
|
||
|
|
cd "${ASSETS_REPO_DIR}/bundled-assets"
|
||
|
|
pcx2clx --output-dir "${OUTPUT_DIR}/data" data/boxleftend.pcx data/boxmiddle.pcx data/talkbutton.pcx data/boxrightend.pcx data/charbg.pcx data/health.pcx
|
||
|
|
pcx2clx --output-dir "${OUTPUT_DIR}/gendata" gendata/*.pcx
|
||
|
|
pcx2clx --output-dir "${OUTPUT_DIR}/ui_art" ui_art/creditsw.pcx ui_art/dvl_lrpopup.pcx ui_art/hf_titlew.pcx ui_art/mainmenuw.pcx ui_art/supportw.pcx
|
||
|
|
pcx2clx --transparent-color 1 --num-sprites 256 --output-dir "${OUTPUT_DIR}/fonts" fonts/*.pcx
|
||
|
|
pcx2clx --num-sprites 2 --output-dir "${OUTPUT_DIR}/ui_art" ui_art/dvl_but_sml.pcx
|
||
|
|
pcx2clx --transparent-color 1 --output-dir "${OUTPUT_DIR}/data" data/hintbox.pcx data/hintboxbackground.pcx
|
||
|
|
pcx2clx --transparent-color 1 --num-sprites 6 --output-dir "${OUTPUT_DIR}/data" data/hinticons.pcx
|
||
|
|
pcx2clx --num-sprites 2 --output-dir "${OUTPUT_DIR}/data" data/panel8buc.pcx data/dirtybuc.pcx data/dirtybucp.pcx
|
||
|
|
pcx2clx --transparent-color 1 --output-dir "${OUTPUT_DIR}/data" data/healthbox.pcx
|
||
|
|
pcx2clx --transparent-color 1 --num-sprites 6 --output-dir "${OUTPUT_DIR}/data" data/resistance.pcx
|
||
|
|
pcx2clx --transparent-color 1 --num-sprites 5 --output-dir "${OUTPUT_DIR}/data" data/monstertags.pcx
|
||
|
|
pcx2clx --transparent-color 1 --output-dir "${OUTPUT_DIR}/data" data/stash.pcx
|
||
|
|
pcx2clx --transparent-color 1 --num-sprites 5 --output-dir "${OUTPUT_DIR}/data" data/stashnavbtns.pcx
|
||
|
|
pcx2clx --num-sprites 6 --output-dir "${OUTPUT_DIR}/data" data/panel8bucp.pcx
|
||
|
|
pcx2clx --transparent-color 1 --output-dir "${OUTPUT_DIR}/data" data/xpbar.pcx
|
||
|
|
cd -
|