File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
## Creating unit icons
10
10
11
- 1 . Extract btn-unit* (and all files from special cases below) from base.MPQ and throw them in units/dds/
12
- 2 . ` cd units && bash gen.sh <size> `
11
+ 1 . Extract btn-unit* (and all files from special cases below) from the appropriate MPQ file and throw them in units/dds/
12
+ The MPQ file will be Starcraft II/Mods/Liberty.SC2Mod/Base.SC2Assets for WoL units.
13
+ 2 . ` cd units && bash gen.sh <size> ` for <size > in 32, 48, 76
13
14
3 . profit.
14
15
15
16
### Special cases:
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ for k in dds/*dds; do
14
14
filename=$( basename " $k " )
15
15
extension=" ${filename##* .} "
16
16
filename=" ${filename% .* } "
17
- m=` expr match " $filename " ' \(btn-[a-zA-Z]*-[a-zA-Z]*-\)' `
17
+ m=` expr " $filename " : ' \(btn-[a-zA-Z]*-[a-zA-Z]*-\)' `
18
18
unit=" ${filename// $m / } "
19
19
20
20
echo " $k -> icons/$w /$unit .png ($w x $h )"
You can’t perform that action at this time.
0 commit comments