mirror of
https://github.com/smogon/sprites.git
synced 2026-07-13 06:31:33 -05:00
Compression setting for models
This commit is contained in:
parent
a7183cbc47
commit
a8a176f3c0
|
|
@ -71,6 +71,7 @@ Build settings are configurable in `tup.config`.
|
|||
- `CONFIG_DEFAULT_ADVPNG`: Command line to pass to `advpng`.
|
||||
- `CONFIG_TRAINERS_{OPTIPNG,ADVPNG}`: Compression options for `trainers/` only.
|
||||
- `CONFIG_DEX_{OPTIPNG,ADVPNG}`: Compression options for `dex/` only.
|
||||
- `CONFIG_MODELS_{OPTIPNG,ADVPNG}`: Compression options for `models/` only.
|
||||
|
||||
For example, these settings reflect the compression settings for the files chaos uploaded in `src/`:
|
||||
```
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ tup.rule(
|
|||
function fbsprite(input, output)
|
||||
tup.foreach_rule(
|
||||
input,
|
||||
"^ fbsprite %f^ tools/fbsprite.sh %f %o",
|
||||
"^ fbsprite %f^ " .. makecmd{"tools/fbsprite.sh %f %o",
|
||||
compresspng{config="MODELS"}},
|
||||
output
|
||||
)
|
||||
end
|
||||
|
|
@ -40,7 +41,8 @@ end
|
|||
function twittersprite(input, output)
|
||||
tup.foreach_rule(
|
||||
input,
|
||||
"^ twittersprite %f^ tools/twittersprite.sh %f %o",
|
||||
"^ twittersprite %f^ " .. makecmd{"tools/twittersprite.sh %f %o",
|
||||
compresspng{config="MODELS"}},
|
||||
output
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user