Generate different titlepics for freedoom and freedm.

This commit is contained in:
Simon Howard 2006-06-04 15:33:28 +00:00
parent 585765b393
commit 868ab15f43
7 changed files with 20 additions and 8 deletions

View file

@ -500,6 +500,13 @@ D_DM2INT
; List of Pictures (with insertion point) ; List of Pictures (with insertion point)
[graphics] [graphics]
#ifdef FREEDM
TITLEPIC 0 0 = dmttl
#else
TITLEPIC 0 0 = doomttl
#endif
#ifdef DOOM2 #ifdef DOOM2
HELP 0 0 HELP 0 0
#endif #endif
@ -510,7 +517,6 @@ HELP2 0 0
#endif #endif
#endif #endif
TITLEPIC 0 0
CREDIT 0 0 CREDIT 0 0
BOSSBACK 0 0 BOSSBACK 0 0
AMMNUM0 -1 0 AMMNUM0 -1 0

1
graphics/dmttl.ppm Symbolic link
View file

@ -0,0 +1 @@
titlepic/freedm.ppm

1
graphics/doomttl.ppm Symbolic link
View file

@ -0,0 +1 @@
titlepic/freedoom.ppm

View file

@ -1 +0,0 @@
titlepic/output.ppm

View file

@ -1,3 +1,8 @@
titlepic: titlepic: freedoom.ppm freedm.ppm
./create_caption
# pnmtopng < output.ppm > output.png freedoom.ppm: base.ppm
./create_caption Freedoom $@
freedm.ppm: base.ppm
./create_caption FreeDM $@

View file

@ -5,12 +5,12 @@ DATE=`date +%Y/%m/%d`
convert -fill white -font Helvetica-Bold \ convert -fill white -font Helvetica-Bold \
-pointsize 30 \ -pointsize 30 \
-gravity north \ -gravity north \
-draw "text 0,30 Freedoom" \ -draw "text 0,30 $1" \
-pointsize 11 \ -pointsize 11 \
-gravity southwest \ -gravity southwest \
-draw "text 5,5 'http://freedoom.sourceforge.net/'" \ -draw "text 5,5 'http://freedoom.sourceforge.net/'" \
-gravity southeast \ -gravity southeast \
-draw "text 10,25 'Version: $VERSION'" \ -draw "text 10,25 'Version: $VERSION'" \
-draw "text 10,5 '$DATE'" \ -draw "text 10,5 '$DATE'" \
base.ppm output.ppm base.ppm $2

View file

@ -89,7 +89,7 @@ while (<STDIN>) {
if $section eq "texture1" || if $section eq "texture1" ||
$section eq "texture2"; $section eq "texture2";
} elsif (/^\s*(\S+)(\s*\=\s*(\S+))?/) { } elsif (/^\s*(\S+)[^\=]*(\s*\=\s*(\S+))?/) {
my ($resname, $override) = ($1, $3); my ($resname, $override) = ($1, $3);