From: sev Date: Mon, 13 Sep 2010 18:58:50 +0000 (+0200) Subject: Sourcefiles of the Luminos skins X-Git-Tag: xonotic-v0.1.0preview~13^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6c8a9870089dc5d2100070046b19763b4122376;p=xonotic%2Fmediasource.git Sourcefiles of the Luminos skins --- diff --git a/gfx/hud/hudskin_luminos.zip b/gfx/hud/hudskin_luminos.zip deleted file mode 100644 index 3f79571..0000000 Binary files a/gfx/hud/hudskin_luminos.zip and /dev/null differ diff --git a/gfx/menu/luminos_versionbuilder/all2tga.scm b/gfx/menu/luminos_versionbuilder/all2tga.scm new file mode 100755 index 0000000..66d0852 --- /dev/null +++ b/gfx/menu/luminos_versionbuilder/all2tga.scm @@ -0,0 +1,33 @@ +;Converts image files to .tga +;In: FilesIn (wildcard * possible) +; Compress (using RLE algorithm, 0=no, 1=yes) +;Out: tga files with same name as input (overwrites tga input files) + +(define (all2tga filesIn compress) + (let* + ( + (fileList (cadr (file-glob filesIn 1))) + ) + + (while (not (null? fileList)) + (let* + ( + (file (car fileList)) + (image (car (gimp-file-load 1 file file))) + (drawable (car (gimp-image-get-active-layer image))) + ) + + ;Set extension to .tga + (set! file (car (strbreakup file "."))) + (set! file (string-append file ".tga")) + + ;Save image as RLE compressed tga + (set! drawable (car (gimp-image-merge-visible-layers image 1))) + (file-tga-save 1 image drawable file file compress 0) + (gimp-image-delete image) + + (set! fileList (cdr fileList)) + ) + ) + ) +) diff --git a/gfx/menu/luminos_versionbuilder/background_l2.svg b/gfx/menu/luminos_versionbuilder/background_l2.svg new file mode 100644 index 0000000..0674a04 --- /dev/null +++ b/gfx/menu/luminos_versionbuilder/background_l2.svg @@ -0,0 +1,689 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Xonotic Logo + 2010 + + + Xonotic Community + + + + + + + + + + Xonotic Community + + + + + + + + + + + Xonotic + Phoenix + Logo + + + + The logo of the Xonotic project. + + + + + + + VERSIONPLACEHOLDER + + + + + + + + + diff --git a/gfx/menu/luminos_versionbuilder/versionbuilder b/gfx/menu/luminos_versionbuilder/versionbuilder new file mode 100755 index 0000000..c7e6c46 --- /dev/null +++ b/gfx/menu/luminos_versionbuilder/versionbuilder @@ -0,0 +1,29 @@ +#!/bin/bash +#Uses Inkscape, Gimp and sed. +#Requires the provided Gimp script (all2tga.scm) to be present in ~/.gimp*/scripts/. + +#Creates the background_(ingame_)l2.tga images, with a given version string argument. + +#The appearance of the string is defined by the master element in background_l2.svg: +#BlurAll > Version > VersionMaster +#The visible parts (Fill, Border, Glow) are duplicates of the master element. +#If the font or its size is changed, the gradients of the duplicates may need adjustment. + +#Check for valid argument +if [ -z "$1" ] +then + echo "Usage:" + echo "$0 [Version String]" + echo "" + exit 3 +fi + +#Create tmp.svg with version string according to argument +sed -e "s/VERSIONPLACEHOLDER/$1/" background_l2.svg > tmp.svg + +#Create tga files +inkscape -f "tmp.svg" -d 90 -e "background_l2.png" +gimp -d -f -i -b '(all2tga "background_l2.png" 1)' -b '(gimp-quit 0)' +cp background_l2.tga background_ingame_l2.tga +rm tmp.svg +rm background_l2.png diff --git a/gfx/skins_luminos.zip b/gfx/skins_luminos.zip new file mode 100644 index 0000000..421898b Binary files /dev/null and b/gfx/skins_luminos.zip differ