mse version: 0.3.4
game: magic
short name: Future Textless
full name: Futureshift Textless
icon: card-sample.png
position hint: 051

card width: 375
card height: 523
card dpi: 150

#By: Pichoro
#
#Todo:
#More frames (missing colored lands)
#Make different colored colorless mana symbols work
#Casting cost mask
#Frames can be changed to jpegs
#Multicolor masks
#hybrid masks
#make colored artifacts look right
#white font color for blue land, red land, black land, and green land
############################################################## Extra scripts

init script:
	# there are only wubrg templates
	suffix := [card: "card.png", pt: "pt.png"]
	template := { input + suffix[type] }
	land_template := { (if input == "a" then "c" else input) + "l" + suffix[type] }
	color_combination := {
		# The base hybrid, without the outer frame blended over it
		base := base_hybrid[shape][color_count]()
		
		# Put a frame around it?
		if land and not colored_lands then "l" + suffix[type]
		else if multi then "m" + suffix[type]
		else if artifact then "a" + suffix[type]
		else if color_count > 1 and mask_hybrid_with_land() then base
		else base
	}
	
	# Use the normal tap symbol
	mana_t := {
		if      styling.tap_symbol == "old"        then "old"
		else if styling.tap_symbol == "diagonal T" then "older"
		else                                            "new"
	}
	
	font_colors_white := { input != "w" and input != "c" and input != "a" and input != "l" and input != "m" }

############################################################## Extra style options

styling field:
	type: boolean
	name: use guild mana symbols
	description: Use the Ravnica guild symbols instead of the official half/half circles for hybrid mana.
	initial: no
styling field:
	type: choice
	name: tap symbol
	description: What tap symbol should be used on cards?
	initial: modern
	choice: modern
	choice: old
	choice: diagonal T

styling style:
	use guild mana symbols:
		choice images:
			yes: /magic-mana-small.mse-symbol-font/mana_guild_rg.png
			no:  /magic-mana-small.mse-symbol-font/mana_rg.png
	tap symbol:
		render style: both
		choice images:
			modern:     /magic-mana-large.mse-symbol-font/mana_t.png
			old:        /magic-mana-large.mse-symbol-font/mana_t_old.png
			diagonal T: /magic-mana-large.mse-symbol-font/mana_t_older.png

############################################################## Card fields
card style:
	############################# Background stuff
	border color:
		left: 0
		top : 0
		width:	375
		height:	523
		radius: 18
		left width:   17
		right width:  17
		top width:    17
		bottom width: 18
		mask: bordermask.png
		z index: 2
	card color:
		left:	0
		top:	0
		width:	375
		height:	523
		z index: -2
		render style: image
		popup style: in place
		image: { card_background() }

	############################# Name line
	name:
		left: { if card.card_symbol=="none" then 73 else 88 }
		top : 30
		width: { if card.card_symbol=="none" then 269 else 254 }
		height: 30
		alignment: middle shrink-overflow
		padding bottom: 0
		z index: 2
		font:
			name: Matrix
			size: 18
			color: { font_color(card.card_color) }
	casting cost:
		left: 18
		top: 57
		height: 422
		width: 75
		alignment: top left
		direction: vertical
		symbol font:
			name: magic-mana-future
			size: 22
			scale down to: 22
			alignment: bottom right
		always symbol: true
		z index: 2
		padding top: 0
	card symbol:
		left: {if card.card_symbol=="none" then 50 else 67}
		top : 35
		height: 20
		width: 14
		z index: 2
		render style: image
		choice images:
			tombstone: tombstone.png
	type symbol:
		left:
			{ if card.type_symbol=="white artifact" or card.type_symbol=="black artifact" then 25
			else if card.type_symbol=="white enchantment" or card.type_symbol=="black enchantment" then 24
			else 24 }
		top:
			{ if card.type_symbol=="white artifact" or card.type_symbol=="black artifact" then 26
			else if card.type_symbol=="white enchantment" or card.type_symbol=="black enchantment" then 23
			else 25 }
		width:
			{ if card.type_symbol=="white artifact" or card.type_symbol=="black artifact" then 16
			else if card.type_symbol=="white instant" or card.type_symbol=="black instant" then 16
			else 18 }
		height:
			{ if card.type_symbol=="white artifact" or card.type_symbol=="black artifact" then 16
			else if card.type_symbol=="white enchantment" or card.type_symbol=="black enchantment" then 16
			else if card.type_symbol=="white land" or card.type_symbol=="black land" then 16
			else 18 }
		z index: 2
		render style: image
		choice images:
			white artifact: artifact_white.png
			black artifact: artifact_black.png
			white creature: creature_white.png
			black creature: creature_black.png
			white enchantment: enchantment_white.png
			black enchantment: enchantment_black.png
			white instant: instant_white.png
			black instant: instant_black.png
			white land: land_white.png
			black land: land_black.png
			white multitype: multitype_white.png
			black multitype: multitype_black.png
			white sorcery: sorcery_white.png
			black sorcery: sorcery_black.png

	############################# Image
	image:
		left: 37
		top: 46
		width: 322
		height: 418
		z index: 0
		mask: mask_image.png

	############################# Card type
	type:
		left: 49
		top : 434
		width: 270
		height: 28
		alignment: top shrink-overflow
		z index: 1
		padding top: 2
		font:
			name: Matrix
			size: 16
			color: { font_color(card.card_color) }
			separator color: rgb(128,128,128)
	rarity:
		left: 334
		top : 439
		width: 18
		height: 19
		z index: 2
		render style: image
		choice images:
			# Images based on the set symbol
			basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
			common:     script: symbol_variation(symbol: set.symbol, variation: "common")
			uncommon:   script: symbol_variation(symbol: set.symbol, variation: "uncommon")
			rare:       script: symbol_variation(symbol: set.symbol, variation: "rare")
			special:    script: symbol_variation(symbol: set.symbol, variation: "special")

	############################# PT
	pt:
		z index: 4
		left:	287
		top:	468
		width:	60
		height:	28
		alignment: center middle
		font:
			name: Mplantin
			size: 16
			weight: bold
			color: { font_color(card.card_color) }
			separator color: rgb(200,0,0)
	############################# Card sorting / numbering
	############################# Copyright stuff

	illustrator:
		left: 131
		top : 478
		width: { if card.pt != "" then 150 else 210 }
		height: 16
		z index: 2
		alignment: bottom right
		font:
			name: MPlantin
			size: 8
			color: { font_color(card.card_color) }
		symbol font:
			name: magic-paintbrush
			size: 14

	copyright line:
		left: 22
		top : 491
		width: { if card.pt != "" then 260 else 320 }
		height: 12
		z index: 2
		alignment: bottom right
		font:
			name: MPlantin
			size: 7
			color: { font_color(card.card_color) }

############################################################## Extra card fields
extra card field:
	type: choice
	name: pt box
	script: card.card_color
	editable: false

extra card style:
	pt box:
		right: 357
		bottom: 505
		width: 78
		height: 51
		z index: 1
		visible: { card.pt != "" }
		render style: image
		image: { card_ptbox() }
