From d71835b5b57407b76d19f69dea1167bc0116ddb9 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 5 Jul 2007 00:37:28 +0000 Subject: [PATCH] Added option to use blending to make colored lands git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@484 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic-blends.mse-include/new-blends | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/data/magic-blends.mse-include/new-blends b/data/magic-blends.mse-include/new-blends index a7b65056..b0119959 100644 --- a/data/magic-blends.mse-include/new-blends +++ b/data/magic-blends.mse-include/new-blends @@ -9,7 +9,10 @@ mask_hybrid_with_land := { false } template := { input + "{type}.jpg" } land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" } +# For what value should thumbnails of hybrids be made? hybrid_previews := "hybrid" +# Are there templates for colored lands, land_template(...)? +colored_lands := true ######################################################################## # Combining multiple colors (hybrids) @@ -436,7 +439,7 @@ color_background := { multi := chosen(choice:"multicolor") hybrid := chosen(choice:"hybrid") artifact := chosen(choice:"artifact") - if land then template := land_template # use land template instead? + if land and colored_lands then template := land_template # use land template instead? # The selected colors colors := sort( order: "(wubrg)" @@ -472,7 +475,13 @@ color_combination := { base := base_hybrid[shape][color_count]() # Put a frame around it? - if multi then + if land and not colored_lands then + masked_blend( + mask: "multicolor_blend_{type}.png", + dark: land_template("c"), + light: base, + ) + else if multi then masked_blend( mask: "multicolor_blend_{type}.png", dark: template("m"),