Added Package::saveCopy, which is used to implement the write_set_file script function.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1169 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-24 19:48:51 +00:00
parent 2a4a896540
commit 42d40dbd1e
12 changed files with 119 additions and 32 deletions
@@ -11,6 +11,11 @@ depends on: magic.mse-game 2008-05-18
########################################################################################
option field:
type: boolean
name: include set file
description: Should a link to the MSE set file be included in the spoiler?
initial: no
option field:
type: choice
name: grouping
@@ -203,6 +208,9 @@ script:
<h1>{ to_html(set.title) }</h1>
<div class='copyright'>{ to_html(set.copyright) }</div>
<div class='description'>{ to_html(set.description) }</div>
{ if options.include_set_file then
"<div class='set-file'><a href='{ write_set_file(file:"set.mse-set") }'>Download set in MSE format</a></div>"
}
{ if options.grouping == "group by color" then
# Codes as by sort_index
write_group(title: "White", code:"A") +