]> de.git.xonotic.org Git - xonotic/mediasource.git/blob - gfx/menu/luminos_versionbuilder/versionbuilder
Sourcefiles of the Luminos skins
[xonotic/mediasource.git] / gfx / menu / luminos_versionbuilder / versionbuilder
1 #!/bin/bash
2 #Uses Inkscape, Gimp and sed.
3 #Requires the provided Gimp script (all2tga.scm) to be present in ~/.gimp*/scripts/.
4
5 #Creates the background_(ingame_)l2.tga images, with a given version string argument.
6
7 #The appearance of the string is defined by the master element in background_l2.svg:
8 #BlurAll > Version > VersionMaster
9 #The visible parts (Fill, Border, Glow) are duplicates of the master element.
10 #If the font or its size is changed, the gradients of the duplicates may need adjustment.
11
12 #Check for valid argument
13 if [ -z "$1" ]
14 then
15     echo "Usage:"
16     echo "$0 [Version String]"
17     echo ""
18     exit 3
19 fi
20
21 #Create tmp.svg with version string according to argument
22 sed -e "s/VERSIONPLACEHOLDER/$1/" background_l2.svg > tmp.svg
23
24 #Create tga files
25 inkscape -f "tmp.svg" -d 90 -e "background_l2.png"
26 gimp -d -f -i -b '(all2tga "background_l2.png" 1)' -b '(gimp-quit 0)'
27 cp background_l2.tga background_ingame_l2.tga
28 rm tmp.svg
29 rm background_l2.png