mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
8c606b8a57
Resized future sight type symbol watermarks. Added land to default images. Added card_shape scripts to splits, tokens, and "shifted"s. Redid sort_index script to be more modular and better allow correct sorting of splits and shifts inside of their colors, and for tokens to be at end of list and still follow other sorting rules. Fixed some dpi problems with fpm-promo and fpm-token. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@668 0fc631ac-6414-0410-93d0-97cfa31319b6
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
|
|
# default image if there is none
|
|
|
|
default_images := [
|
|
c: "/magic-default-image.mse-include/colorless.jpg"
|
|
a: "/magic-default-image.mse-include/artifact.jpg"
|
|
m: "/magic-default-image.mse-include/multicolor.jpg"
|
|
w: "/magic-default-image.mse-include/white.jpg"
|
|
u: "/magic-default-image.mse-include/blue.jpg"
|
|
b: "/magic-default-image.mse-include/black.jpg"
|
|
r: "/magic-default-image.mse-include/red.jpg"
|
|
g: "/magic-default-image.mse-include/green.jpg"
|
|
l: "/magic-default-image.mse-include/land.jpg"
|
|
]
|
|
|
|
default_image := {
|
|
color_background(color_combination: {
|
|
combine := "symmetric overlay"
|
|
base :=
|
|
if color_count == 0 then if land then default_images.l else default_images.c
|
|
else if color_count == 1 then default_images[colors]
|
|
else if color_count == 2 then combine_blend(
|
|
image1: default_images[colors.0],
|
|
image2: default_images[colors.1],
|
|
)
|
|
else default_images.m
|
|
|
|
if land then if color_count == 0 then default_images.l else combine_blend(image1: default_images.l, image2: base)
|
|
else if multi then combine_blend(image1: default_images.m, image2: base)
|
|
else if artifact then combine_blend(image1: default_images.a, image2: base)
|
|
else base
|
|
})
|
|
}
|