DFC & Exporter Fixes

This commit is contained in:
cajun
2024-10-04 19:00:04 -05:00
parent df8497adaa
commit 647bd1c915
5 changed files with 31 additions and 19 deletions

View File

@@ -742,7 +742,9 @@ script:
+ ".jpg"
}@(fillin:"")
write_card_image := {
if length(card.stylesheet.card_regions) > 0
sts := card.stylesheet
if sts == nil then sts := set.stylesheet
if length(sts.card_regions) > 0
then write_multi_images();
write_image_file(
card,
@@ -753,9 +755,11 @@ script:
)
}
write_multi_images := {
sts := card.stylesheet
if sts == nil then sts := set.stylesheet
card_image := to_card_image(card)
for i from 0 to length(card.stylesheet.card_regions)-1 do (
region_info := card.stylesheet.card_regions[i]
for i from 0 to length(sts.card_regions)-1 do (
region_info := sts.card_regions[i]
region_name := region_info.name
fillin := if region_name == "front" or region_name == "minifront" or region_name == "meldpair"
then "a"