mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-04 04:25:46 -04:00
textgen: Generate CREDIT screen.
This is one of the screens of text shown between demos in the demo loop. Generate this from the contents of a static text file. I originally wanted to generate this programatically from the CREDITS file but there are too many contributors to fit them all on the page.
This commit is contained in:
parent
9968fe0ed1
commit
7a1b49e965
5 changed files with 43 additions and 2 deletions
|
@ -154,6 +154,11 @@ command_line = [
|
|||
]
|
||||
|
||||
for xy, string in args['strings']:
|
||||
# Allow contents of a file to be included with special prefix:
|
||||
if string.startswith('include:'):
|
||||
with open(string[8:]) as f:
|
||||
string = f.read()
|
||||
|
||||
# Allow special notation to indicate an image file to just draw
|
||||
# rather than rendering a string.
|
||||
if string.startswith('file:'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue